Instructions to use zhihan1996/DNA_bert_6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zhihan1996/DNA_bert_6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="zhihan1996/DNA_bert_6", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("zhihan1996/DNA_bert_6", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("zhihan1996/DNA_bert_6", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
a794b19
1
Parent(s): 97755ae
Update config.json
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -25,7 +25,8 @@
|
|
| 25 |
"AutoConfig": "configuration_bert.BertConfig",
|
| 26 |
"AutoModel": "dnabert_layer.BertModel",
|
| 27 |
"AutoModelForMaskedLM": "dnabert_layer.BertForMaskedLM",
|
| 28 |
-
"AutoModelForSequenceClassification": "dnabert_layer.DNABertForSequenceClassification"
|
|
|
|
| 29 |
},
|
| 30 |
"layer_norm_eps": 1e-12,
|
| 31 |
"length_penalty": 1.0,
|
|
|
|
| 25 |
"AutoConfig": "configuration_bert.BertConfig",
|
| 26 |
"AutoModel": "dnabert_layer.BertModel",
|
| 27 |
"AutoModelForMaskedLM": "dnabert_layer.BertForMaskedLM",
|
| 28 |
+
"AutoModelForSequenceClassification": "dnabert_layer.DNABertForSequenceClassification",
|
| 29 |
+
"AutoModelForPreTraining": "dnabert_layer.BertForPreTraining"
|
| 30 |
},
|
| 31 |
"layer_norm_eps": 1e-12,
|
| 32 |
"length_penalty": 1.0,
|