pub struct DeviceMemoryHyperParams {
pub n_gpu_layers: u32,
pub n_ctx_train: u32,
pub n_expert: u32,
}Expand description
Hyper-parameters discovered while estimating device memory.
Fields§
§n_gpu_layers: u32Model n_gpu_layers hyper-parameter used for the estimate.
n_ctx_train: u32Model training context length.
n_expert: u32Number of MoE experts (0 when dense).
Trait Implementations§
Source§impl Clone for DeviceMemoryHyperParams
impl Clone for DeviceMemoryHyperParams
Source§fn clone(&self) -> DeviceMemoryHyperParams
fn clone(&self) -> DeviceMemoryHyperParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceMemoryHyperParams
Source§impl Debug for DeviceMemoryHyperParams
impl Debug for DeviceMemoryHyperParams
impl Eq for DeviceMemoryHyperParams
Source§impl PartialEq for DeviceMemoryHyperParams
impl PartialEq for DeviceMemoryHyperParams
Source§fn eq(&self, other: &DeviceMemoryHyperParams) -> bool
fn eq(&self, other: &DeviceMemoryHyperParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceMemoryHyperParams
Auto Trait Implementations§
impl Freeze for DeviceMemoryHyperParams
impl RefUnwindSafe for DeviceMemoryHyperParams
impl Send for DeviceMemoryHyperParams
impl Sync for DeviceMemoryHyperParams
impl Unpin for DeviceMemoryHyperParams
impl UnsafeUnpin for DeviceMemoryHyperParams
impl UnwindSafe for DeviceMemoryHyperParams
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