pub enum ExtendedCommands {
Show 25 variants
Chat {Show 14 fields
file: PathBuf,
temperature: f32,
top_p: f32,
max_tokens: usize,
system: Option<String>,
inspect: bool,
no_gpu: bool,
gpu: bool,
trace: bool,
trace_steps: Option<Vec<String>>,
trace_verbose: bool,
trace_output: Option<PathBuf>,
trace_level: String,
profile: bool,
},
Bench {
file: PathBuf,
warmup: usize,
iterations: usize,
max_tokens: usize,
prompt: Option<String>,
fast: bool,
brick: Option<String>,
},
Eval {Show 13 fields
file: PathBuf,
dataset: String,
text: Option<String>,
max_tokens: usize,
threshold: f32,
task: Option<String>,
data: Option<PathBuf>,
model_size: Option<String>,
num_classes: usize,
generate_card: bool,
device: String,
samples: usize,
temperature: f32,
},
Profile {Show 22 fields
file: PathBuf,
granular: bool,
format: String,
focus: Option<String>,
detect_naive: bool,
threshold: f64,
compare_hf: Option<String>,
energy: bool,
perf_grade: bool,
callgraph: bool,
fail_on_naive: bool,
output: Option<PathBuf>,
ci: bool,
assert_throughput: Option<f64>,
assert_p99: Option<f64>,
assert_p50: Option<f64>,
warmup: usize,
measure: usize,
tokens: usize,
ollama: bool,
no_gpu: bool,
compare: Option<PathBuf>,
},
Qa {Show 24 fields
file: PathBuf,
assert_tps: Option<f64>,
assert_speedup: Option<f64>,
assert_gpu_speedup: Option<f64>,
skip_golden: bool,
skip_throughput: bool,
skip_ollama: bool,
skip_gpu_speedup: bool,
skip_contract: bool,
skip_format_parity: bool,
skip_ptx_parity: bool,
safetensors_path: Option<PathBuf>,
iterations: usize,
warmup: usize,
max_tokens: usize,
json: bool,
verbose: bool,
min_executed: Option<usize>,
previous_report: Option<PathBuf>,
regression_threshold: Option<f64>,
skip_gpu_state: bool,
skip_metadata: bool,
skip_capability: bool,
assert_classifier_head: bool,
},
Parity {
file: PathBuf,
prompt: String,
assert: bool,
},
PtxMap {
file: PathBuf,
kernel: Option<String>,
reverse: Option<String>,
json: bool,
verbose: bool,
prefill: bool,
},
Ptx {
file: Option<PathBuf>,
kernel: Option<String>,
strict: bool,
bugs: bool,
json: bool,
verbose: bool,
},
Tune {Show 20 fields
file: Option<PathBuf>,
method: String,
rank: Option<u32>,
vram: f64,
plan: bool,
model: Option<String>,
freeze_base: bool,
train_data: Option<PathBuf>,
json: bool,
task: Option<String>,
budget: usize,
strategy: String,
scheduler: String,
scout: bool,
data: Option<PathBuf>,
num_classes: usize,
model_size: Option<String>,
from_scout: Option<PathBuf>,
max_epochs: usize,
time_limit: Option<String>,
},
Monitor {
dir: Option<PathBuf>,
refresh_ms: u64,
compact: bool,
json: bool,
format: String,
},
Runs {
command: RunsCommands,
},
Experiment {
command: ExperimentCommands,
},
Cbtop {Show 16 fields
model: Option<String>,
attach: Option<String>,
model_path: Option<PathBuf>,
headless: bool,
json: bool,
output: Option<PathBuf>,
ci: bool,
throughput: Option<f64>,
brick_score: Option<u32>,
warmup: usize,
iterations: usize,
speculative: bool,
speculation_k: usize,
draft_model: Option<PathBuf>,
concurrent: usize,
simulated: bool,
},
Probar {
file: PathBuf,
output: PathBuf,
format: String,
golden: Option<PathBuf>,
layer: Option<String>,
},
CompareHf {
file: PathBuf,
hf: String,
tensor: Option<String>,
threshold: f64,
json: bool,
},
Hex {Show 15 fields
file: PathBuf,
tensor: Option<String>,
limit: usize,
stats: bool,
list: bool,
json: bool,
header: bool,
blocks: bool,
distribution: bool,
contract: bool,
entropy: bool,
raw: bool,
offset: String,
width: usize,
slice: Option<String>,
},
Tree {
file: PathBuf,
filter: Option<String>,
format: String,
sizes: bool,
depth: Option<usize>,
},
Flow {
file: PathBuf,
layer: Option<String>,
component: String,
verbose: bool,
json: bool,
},
Qualify {
file: PathBuf,
tier: String,
timeout: u64,
json: bool,
verbose: bool,
skip: Option<Vec<String>>,
},
Train {
command: TrainCommands,
},
Tokenize {
command: TokenizeCommands,
},
Data {
command: DataCommands,
},
Pipeline {
command: PipelineCommands,
},
Diagnose {
checkpoint_dir: PathBuf,
data: Option<PathBuf>,
model_size: Option<String>,
num_classes: usize,
},
Tools(ToolCommands),
}Expand description
Extended CLI commands (analysis, profiling, QA, benchmarks, and advanced tools).
Flattened into Commands via #[command(flatten)] so all subcommands remain
top-level from the user’s perspective (e.g., apr chat, apr profile).
Variants§
Chat
Interactive chat with language model
Fields
Bench
Benchmark throughput (spec H12: >= 10 tok/s)
Fields
Eval
Evaluate model perplexity (spec H13: PPL <= 20) or classification metrics
Fields
Profile
Deep profiling with Roofline analysis
Fields
Qa
Falsifiable QA checklist for model releases
Fields
Parity
GPU/CPU parity check (PMAT-232: genchi genbutsu — see where GPU diverges)
Fields
PtxMap
Model-to-PTX source mapping (Mieruka: make GPU kernel dispatch visible)
Fields
Ptx
PTX analysis and bug detection (trueno-explain: register pressure, roofline, 15+ bug detectors)
Fields
Tune
ML tuning: LoRA/QLoRA configuration, memory planning, and HPO (GH-176, SPEC-TUNE-2026-001)
Fields
Monitor
Attach live TUI to a running training session
Fields
Runs
List, show, and compare training experiment runs
Fields
command: RunsCommandsExperiment
Interactive experiment browser (TUI with loss curves)
Fields
command: ExperimentCommandsCbtop
ComputeBrick pipeline monitor (cbtop)
Fields
Probar
Export for probar visual testing
Fields
CompareHf
Compare APR model against HuggingFace source
Fields
Hex
Format-aware binary forensics (10X better than xxd)
Fields
Tree
Model architecture tree view
Fields
Flow
Data flow visualization
Fields
Qualify
Cross-subcommand smoke test (does every tool handle this model?)
Fields
Train
Training pipeline (plan/apply) — forjar-style pre-flight validation
Fields
command: TrainCommandsTokenize
Tokenizer training pipeline (plan/apply) — BPE vocabulary learning
Fields
command: TokenizeCommandsData
Data quality pipeline (audit, split, balance) — powered by alimentar
Fields
command: DataCommandsPipeline
Pipeline orchestration (plan/apply/status) — wraps forjar DAG engine
Fields
command: PipelineCommandsDiagnose
Automated Five Whys diagnosis on a training checkpoint
Fields
Tools(ToolCommands)
Publishing, conversion, and analysis tools
Trait Implementations§
Source§impl Debug for ExtendedCommands
impl Debug for ExtendedCommands
Source§impl FromArgMatches for ExtendedCommands
impl FromArgMatches for ExtendedCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for ExtendedCommands
impl Subcommand for ExtendedCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ExtendedCommands
impl RefUnwindSafe for ExtendedCommands
impl Send for ExtendedCommands
impl Sync for ExtendedCommands
impl Unpin for ExtendedCommands
impl UnsafeUnpin for ExtendedCommands
impl UnwindSafe for ExtendedCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.