mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-02-01 08:13:38 +00:00
fix stop param
Former-commit-id: f0a850c25211b72eddbb357c81679db9b0930d44
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