#[repr(C)]pub struct llama_model_params {Show 13 fields
pub devices: *mut ggml_backend_dev_t,
pub n_gpu_layers: i32,
pub split_mode: llama_split_mode,
pub main_gpu: i32,
pub tensor_split: *const f32,
pub rpc_servers: *const c_char,
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,
pub check_tensors: bool,
}
Fields§
§devices: *mut ggml_backend_dev_t
§n_gpu_layers: i32
§split_mode: llama_split_mode
§main_gpu: i32
§tensor_split: *const f32
§rpc_servers: *const c_char
§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
§check_tensors: 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
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