fix stop param

Former-commit-id: f0a850c25211b72eddbb357c81679db9b0930d44
This commit is contained in:
hiyouga
2024-05-07 00:41:04 +08:00
parent b9e167e6ca
commit e3b3a722de
3 changed files with 10 additions and 3 deletions

View File

@@ -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(