from_pretrained torch_dtype kwarg (transformers 4.51 compat); tarball refresh

This commit is contained in:
E committed 2026-10-01 10:35:28 -04:00
1 parent c6296c9c10
commit 003fa1d300
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -318,7 +318,7 @@ def press_logit(prompt):
def startup():
tok = transformers.AutoTokenizer.from_pretrained(MODEL_ID)
model = transformers.AutoModelForCausalLM.from_pretrained(
MODEL_ID, dtype=DTYPE).to(DEVICE).eval()
MODEL_ID, torch_dtype=DTYPE).to(DEVICE).eval()
_state["tok"] = tok
_state["model"] = model
# single-token ids for the forced-choice press/no-press logit read —
Binary file not shown.