Use litellm's modify params (#5636)

This commit is contained in:
Engel Nyst
2024-12-17 21:32:49 +01:00
committed by GitHub
parent f9d052c493
commit 3297e4d5a8
24 changed files with 60 additions and 1 deletions

View File

@@ -279,6 +279,8 @@ if __name__ == '__main__':
llm_config = None
if args.llm_config:
llm_config = get_llm_config_arg(args.llm_config)
# modify_params must be False for evaluation purpose, for reproducibility and accurancy of results
llm_config.modify_params = False
if llm_config is None:
raise ValueError(f'Could not find LLM config: --llm_config {args.llm_config}')