Struct llama_cpp_sys::llama_model_params
source · #[repr(C)]pub struct llama_model_params {
pub n_gpu_layers: i32,
pub split_mode: llama_split_mode,
pub main_gpu: i32,
pub tensor_split: *const f32,
pub progress_callback: llama_progress_callback,
pub progress_callback_user_data: *mut c_void,
pub kv_overrides: *const llama_model_kv_override,
pub vocab_only: bool,
pub use_mmap: bool,
pub use_mlock: bool,
}
Fields§
§n_gpu_layers: i32
§split_mode: llama_split_mode
§main_gpu: i32
§tensor_split: *const f32
§progress_callback: llama_progress_callback
§progress_callback_user_data: *mut c_void
§kv_overrides: *const llama_model_kv_override
§vocab_only: bool
§use_mmap: bool
§use_mlock: bool
Trait Implementations§
source§impl Clone for llama_model_params
impl Clone for llama_model_params
source§fn clone(&self) -> llama_model_params
fn clone(&self) -> llama_model_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_model_params
impl Debug for llama_model_params
source§impl PartialEq for llama_model_params
impl PartialEq for llama_model_params
source§fn eq(&self, other: &llama_model_params) -> bool
fn eq(&self, other: &llama_model_params) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_model_params
impl StructuralPartialEq for llama_model_params
Auto Trait Implementations§
impl Freeze for llama_model_params
impl RefUnwindSafe for llama_model_params
impl !Send for llama_model_params
impl !Sync for llama_model_params
impl Unpin for llama_model_params
impl UnwindSafe for llama_model_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