pub struct Options {Show 18 fields
pub worker: Setting<PathBuf>,
pub model_dir: Setting<PathBuf>,
pub model_sha256: Setting<String>,
pub memory_bytes: Setting<u64>,
pub threads: Setting<u64>,
pub batch_items: Setting<u64>,
pub input_bytes: Setting<u64>,
pub tokens: Setting<u64>,
pub frame_bytes: Setting<u32>,
pub ready_ms: Setting<u64>,
pub call_ms: Setting<u64>,
pub waiting: Setting<u64>,
pub request_items: Setting<u64>,
pub page_records: Setting<u64>,
pub writer_wait_ms: Setting<u64>,
pub windows: Setting<bool>,
pub max_windows: Setting<u64>,
pub overlap_tokens: Setting<u64>,
}Expand description
The keys as serve.json gives them; all absent turns embedding off.
Fields§
§worker: Setting<PathBuf>§model_dir: Setting<PathBuf>§model_sha256: Setting<String>§memory_bytes: Setting<u64>§threads: Setting<u64>§batch_items: Setting<u64>§input_bytes: Setting<u64>§tokens: Setting<u64>§frame_bytes: Setting<u32>§ready_ms: Setting<u64>§call_ms: Setting<u64>§waiting: Setting<u64>§request_items: Setting<u64>§page_records: Setting<u64>§writer_wait_ms: Setting<u64>§windows: Setting<bool>EMB-E2: embed_windows; off when absent.
max_windows: Setting<u64>EMB-E2: embed_max_windows; MAX_WINDOWS when absent.
overlap_tokens: Setting<u64>EMB-E2: embed_window_overlap_tokens; OVERLAP_TOKENS when absent.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.