pub struct HeadroomArgs {
pub need: Option<u64>,
pub gpu: Option<u64>,
pub model: Option<PathBuf>,
pub ctx: Option<u64>,
pub kv_type: String,
pub parallel: u64,
pub offload: Offload,
pub json: bool,
}Fields§
§need: Option<u64>Host RAM needed, e.g. 13G, 500M.
gpu: Option<u64>GPU memory that must also fit the GPU budget (discrete GPUs), e.g. 8G.
model: Option<PathBuf>Model file or directory (.gguf, safetensors/MLX dir); reads headers only, never weights.
ctx: Option<u64>Context length for the KV-cache estimate (default: the model’s, capped at 8192).
kv_type: StringKV cache type: f16 | q8_0 | q4_0 | … (llama.cpp –cache-type-k).
parallel: u64Parallel sequences (llama.cpp -np / OLLAMA_NUM_PARALLEL).
offload: OffloadWhere the model runs.
json: boolTrait Implementations§
Source§impl Args for HeadroomArgs
impl Args for HeadroomArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for HeadroomArgs
impl Debug for HeadroomArgs
Source§impl FromArgMatches for HeadroomArgs
impl FromArgMatches for HeadroomArgs
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Forget for HeadroomArgs
impl Freeze for HeadroomArgs
impl Move for HeadroomArgs
impl RefUnwindSafe for HeadroomArgs
impl Send for HeadroomArgswhere
RawVecInner: Send,
impl Sync for HeadroomArgswhere
RawVecInner: Sync,
impl Unpin for HeadroomArgs
impl UnsafeUnpin for HeadroomArgs
impl UnwindSafe for HeadroomArgswhere
RawVecInner: UnwindSafe,
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
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> ⓘ
Converts
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> ⓘ
Converts
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