Skip to main content

Module lm_args

Module lm_args 

Source
Expand description

Shared CLI flags for every per-family LM binary.

Each rlx-<family>/src/cli.rs today hand-rolls the same while i < args.len() loop parsing --weights / --device / --max-seq / --max-tokens / --prompt / --prompt-ids / --tokenizer / --temperature / --top-p / --format / --packed / --no-stream / --max-memory-gb.

LmCliArgs is a clap-derived struct that captures the shared set and provides LmCliArgs::into_builder which seeds a generic rlx_runtime::LmRunnerBuilder. Per-family CLIs can mix in their own structs with #[command(flatten)] for arch-specific flags.

Structsยง

LmCliArgs
Canonical LM CLI flags.