maxent_grpo.cli¶
Copyright 2025 Liv d’Aliberti
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
CLI helper utilities shared across entrypoints.
Functions
Parse GRPO CLI arguments. |
- maxent_grpo.cli.parse_grpo_args()[source]¶
Parse GRPO CLI arguments.
The import is deferred to keep optional training dependencies out of lightweight environments (tests, docs builds). If a stub CLI module is preloaded under
maxent_grpo.training.cliit is used instead.- Returns:
Tuple of
(script_args, training_args, model_args)parsed from the CLI.- Return type:
tuple[GRPOScriptArguments, GRPOConfig, ModelConfig]
- Raises:
ImportError – If the training CLI parser cannot be imported.
RuntimeError – If the underlying parser fails to initialize.
SystemExit – When the argument parser aborts due to invalid input.
Modules
Pydantic-powered validation for Hydra training configs. |
|
Copyright 2025 Liv d'Aliberti |