mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
params override
This commit is contained in:
parent
ed33d00eb4
commit
487126a26a
1 changed files with 1 additions and 4 deletions
|
@ -45,10 +45,7 @@ class LlmAsJudgeScoringFn(BaseScoringFn):
|
||||||
|
|
||||||
# override params if scoring_params is provided
|
# override params if scoring_params is provided
|
||||||
if scoring_params is not None:
|
if scoring_params is not None:
|
||||||
for attr in scoring_params.__dict__:
|
fn_def.params = scoring_params
|
||||||
override_attr = getattr(scoring_params, attr)
|
|
||||||
if override_attr is not None:
|
|
||||||
setattr(fn_def.params, attr, override_attr)
|
|
||||||
|
|
||||||
assert fn_def.params is not None, f"LLMAsJudgeparams not found for {fn_def}."
|
assert fn_def.params is not None, f"LLMAsJudgeparams not found for {fn_def}."
|
||||||
assert (
|
assert (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue