Skip to content

Commit 6d69079

Browse files
committed
Fix commandline arguments not overriding scenario if set to default
Signed-off-by: Samuel Monson <[email protected]>
1 parent a9f98f3 commit 6d69079

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/guidellm/benchmark/schemas.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,9 +1798,8 @@ def create(
17981798
scenario_data = scenario_data["args"]
17991799
constructor_kwargs.update(scenario_data)
18001800

1801-
for key, value in kwargs.items():
1802-
if value != cls.get_default(key):
1803-
constructor_kwargs[key] = value
1801+
# Apply overrides from kwargs
1802+
constructor_kwargs.update(kwargs)
18041803

18051804
return cls.model_validate(constructor_kwargs)
18061805

0 commit comments

Comments
 (0)