Instructions to use zhihan1996/DNA_bert_5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zhihan1996/DNA_bert_5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="zhihan1996/DNA_bert_5", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("zhihan1996/DNA_bert_5", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("zhihan1996/DNA_bert_5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Create README.md
Verified signature4c35c45
-
Rename LICENSE.txt to LICENSE
1cb665c -
Upload LICENSE.txt
993d294
-
Update config.json
7f54dd0
-
Update dnabert_layer.py
4f9a5dc -
Update config.json
e71081b
-
Update dnabert_layer.py
5a45740 -
Update config.json
52665cf
-
Update config.json
8528cf0 -
Upload 2 files
Enable input longer than 512 by truncating it into multiple pieces of 512-length sequences and taking the average embedding as the input embedding.4cdee9f
-
Upload vocab.txt
c296157 -
Upload tokenizer_config.json
3c29382 -
Upload special_tokens_map.json
f4a1b56 -
Upload config.json
2d60263 -
Upload pytorch_model.bin with git-lfs
d4ac90b -
initial commit
16f5f5c