Skip to main content

cli

CLI Reference

llem provides two commands and one flag.

llem run [CONFIG] [OPTIONS] # run an experiment or study
llem config [OPTIONS] # show environment and configuration status
llem --version # print version and exit

llem run

Run an LLM efficiency experiment

Arguments:

ArgumentTypeRequiredDescription
configpathnoPath to experiment YAML config

Options:

FlagShortTypeDefaultDescription
--model-mstrModel name or HuggingFace path
--engine-estrInference engine (transformers, vllm, tensorrt)
--dataset-dstrDataset name
--n-prompts-nintNumber of prompts to run
--output-ostrOutput directory for results
--dry-runflagfalseValidate config and estimate VRAM without running
--quiet-qflagfalseSuppress progress bars
--verbose-vint0Increase verbosity (-v=INFO, -vv=DEBUG)
--cyclesintNumber of cycles (study mode)
--orderstrExperiment ordering: sequential, interleave, shuffle, reverse, latin_square (study mode)
--no-gapsflagfalseDisable thermal gaps between experiments (study mode)
--skip-preflightflagfalseSkip Docker pre-flight checks (GPU visibility, CUDA/driver compatibility)
--resumeflagfalseResume most recent interrupted study
--resume-dirpathResume a specific study directory
--fail-fastflagfalseAbort study on first failure (circuit breaker threshold=1)
--no-circuit-breakerflagfalseDisable circuit breaker entirely
--timeoutfloatStudy wall-clock timeout in hours (e.g. 24, 1.5)
--no-lockflagfalseDisable GPU lock files (advanced)
--no-dedupflagfalseDisable library-resolution mechanism sweep dedup. Every declared config runs regardless of measurement equivalence (study mode).

llem config

Show environment and configuration status

Options:

FlagShortTypeDefaultDescription
--verbose-vint0Increase verbosity (-v=INFO, -vv=DEBUG)

llem doctor

Verify Docker images match the host ExperimentConfig schema

llem report-gaps

Propose invariants corpus entries from runtime observations

Options:

FlagShortTypeDefaultDescription
--sourcestrruntime-warningsFeedback source to scan. Only 'runtime-warnings' is wired in this release.
--study-dirpathStudy directory to scan. Repeat the flag to pass multiple.
--enginestrFilter: only propose rules for this engine (transformers/vllm/tensorrt).
--outpathOutput path for proposed YAML fragments (one YAML document per gap, separated by '---').
--include-exceptionsflagfalseAlso propose rules from runtime exceptions. Disabled by default; exceptions ship through a different review path.