pub enum Command {
Fetch {
model_id: String,
role: ModelRole,
},
Inspect {
target: InspectTarget,
},
Memory {
batch_size: Option<u32>,
seq_len: Option<usize>,
},
Set {
key: String,
value: String,
},
Distill {
dry_run: bool,
},
Export {
format: String,
path: String,
},
History,
Help {
topic: Option<String>,
},
Clear,
Quit,
Unknown {
input: String,
},
}Expand description
A parsed command.
Variants§
Fetch
Fetch a model from HuggingFace
Inspect
Inspect a loaded model
Fields
§
target: InspectTargetMemory
Estimate memory requirements
Set
Set configuration values
Distill
Run distillation
Export
Export model to file
History
Show command history
Help
Show help
Clear
Clear screen
Quit
Quit the shell
Unknown
Unknown command
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
Mutably borrows from an owned value. Read more