Browse Source

passing input_ids as peft doesn't pass position args to base_model

Hamid Shojanazeri 1 year ago
parent
commit
0e9d1dfa78
1 changed files with 1 additions and 1 deletions
  1. 1 1
      inference/chat_completion.py

+ 1 - 1
inference/chat_completion.py

@@ -107,7 +107,7 @@ def main(
             tokens= tokens.unsqueeze(0)
             tokens= tokens.to("cuda:0")
             outputs = model.generate(
-                tokens,
+                input_ids=tokens,
                 max_new_tokens=max_new_tokens,
                 do_sample=do_sample,
                 top_p=top_p,