Views
No views yet
| Component | Specification |
|---|---|
| Parameters | 4.3M |
| Hidden Size | 128 |
| Layers | 4 |
| Attention Heads | 4 |
| Intermediate Size | 512 |
| Max Sequence Length | 2048 |
| Vocabulary Size | 25,426 |
| Dropout | 0.1 |
| Format | PyTorch (.pt) |
| Metric | Teacher | Student | Delta |
|---|---|---|---|
| MLM Accuracy | 30.59% | 25.34% | -5.25% |
| Perplexity | 15.40 | 22.48 | +7.08 |
| Metric | Teacher | Student |
|---|---|---|
| Accuracy | 83.02% | 72.67% |
| Macro F1 | 79.04% | 66.73% |
Note: The student model achieves ~83% of teacher performance while using only a fraction of the parameters, making it highly suitable for deployment in resource-limited settings.
1from transformers import AutoModel, AutoTokenizer
2
3# Load model and tokenizer
4model = AutoModel.from_pretrained("kkkamur07/geneformer-4.3M")
5dataset = load_dataset("ctheodoris/Genecorpus-30M") # The dataset is pre tokenized
6
7# Example usage
8inputs = tokenizer(gene_sequences, return_tensors="pt", padding=True)
9outputs = model(**inputs)