pub struct ContextParams {
pub n_parts: i32,
pub n_ctx: i32,
pub seed: i32,
pub f16_kv: bool,
pub vocab_only: bool,
pub use_mlock: bool,
pub use_mmap: bool,
pub embedding: bool,
}
Fields§
§n_parts: i32
§n_ctx: i32
§seed: i32
§f16_kv: bool
§vocab_only: bool
§use_mlock: bool
§use_mmap: bool
§embedding: bool
Implementations§
Source§impl ContextParams
impl ContextParams
pub fn new() -> ContextParams
Trait Implementations§
Source§impl Clone for ContextParams
impl Clone for ContextParams
Source§fn clone(&self) -> ContextParams
fn clone(&self) -> ContextParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContextParams
impl Debug for ContextParams
Source§impl Default for ContextParams
impl Default for ContextParams
Source§impl From<ContextParams> for llama_context_params
impl From<ContextParams> for llama_context_params
Source§fn from(params: ContextParams) -> Self
fn from(params: ContextParams) -> Self
Converts to this type from the input type.
Source§impl From<llama_context_params> for ContextParams
impl From<llama_context_params> for ContextParams
Source§fn from(params: llama_context_params) -> Self
fn from(params: llama_context_params) -> Self
Converts to this type from the input type.
impl Send for ContextParams
impl Sync for ContextParams
Auto Trait Implementations§
impl Freeze for ContextParams
impl RefUnwindSafe for ContextParams
impl Unpin for ContextParams
impl UnwindSafe for ContextParams
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