Spaces:
Running
Running
Commit
·
370b9a0
1
Parent(s):
b7abdc5
feat: improve main page
Browse files- index.html +5 -1
index.html
CHANGED
|
@@ -337,7 +337,11 @@ tok = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
|
| 337 |
batch = tok(["ATCGNATCG", "ACGT"], add_special_tokens=False, padding=True, pad_to_multiple_of=128, return_tensors="pt")
|
| 338 |
|
| 339 |
# Run model
|
| 340 |
-
out = model(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
|
| 342 |
# Print output shapes
|
| 343 |
print(out.logits.shape) # (B, L, V = 11)
|
|
|
|
| 337 |
batch = tok(["ATCGNATCG", "ACGT"], add_special_tokens=False, padding=True, pad_to_multiple_of=128, return_tensors="pt")
|
| 338 |
|
| 339 |
# Run model
|
| 340 |
+
out = model(
|
| 341 |
+
**batch,
|
| 342 |
+
output_hidden_states=True,
|
| 343 |
+
output_attentions=True
|
| 344 |
+
)
|
| 345 |
|
| 346 |
# Print output shapes
|
| 347 |
print(out.logits.shape) # (B, L, V = 11)
|