llmcompressor.args.utils
Utility functions for parsing and processing argument classes.
Provides helper functions for parsing command-line arguments and configuration dictionaries into structured argument dataclasses used in LLM compression workflows. Handles argument validation, deprecation warnings, and processor resolution.
Functions:
-
parse_args–Keyword arguments passed in from
oneshotortrainwill
parse_args
parse_args(
**kwargs,
) -> tuple[
ModelArguments,
DatasetArguments,
RecipeArguments | None,
str | None,
]
Keyword arguments passed in from oneshot or train will separate the arguments into the following:
* ModelArguments in
src/llmcompressor/args/model_args.py
* DatasetArguments in
src/llmcompressor/args/dataset_args.py
* RecipeArguments in
src/llmcompressor/args/recipe_args.py
ModelArguments, DatasetArguments, and RecipeArguments used for oneshot.