---
title: plant-dnagemma-6mer-promoter_strength_protoplast
canonical_url: "https://www.modelscope.cn/models/zhangtaolab/plant-dnagemma-6mer-promoter_strength_protoplast"
md_url: "https://www.modelscope.cn/models/zhangtaolab/plant-dnagemma-6mer-promoter_strength_protoplast.md"
repository: zhangtaolab/plant-dnagemma-6mer-promoter_strength_protoplast
last_updated: 2024-10-07
license: cc-by-nc-sa-4.0
pipeline_tag: text-classification
tasks:
  - text-classification
model_type:
  - gemma
architectures:
  - GemmaForSequenceClassification
parameters: 149.5M
tensor_type:
  - F32
library_name:
  - transformer
  - safetensors
  - pytorch
frameworks:
  - Pytorch
downloads: 116
stars: 0
tags:
  - DNA
  - biology
  - genomics
---

# plant-dnagemma-6mer-promoter_strength_protoplast

> plant-dnagemma-6mer-promoter_strength_protoplast - zhangtaolab 在 ModelScope 开源的模型。Plant foundation DNA large language models

zhangtaolab/plant-dnagemma-6mer-promoter_strength_protoplast 是 ModelScope 魔搭社区上的 149.5M 参数text-classification模型，采用 cc-by-nc-sa-4.0 许可。

- **Repository**: zhangtaolab/plant-dnagemma-6mer-promoter_strength_protoplast
- **License**: cc-by-nc-sa-4.0
- **Tasks**: text-classification
- **Parameters**: 149.5M
- **Tags**: DNA, biology, genomics
- **Downloads**: 116
- **Stars**: 0
- **Last updated**: 2024-10-07

Source: https://www.modelscope.cn/models/zhangtaolab/plant-dnagemma-6mer-promoter_strength_protoplast

---

# Plant foundation DNA large language models

The plant DNA large language models (LLMs) contain a series of foundation models based on different model architectures, which are pre-trained on various plant reference genomes.  
All the models have a comparable model size between 90 MB and 150 MB, BPE tokenizer is used for tokenization and 8000 tokens are included in the vocabulary.  


**Developed by:** zhangtaolab

### Model Sources

- **Repository:** [Plant DNA LLMs](https://github.com/zhangtaolab/plant_DNA_LLMs)
- **Manuscript:** [Versatile applications of foundation DNA large language models in plant genomes]() 

### Architecture

The model is trained based on the Google Gemma model with modified tokenizer specific for DNA sequence.

This model is fine-tuned for predicting promoter strength in maize protoplasts system.


### How to use

Install the runtime library first:
```bash
pip install transformers
```

Here is a simple code for inference:
```python
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline

model_name = 'plant-dnagemma-6mer-promoter_strength_protoplast'
# load model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained(f'zhangtaolab/{model_name}', trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(f'zhangtaolab/{model_name}', trust_remote_code=True)

# inference
sequences = ['TACTCTAATCGTATCAGCTGCACTTGCGTACAGGCTACCGGCGTCCTCAGCCACGTAAGAAAAGGCCCAATAAAGGCCCAACTACAACCAGCGGATATATATACTGGAGCCTGGCGAGATCACCCTAACCCCTCACACTCCCATCCAGCCGCCACCAGGTGCAGAGTGTT',
             'ATTTCAAAACTAGTTTTCTATAAACGAAAACTTATATTTATTCCGCTTGTTCCGTTTGATCTGCTGATTCGACACCGTTTTAACGTATTTTAAGTAAGTATCAGAAATATTAATGTGAAGATAAAAGAAAATAGAGTAAATGTAAAGGAAAATGCATAAGATTTTGTTGA']
pipe = pipeline('text-classification', model=model, tokenizer=tokenizer,
                trust_remote_code=True, function_to_apply="none")
results = pipe(sequences)
print(results)

```


### Training data
We use GemmaForSequenceClassification to fine-tune the model.  
Detailed training procedure can be found in our manuscript.


#### Hardware
Model was trained on a NVIDIA GTX1080Ti GPU (11 GB).
