pub enum EmbeddingDType {
Float32,
Float16,
Int8,
Int4,
}Expand description
Embedding dtype + on-disk encoding. The two are 1:1 in v1 - float32
implies raw f32 LE, float16 implies raw f16 LE, int8 implies the
quantized prefix layout (see encoding::encode_int8_embeddings), int4
implies the block-64 per-group layout (see encode_int4_embeddings).
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingDType
impl Clone for EmbeddingDType
impl Copy for EmbeddingDType
Source§impl Debug for EmbeddingDType
impl Debug for EmbeddingDType
impl Eq for EmbeddingDType
Source§impl PartialEq for EmbeddingDType
impl PartialEq for EmbeddingDType
impl StructuralPartialEq for EmbeddingDType
Auto Trait Implementations§
impl Freeze for EmbeddingDType
impl RefUnwindSafe for EmbeddingDType
impl Send for EmbeddingDType
impl Sync for EmbeddingDType
impl Unpin for EmbeddingDType
impl UnsafeUnpin for EmbeddingDType
impl UnwindSafe for EmbeddingDType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.