Instructions to use zhihan1996/DNA_bert_4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zhihan1996/DNA_bert_4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="zhihan1996/DNA_bert_4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("zhihan1996/DNA_bert_4", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("zhihan1996/DNA_bert_4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Create README.md
Verified signature1a49464
-
Rename LICENSE.txt to LICENSE
69ad5f1 -
Upload LICENSE.txt
d7fc3a9
-
Update config.json
668946a -
Update config.json
8773b70
-
Update dnabert_layer.py
c5f25d3 -
Update config.json
26b2690
-
Update config.json
282b453 -
Update dnabert_layer.py
4954c8e
-
Update config.json
1198169 -
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.f44c8a7
-
Upload vocab.txt
c8499f0 -
Upload tokenizer_config.json
c46be8a -
Upload config.json
0238f4b -
Upload special_tokens_map.json
2d38a33 -
Upload pytorch_model.bin with git-lfs
b60feb8 -
initial commit
d159ebb