mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-01-11 16:40:34 +08:00
fix stop param
This commit is contained in:
@@ -73,6 +73,10 @@ class HuggingfaceEngine(BaseEngine):
|
||||
repetition_penalty = input_kwargs.pop("repetition_penalty", None)
|
||||
max_length = input_kwargs.pop("max_length", None)
|
||||
max_new_tokens = input_kwargs.pop("max_new_tokens", None)
|
||||
stop = input_kwargs.pop("stop", None)
|
||||
|
||||
if stop is not None:
|
||||
raise ValueError("Stop parameter is not supported in Huggingface engine yet.")
|
||||
|
||||
generating_args.update(
|
||||
dict(
|
||||
|
||||
Reference in New Issue
Block a user