Unverified Commit 877e9a61 authored by Chris's avatar Chris Committed by GitHub
Browse files

Fix positional arguments in HF model generate

parent a3252ed7
......@@ -508,7 +508,7 @@ class HFLM(LM):
self.tokenizer, stop, 1, context.shape[0]
)
return self.model.generate(
context,
input_ids=context,
max_length=max_length,
stopping_criteria=stopping_criteria,
pad_token_id=self.eot_token_id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment