MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / CLI

Function CLI

lit_gpt/utils.py:456–464  ·  view source on GitHub ↗
(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

454
455
456def CLI(*args: Any, **kwargs: Any) -> Any:
457 from jsonargparse import CLI, set_config_read_mode, set_docstring_parse_options
458
459 set_docstring_parse_options(attribute_docstrings=True)
460 set_config_read_mode(urls_enabled=True)
461
462 kwargs.setdefault('as_positional', False)
463
464 return CLI(*args, **kwargs)
465
466
467def save_hyperparameters(function: callable, checkpoint_dir: Path) -> None:

Callers 12

generate.pyFile · 0.85
generate_hf.pyFile · 0.85
generate_lit.pyFile · 0.85
save_hyperparametersFunction · 0.85
full.pyFile · 0.85
compare.pyFile · 0.85
main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected