from_pretrained torch_dtype kwarg (transformers 4.51 compat); tarball refresh
This commit is contained in:
1 parent
c6296c9c10
commit
003fa1d300
2 files changed
+1
-1
No files matched your search
+1
-1
@@ -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 —
|
||||
|
||||
Reference in new issue
Block a user