pub enum Command {
Upload {
repo: String,
token: String,
root: PathBuf,
},
Convert {
model: String,
output: PathBuf,
dtype: DtypeArg,
model_dir: PathBuf,
token: Option<String>,
redownload: bool,
},
InspectTensors {
path: PathBuf,
},
Infer {
gguf: PathBuf,
},
Delete {
model: String,
model_dir: PathBuf,
output: Option<PathBuf>,
},
}Variants§
Upload
Upload source + GGUF files to HuggingFace Hub.
Fields
Convert
Download Lag-Llama from HuggingFace and convert to GGUF.
Downloads lag-llama.ckpt and reads it directly via the in-workspace pickle reader — no Python or intermediate extraction step required.
The first conversion downloads the model and writes a canonical F32 GGUF to
<model_dir>/<owner>__<name>/model-f32.gguf, deleting the downloaded .ckpt
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).
Infer
Run Lag-Llama forecasting from a GGUF file. Univariate, point-forecast only. No –config flag: the architecture is fixed (LagLlamaConfig::default_from_ckpt()), unlike chronos/flowstate/toto/ttm, which vary by checkpoint and need config.json.
Reads a JSON request from stdin: {“context”: […], “horizon”: N} Outputs a JSON forecast in OpenAI-compatible format.
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