Downloads · 30 days
56
50% of all-time downloads
zhangtaolab/plant-dnamamba-singlebase-conservation
plant-dnamamba-singlebase-conservation is a machine learning model from zhangtaolab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-sa-4.0.
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…
Downloads · 30 days
56
50% of all-time downloads
All-time downloads
113
Public
Parameters
90.5M
724 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin362 MB · 50%
From the Hugging Face model README
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
The model is trained based on the State-Space Mamba-130m model with modified tokenizer specific for DNA sequence.
This model is fine-tuned for predicting sequence conservation.
Install the runtime library first:
pip install transformers
pip install causal-conv1d<=1.2.0
pip install mamba-ssm<2.0.0
Since transformers library (version < 4.43.0) does not provide a MambaForSequenceClassification function, we wrote a script to train Mamba model for sequence classification.
An inference code can be found in our GitHub.
Note that Plant DNAMamba model requires NVIDIA GPU to run.
We use a custom MambaForSequenceClassification script to fine-tune the model.
Detailed training procedure can be found in our manuscript.
Model was trained on a NVIDIA GTX4090 GPU (24 GB).