pub enum Commands {
Show 23 variants
Run {Show 22 fields
source: String,
positional_prompt: Option<String>,
input: Option<PathBuf>,
prompt: Option<String>,
max_tokens: usize,
stream: bool,
language: Option<String>,
task: Option<String>,
format: String,
no_gpu: bool,
gpu: bool,
offline: bool,
benchmark: bool,
trace: bool,
trace_steps: Option<Vec<String>>,
trace_verbose: bool,
trace_output: Option<PathBuf>,
trace_level: String,
trace_payload: bool,
profile: bool,
chat: bool,
verbose: bool,
},
Serve {
file: PathBuf,
port: u16,
host: String,
no_cors: bool,
no_metrics: bool,
no_gpu: bool,
gpu: bool,
batch: bool,
trace: bool,
trace_level: String,
profile: bool,
},
Inspect {
file: PathBuf,
vocab: bool,
filters: bool,
weights: bool,
json: bool,
},
Debug {
file: PathBuf,
drama: bool,
hex: bool,
strings: bool,
limit: usize,
},
Validate {
file: PathBuf,
quality: bool,
strict: bool,
min_score: Option<u8>,
},
Diff {
file1: PathBuf,
file2: PathBuf,
weights: bool,
values: bool,
filter: Option<String>,
limit: usize,
transpose_aware: bool,
json: bool,
},
Tensors {
file: PathBuf,
stats: bool,
filter: Option<String>,
limit: usize,
json: bool,
},
Trace {
file: PathBuf,
layer: Option<String>,
reference: Option<PathBuf>,
json: bool,
verbose: bool,
payload: bool,
diff: bool,
interactive: bool,
},
Lint {
file: PathBuf,
},
Explain {
code_or_file: Option<String>,
file: Option<PathBuf>,
tensor: Option<String>,
},
Canary {
command: CanaryCommands,
},
Export {
file: Option<PathBuf>,
format: String,
output: Option<PathBuf>,
quantize: Option<String>,
list_formats: bool,
batch: Option<String>,
json: bool,
},
Import {
source: String,
output: Option<PathBuf>,
arch: String,
quantize: Option<String>,
strict: bool,
preserve_q4k: bool,
tokenizer: Option<PathBuf>,
enforce_provenance: bool,
allow_no_config: bool,
},
Pull {
model_ref: String,
force: bool,
},
List,
Rm {
model_ref: String,
},
Convert {
file: PathBuf,
quantize: Option<String>,
compress: Option<String>,
output: PathBuf,
force: bool,
},
Merge {
files: Vec<PathBuf>,
strategy: String,
output: PathBuf,
weights: Option<Vec<f32>>,
base_model: Option<PathBuf>,
drop_rate: f32,
density: f32,
seed: u64,
},
Quantize {
file: PathBuf,
scheme: String,
output: Option<PathBuf>,
format: Option<String>,
batch: Option<String>,
plan: bool,
force: bool,
},
ModelOps(ModelOpsCommands),
Tui {
file: Option<PathBuf>,
},
Check {
file: PathBuf,
no_gpu: bool,
json: bool,
},
Extended(ExtendedCommands),
}Variants§
Run
Run model directly (auto-download, cache, execute)
Fields
Serve
Start inference server (REST API, streaming, metrics)
Fields
Inspect
Inspect model metadata, vocab, and structure
Fields
Debug
Simple debugging output (“drama” mode available)
Fields
Validate
Validate model integrity and quality
Fields
Diff
Compare two models
Fields
Tensors
List tensor names and shapes
Fields
Trace
Layer-by-layer trace analysis
Fields
Lint
Check for best practices and conventions
Explain
Explain errors, architecture, and tensors
Fields
Canary
Manage canary tests for regression
Fields
command: CanaryCommandsExport
Export model to other formats
Fields
Import
Import from external formats (hf://org/repo, local files, URLs)
Fields
preserve_q4k: boolPreserve Q4K quantization for fused kernel inference (GGUF only) Uses realizar’s Q4K converter instead of dequantizing to F32
tokenizer: Option<PathBuf>PMAT-232: External tokenizer.json for weights-only GGUF files. Required if the GGUF has no embedded tokenizer vocabulary.
Pull
Download and cache model from HuggingFace (Ollama-like UX)
Fields
List
List cached models
Rm
Remove model from cache
Convert
Convert/optimize model
Fields
Merge
Merge multiple models
Fields
Quantize
Quantize model weights (GH-243)
Fields
ModelOps(ModelOpsCommands)
Model optimization commands (fine-tune, prune, distill)
Tui
Interactive terminal UI
Check
Model self-test: 10-stage pipeline integrity check (APR-TRACE-001)
Fields
Extended(ExtendedCommands)
Extended analysis, profiling, QA, and visualization commands
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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