MCPcopy Create free account
hub / github.com/FareedKhan-dev/ai-long-task / update_model_params

Method update_model_params

config.py:206–212  ·  view source on GitHub ↗

Update parameters for all models in both evolution and evaluator ensembles.

(self, args: Dict[str, Any], overwrite: bool = False)

Source from the content-addressed store, hash-verified

204 self.update_model_params(shared_config)
205
206 def update_model_params(self, args: Dict[str, Any], overwrite: bool = False) -> None:
207 """Update parameters for all models in both evolution and evaluator ensembles."""
208 for model in self.models + self.evaluator_models:
209 for key, value in args.items():
210 # Only set the attribute if overwrite is True or if the attribute is not already set on the model
211 if overwrite or getattr(model, key, None) is None:
212 setattr(model, key, value)
213
214 def rebuild_models(self) -> None:
215 """Rebuild the models list, typically after CLI overrides change primary/secondary model fields."""

Callers 3

__post_init__Method · 0.95
rebuild_modelsMethod · 0.95
load_configFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected