Upload folder using huggingface_hub
Browse files- README.md +1 -1
- config.json +0 -3
README.md
CHANGED
|
@@ -16,7 +16,7 @@ import torch
|
|
| 16 |
model_id = "gustoudu81/BerTeleo"
|
| 17 |
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 19 |
-
model =
|
| 20 |
|
| 21 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 22 |
model = model.to(device).eval()
|
|
|
|
| 16 |
model_id = "gustoudu81/BerTeleo"
|
| 17 |
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 19 |
+
model = AutoModel.from_pretrained(model_id, trust_remote_code=True)
|
| 20 |
|
| 21 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 22 |
model = model.to(device).eval()
|
config.json
CHANGED
|
@@ -1,8 +1,5 @@
|
|
| 1 |
{
|
| 2 |
"alibi_starting_size": 512,
|
| 3 |
-
"architectures": [
|
| 4 |
-
"BertForMaskedLM"
|
| 5 |
-
],
|
| 6 |
"attention_probs_dropout_prob": 0.0,
|
| 7 |
"auto_map": {
|
| 8 |
"AutoConfig": "gustoudu81/DNABERT-2-117M-tritonfix--configuration_bert.BertConfig",
|
|
|
|
| 1 |
{
|
| 2 |
"alibi_starting_size": 512,
|
|
|
|
|
|
|
|
|
|
| 3 |
"attention_probs_dropout_prob": 0.0,
|
| 4 |
"auto_map": {
|
| 5 |
"AutoConfig": "gustoudu81/DNABERT-2-117M-tritonfix--configuration_bert.BertConfig",
|