Instructions to use EvoLenTokenizer/base-100k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EvoLenTokenizer/base-100k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="EvoLenTokenizer/base-100k")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("EvoLenTokenizer/base-100k") model = AutoModelForMaskedLM.from_pretrained("EvoLenTokenizer/base-100k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card with metadata and links
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,34 +1,35 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
metrics:
|
| 5 |
- accuracy
|
|
|
|
|
|
|
| 6 |
model-index:
|
| 7 |
- name: model_base_5120
|
| 8 |
results: []
|
| 9 |
---
|
| 10 |
|
| 11 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 12 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
-
|
| 14 |
# model_base_5120
|
| 15 |
|
| 16 |
-
This model is a
|
| 17 |
-
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss: 5.0825
|
| 19 |
-
- Accuracy: 0.2308
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
## Intended uses & limitations
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
## Training and evaluation data
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## Training procedure
|
| 34 |
|
|
@@ -50,7 +51,10 @@ The following hyperparameters were used during training:
|
|
| 50 |
|
| 51 |
### Training results
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
### Framework versions
|
| 56 |
|
|
@@ -58,3 +62,18 @@ The following hyperparameters were used during training:
|
|
| 58 |
- Pytorch 2.8.0+cu128
|
| 59 |
- Datasets 4.4.1
|
| 60 |
- Tokenizers 0.15.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: feature-extraction
|
| 5 |
metrics:
|
| 6 |
- accuracy
|
| 7 |
+
tags:
|
| 8 |
+
- generated_from_trainer
|
| 9 |
model-index:
|
| 10 |
- name: model_base_5120
|
| 11 |
results: []
|
| 12 |
---
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# model_base_5120
|
| 15 |
|
| 16 |
+
This model is a BERT-based masked language model with a 5,120-token vocabulary, trained on human genomic sequences as part of the [EvoLen](https://github.com/HN020719/EvoLen) study: [EvoLen: Evolution-Guided Tokenization for DNA Language Model](https://huggingface.co/papers/2604.08698).
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
| 20 |
+
The model uses a BERT-base architecture (12 layers, 768 hidden units, 12 attention heads) and was trained with a masked language modeling objective on DNA sequences tokenized into 512-token windows. It can be used as a foundation model for downstream DNA sequence tasks or for feature extraction.
|
| 21 |
|
| 22 |
## Intended uses & limitations
|
| 23 |
|
| 24 |
+
This model is intended for research on DNA language modeling, including fine-tuning on genomic benchmarks such as regulatory element classification and ATAC-seq tasks. It was trained on human reference genome (hg38) data and may not generalize to other organisms or non-conserved sequences without further adaptation.
|
| 25 |
|
| 26 |
## Training and evaluation data
|
| 27 |
|
| 28 |
+
The model was pretrained on the human genome (hg38) using masked language modeling. Evaluation was performed on a held-out split of the same corpus. The evaluation results are:
|
| 29 |
+
|
| 30 |
+
- Loss: 5.0825
|
| 31 |
+
- Accuracy: 0.2308
|
| 32 |
+
- Perplexity: 161.17
|
| 33 |
|
| 34 |
## Training procedure
|
| 35 |
|
|
|
|
| 51 |
|
| 52 |
### Training results
|
| 53 |
|
| 54 |
+
- Train loss: 5.6056
|
| 55 |
+
- Eval loss: 5.0825
|
| 56 |
+
- Eval accuracy: 0.2308
|
| 57 |
+
- Perplexity: 161.17
|
| 58 |
|
| 59 |
### Framework versions
|
| 60 |
|
|
|
|
| 62 |
- Pytorch 2.8.0+cu128
|
| 63 |
- Datasets 4.4.1
|
| 64 |
- Tokenizers 0.15.2
|
| 65 |
+
|
| 66 |
+
## Citation
|
| 67 |
+
|
| 68 |
+
If you use this model, please cite:
|
| 69 |
+
|
| 70 |
+
```bibtex
|
| 71 |
+
@inproceedings{huang2026evolen,
|
| 72 |
+
title = {EvoLen: Evolution-Guided Tokenization for DNA Language Model},
|
| 73 |
+
author = {Huang, Nan and Zhou, Xiaoxiao and Cui, Junxia and
|
| 74 |
+
Tapia-Pacheco, Mario and Amariuta, Tiffany and Li, Yang and
|
| 75 |
+
Shang, Jingbo},
|
| 76 |
+
booktitle = {Conference on Language Modeling (COLM)},
|
| 77 |
+
year = {2026}
|
| 78 |
+
}
|
| 79 |
+
```
|