pub struct Args {Show 26 fields
pub device: usize,
pub mode: Mode,
pub name: Option<String>,
pub address: String,
pub api: Option<String>,
pub model: String,
pub topology: Option<String>,
pub prompt: String,
pub system_prompt: String,
pub seed: u64,
pub sample_len: usize,
pub temperature: f64,
pub top_p: Option<f64>,
pub top_k: Option<usize>,
pub repeat_penalty: f32,
pub repeat_last_n: usize,
pub dtype: Option<String>,
pub cluster_key: Option<String>,
pub discovery_timeout: u64,
pub ui_auth: Option<String>,
pub topology_override: Option<Topology>,
pub cpu: bool,
pub model_type: ModelType,
pub text_model_arch: TextModelArch,
pub sd_args: SDArgs,
pub sd_img_gen_args: ImageGenerationArgs,
}Fields§
§device: usizeGPU device index.
mode: ModeMode (set by subcommand, not directly by user).
name: Option<String>Worker name.
address: StringBinding address and port for workers.
api: Option<String>Enable OpenAI compatible chat completion API.
model: StringPath to model directory, or HuggingFace repo ID (e.g., Qwen/Qwen2.5-Coder-1.5B-Instruct).
topology: Option<String>Topology file.
prompt: StringThe initial prompt.
system_prompt: StringThe system prompt.
seed: u64The seed to use when generating random samples.
sample_len: usizeThe length of the sample to generate (in tokens).
temperature: f64The temperature used to generate samples.
top_p: Option<f64>Nucleus sampling probability cutoff.
top_k: Option<usize>Only sample among the top K samples.
repeat_penalty: f32Penalty to be applied for repeating tokens, 1. means no penalty.
repeat_last_n: usizeThe context size to consider for the repeat penalty.
dtype: Option<String>Use different dtype than f16
cluster_key: Option<String>Cluster key for zero-config mDNS discovery and PSK authentication. When set on both master and workers, enables automatic discovery, layer assignment, and model data push without topology files.
discovery_timeout: u64How long to wait for worker discovery (seconds). 0 = skip discovery.
ui_auth: Option<String>Optional basic auth for the web UI (format: “user:pass”).
topology_override: Option<Topology>Topology built during zero-config setup (not a CLI arg).
cpu: boolRun on CPU rather than on GPU.
model_type: ModelType§text_model_arch: TextModelArchText model architecture (auto-detected from config.json if omitted).
sd_args: SDArgs§sd_img_gen_args: ImageGenerationArgsTrait Implementations§
Source§impl Args for Args
impl Args for Args
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().