pub struct EmbeddingGatherParams {
pub embed_dim: usize,
pub group_size: usize,
pub bits: u8,
pub n_tokens: usize,
}Expand description
Parameters for quantized embedding gather.
Fields§
§embed_dim: usizeEmbedding dimension (number of float values per token).
group_size: usizeNumber of elements per quantization group (typically 64).
bits: u8Quantization bit width: 4 or 6.
n_tokens: usizeNumber of tokens to gather.
Auto Trait Implementations§
impl Freeze for EmbeddingGatherParams
impl RefUnwindSafe for EmbeddingGatherParams
impl Send for EmbeddingGatherParams
impl Sync for EmbeddingGatherParams
impl Unpin for EmbeddingGatherParams
impl UnsafeUnpin for EmbeddingGatherParams
impl UnwindSafe for EmbeddingGatherParams
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