pub enum ExtendedCommands {
Show 18 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 {
file: PathBuf,
dataset: String,
text: Option<String>,
max_tokens: usize,
threshold: 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 {
file: Option<PathBuf>,
method: String,
rank: Option<u32>,
vram: f64,
plan: bool,
model: Option<String>,
freeze_base: bool,
train_data: Option<PathBuf>,
json: bool,
},
Monitor {
dir: PathBuf,
refresh_ms: u64,
compact: bool,
},
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>>,
},
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)
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 and memory planning (GH-176)
Fields
Monitor
Attach live TUI to a running training session
Fields
Cbtop
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
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> 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 more