MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / dump_config

Method dump_config

lm-eval-harness/lm_eval/api/task.py:624–628  ·  view source on GitHub ↗

Returns the config as a dictionary.

(self)

Source from the content-addressed store, hash-verified

622 return self._instances
623
624 def dump_config(self) -> dict:
625 """Returns the config as a dictionary."""
626 # TODO: this should only return the overrides applied to a non-YAML task's configuration.
627 # (num_fewshot)
628 return self.config.to_dict()
629
630 def set_config(self, key: str, value: Any, update: bool = False) -> None:
631 """Set or update the configuration for a given key."""

Callers 1

evaluateFunction · 0.80

Calls 1

to_dictMethod · 0.80

Tested by

no test coverage detected