pub enum Command {
Convert {
model: String,
filename: String,
output: Option<PathBuf>,
dtype: DtypeArg,
model_dir: PathBuf,
token: Option<String>,
redownload: bool,
},
InspectTensors {
path: PathBuf,
},
Upload {
repo: String,
token: String,
root: PathBuf,
},
Infer {
gguf: PathBuf,
task: TaskArg,
},
Delete {
model: String,
model_dir: PathBuf,
output: Option<PathBuf>,
},
}Variants§
Convert
Download TabDPT (one checkpoint serves both classification and regression) from HuggingFace and convert to GGUF.
The first conversion downloads the model and writes a canonical F32 GGUF alongside it, deleting the downloaded safetensors file afterward. Later conversions (any –dtype) recast from that cached F32 GGUF instead of re-downloading — pass –redownload to force a fresh download anyway (e.g. the repo was updated).
Fields
InspectTensors
Print all tensor names in a local checkpoint file (safetensors, PyTorch pickle, GGUF, or npy/npz — format auto-detected).
Upload
Upload source + GGUF files to HuggingFace Hub.
Infer
Zero-shot classification/regression from a GGUF file (single forward pass — no class-permutation ensembling; see the crate’s module docs for why).
Reads a JSON request from stdin:
{“x_support”: [[…]], “y_support”: […], “x_query”: [[…]], “n_classes”: N}
n_classes is only used for classification (ignored, may be omitted, for regression).
Outputs JSON: classification -> {“task”:“classification”,“probabilities”:[[…]]};
regression -> {“task”:“regression”,“predictions”:[…]}.
Delete
Delete cached model files for this model.
Removes the canonical F32 GGUF and config cache at
<model_dir>/<owner>__<name>/ created by convert. By default only
the cache is removed; pass --output <path> to also delete a
converted GGUF file (e.g. gguf/...).
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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