#[repr(C)]pub struct llama_context_params {
pub n_ctx: c_int,
pub n_parts: c_int,
pub seed: c_int,
pub f16_kv: bool,
pub logits_all: bool,
pub vocab_only: bool,
pub use_mmap: bool,
pub use_mlock: bool,
pub embedding: bool,
pub progress_callback: llama_progress_callback,
pub progress_callback_user_data: *mut c_void,
}
Fields§
§n_ctx: c_int
§n_parts: c_int
§seed: c_int
§f16_kv: bool
§logits_all: bool
§vocab_only: bool
§use_mmap: bool
§use_mlock: bool
§embedding: bool
§progress_callback: llama_progress_callback
§progress_callback_user_data: *mut c_void
Trait Implementations§
Source§impl Clone for llama_context_params
impl Clone for llama_context_params
Source§fn clone(&self) -> llama_context_params
fn clone(&self) -> llama_context_params
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 llama_context_params
impl Debug for llama_context_params
impl Copy for llama_context_params
Auto Trait Implementations§
impl Freeze for llama_context_params
impl RefUnwindSafe for llama_context_params
impl !Send for llama_context_params
impl !Sync for llama_context_params
impl Unpin for llama_context_params
impl UnwindSafe for llama_context_params
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