pub struct Builder { /* private fields */ }Expand description
Settings for Kime, from Kime::builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn model(self, name: impl Into<String>) -> Self
pub fn model(self, name: impl Into<String>) -> Self
The model: an alias such as laya, a checkpoint directory, a .kime file or an
hf://org/repo[/subfolder] reference. See hub.
Sourcepub fn preload(self, yes: bool) -> Self
pub fn preload(self, yes: bool) -> Self
Builds the plans for the smallest batch shapes now, so the first requests do not pay for them.
Sourcepub fn answer_cache(self, entries: usize) -> Self
pub fn answer_cache(self, entries: usize) -> Self
Keeps the answers to about entries questions, so the same question on the same state
is answered again without the device. 0, the default, keeps none.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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