pub struct Gemma4E4bModel {
pub tok_tbl_gpu: OnceLock<CudaSlice<u8>>,
pub tok_embd_bytes: Vec<u8>,
pub tok_embd_qt: i32,
pub tok_embd_row_bytes: usize,
pub model_proj: GpuTensor,
pub proj_norm: GpuTensor,
pub n_epl: usize,
}Expand description
gemma-4 E4B model-level per-layer-embedding tensors (prologue inputs). The token table stays HOST-side raw GGUF bytes at load (Q6_K [n_epl*n_layer, n_vocab], ~2.3GB VRAM when uploaded — the forward arc decides resident-vs-gather placement).
Fields§
§tok_tbl_gpu: OnceLock<CudaSlice<u8>>device copy of the per-layer token table, uploaded on first use (the 26B embd_gpu pattern — keeps the ~2.3GB off load-critical paths that never decode).
tok_embd_bytes: Vec<u8>§tok_embd_qt: i32§tok_embd_row_bytes: usize§model_proj: GpuTensor§proj_norm: GpuTensor§n_epl: usizeAuto Trait Implementations§
impl !Freeze for Gemma4E4bModel
impl RefUnwindSafe for Gemma4E4bModel
impl Send for Gemma4E4bModel
impl Sync for Gemma4E4bModel
impl Unpin for Gemma4E4bModel
impl UnsafeUnpin for Gemma4E4bModel
impl UnwindSafe for Gemma4E4bModel
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