zhihan1996_DNABERT-2-117M
zhihan1996 · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
metrics:
- matthews_correlation
- f1 tags:
- biology
- medical
- genomics
This is the official pre-trained model introduced in DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genome .
We sincerely appreciate the MosaicML team for the MosaicBERT implementation, which serves as the base of DNABERT-2 development.
DNABERT-2 is a transformer-based genome foundation model trained on multi-species genome.
To load the model from huggingface:
import torch
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("zhihan1996/DNABERT-2-117M", trust_remote_code=True)
model = AutoModel.from_pretrained("zhihan1996/DNABERT-2-117M", trust_remote_code=True)
To calculate the embedding of a dna sequence
dna = "ACGTAGCATCGGATCTATCTATCGACACTTGGTTATCGATCTACGAGCATCTCGTTAGC"
inputs = tokenizer(dna, return_tensors = 'pt')["input_ids"]
hidden_states = model(inputs)[0] # [1, sequence_length, 768]
# embedding with mean pooling
embedding_mean = torch.mean(hidden_states[0], dim=0)
print(embedding_mean.shape) # expect to be 768
# embedding with max pooling
embedding_max = torch.max(hidden_states[0], dim=0)[0]
print(embedding_max.shape) # expect to be 768
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:3a0549750fb8ac35f238623d958e502484ccf7c2&dn=zhihan1996_DNABERT-2-117MOpen magnet in torrent client · infohash 3a0549750fb8ac35f238623d958e502484ccf7c2
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| LICENSE | 11.1 KB (11,357 B) | 261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 | c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 |
| README.md | 1.3 KB (1,316 B) | 410d645508f093b25c6cbc1e08bd0e4465b38d45 | 48b18abd051eb4952e0c0a50a0740387a1cea145be06517b67ab73a29431a3bc |
| bert_layers.py | 39.7 KB (40,690 B) | 611b73d92807d1a22ad5790cda9e234db35827e8 | 317ad7e9667980ac724c07f0174ba265c8446ca5230f6b473068ff1b911edcf9 |
| bert_padding.py | 6.0 KB (6,099 B) | 4da59be166036b2df98589a0e0b5d01a7044747d | 44d1c68afb1f585fdc66c150d4c60f1ed44a89c006abc57d50531d71940d7421 |
| config.json | 904 B (904 B) | 8a18497de4d4a3f1cd183e90766f4a06fa25c8d4 | ba9bdafaff0cc3e30556927474d4a179519a9864012bed2628e9f1bc23c84bfd |
| configuration_bert.py | 1011 B (1,011 B) | b27bed3d8ae09cd13fe64f8805bc2aef24e1ffec | 95fc868641b87bbcd7a32d2cd7b9f4769c27592e129daf167d14b5b8c74ec4c5 |
| flash_attn_triton.py | 41.7 KB (42,737 B) | b2b946c06f8430153de15227b232d070e0fd62c9 | 568d1ac3beca0b5e1df528a1f136aa19b6489a616fcf3784f33336a50bb1de81 |
| generation_config.json | 90 B (90 B) | 426f45119f533966a103be6217eea279e963b5d4 | c993e393c12525ea015019130f83c90502efaa6de8d019e94856555614d9fae3 |
| pytorch_model.bin | 446.7 MB (468,354,983 B) | 2542991b75be81fa9b66da14f0d021a3a77e1a90 | 7ff39ec77a484dd01070a41bfd6e95cdd7247bec80fe357ab43a4be33687aeba |
| tokenizer.json | 164.0 KB (167,908 B) | 3b3ab6d7aaf96050dbb992924867043e98bc4332 | 5d178e8ce2ba55df97fff197f4b30f40133b95d7096be398c2df6b526c5d8cd3 |
| tokenizer_config.json | 158 B (158 B) | 6623217350bd5b1eff2dd4830e6872699d3dc5cd | f9d18c81f4dd9dd7db02e9f27cc1203228147d890bfce9167c3af6465ff5b769 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/zhihan1996_DNABERT-2-117M/
- Slug
- zhihan1996_DNABERT-2-117M
- Infohash
- 3a0549750fb8ac35f238623d958e502484ccf7c2
- License
- no license recorded
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: zhihan1996_DNABERT-2-117M.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | zhihan1996/DNABERT-2-117M |
|---|---|
| Revision (pinned) | 7bce263b15377fc15361f52cfab88f8b586abda0 |
| Fetched at | 2026-09-04T06:59:49Z |
| License at fetch | no license recorded |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-04T06:59:57Z
no license recorded446.9 MB (468,627,253 bytes)transformerspytorchbiologymedicalgenomicscustom_codeendpoints_compatiblepaper: 2306.15006