Downloads · 30 days
0
kkkamur07/geneformer-4.3M
geneformer-4.3M is a fill-mask model from kkkamur07. Use it when you need the model to fill a missing word. The card lists the license as apache-2.0.
A compact, efficient distillation of Geneformer optimized for resource-constrained environments
Downloads · 30 days
0
Access
Public
Updated Jan 12, 2026
Repo size
114 MB
Likes
0
Public
Click a slice to open those files.
.pt114 MB · 100%
From the Hugging Face model README
A compact, efficient distillation of Geneformer optimized for resource-constrained environments
This distilled version of Geneformer brings the power of single-cell sequence representation to researchers with limited computational resources. Built on a BERT-like architecture, it preserves core capabilities while dramatically reducing model size and inference time.
| 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) |
Knowledge distillation was employed to transfer the learned representations from the original Geneformer to this compact student model.
| 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.
This model is designed for:
from transformers import AutoModel, AutoTokenizer
# Load model and tokenizer
model = AutoModel.from_pretrained("kkkamur07/geneformer-4.3M")
dataset = load_dataset("ctheodoris/Genecorpus-30M") # The dataset is pre tokenized
# Example usage
inputs = tokenizer(gene_sequences, return_tensors="pt", padding=True)
outputs = model(**inputs)
This model is released under the Apache 2.0 License, inheriting the licensing terms of the original Geneformer model.
Built upon the foundational work of the Geneformer team and trained on the Genecorpus-30M dataset.