pub struct SliceLoc {
pub shard: usize,
pub base: u64,
pub bytes: usize,
pub elems: usize,
pub ggml_type_id: u32,
}Expand description
Where one expert of one stacked projection lives.
Fields§
§shard: usize§base: u64Absolute byte offset of expert 0; expert e is at base + e * bytes.
bytes: usizeBytes per expert on disk.
elems: usizeElements per expert (k * n).
ggml_type_id: u32Trait Implementations§
impl Copy for SliceLoc
impl Eq for SliceLoc
impl StructuralPartialEq for SliceLoc
Auto Trait Implementations§
impl Freeze for SliceLoc
impl RefUnwindSafe for SliceLoc
impl Send for SliceLoc
impl Sync for SliceLoc
impl Unpin for SliceLoc
impl UnwindSafe for SliceLoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.