pub enum MoshiCheckpoint {
Bf16Safetensors,
Q8Gguf,
Q4MlxSafetensors,
Q8MlxSafetensors,
MlxBf16Safetensors,
}Expand description
Published Moshi LM weight preset (quantization + on-disk layout).
Variants§
Bf16Safetensors
kyutai/moshiko-candle-bf16 — model.safetensors (~14 GB).
Q8Gguf
kyutai/moshiko-candle-q8 — model.q8.gguf (~8 GB).
Q4MlxSafetensors
kyutai/moshiko-mlx-q4 — model.q4.safetensors (~4 GB).
Q8MlxSafetensors
kyutai/moshiko-mlx-q8 — model.q8.safetensors (~7 GB).
MlxBf16Safetensors
kyutai/moshiko-mlx-bf16 — model.safetensors (~14 GB, MLX key layout).
Implementations§
Source§impl MoshiCheckpoint
impl MoshiCheckpoint
Sourcepub const SHARED_FILES: &'static [&'static str]
pub const SHARED_FILES: &'static [&'static str]
Shared tokenizer + mimi sidecar files (same across Kyutai repos).
Sourcepub fn hf_repo(self, voice: MoshiVoice) -> &'static str
pub fn hf_repo(self, voice: MoshiVoice) -> &'static str
HuggingFace model repo for this preset and voice family.
Sourcepub fn default_cache_dir(self, voice: MoshiVoice) -> PathBuf
pub fn default_cache_dir(self, voice: MoshiVoice) -> PathBuf
Default .cache/… directory for a voice + preset pair (unless RLX_MOSHI_DIR overrides).
Sourcepub fn lm_filename(self) -> &'static str
pub fn lm_filename(self) -> &'static str
Primary LM weights filename inside a model directory.
Sourcepub fn is_mlx_quantized(self) -> bool
pub fn is_mlx_quantized(self) -> bool
Affine-quantized MLX weights (U32 packed + scales/biases).
Sourcepub fn mlx_quant_params(self) -> (u32, usize)
pub fn mlx_quant_params(self) -> (u32, usize)
Bits per weight and group size for affine MLX quants; (0, 0) for full-precision MLX bf16.
Sourcepub fn gpu_loadable(self) -> bool
pub fn gpu_loadable(self) -> bool
Whether the Candle moshi GPU backend can load this preset.
Sourcepub fn candle_compatible(self) -> bool
pub fn candle_compatible(self) -> bool
Candle-native tensor names (bf16 safetensors or Q8 GGUF).
Sourcepub fn size_class_gb(self) -> f32
pub fn size_class_gb(self) -> f32
Approximate published size class for docs / fetch hints.
Sourcepub fn parse(name: &str) -> Option<MoshiCheckpoint>
pub fn parse(name: &str) -> Option<MoshiCheckpoint>
Parse CLI / env preset names (bf16, q8, q4, q8-mlx, mlx-bf16, …).
Sourcepub fn from_env_or_default() -> MoshiCheckpoint
pub fn from_env_or_default() -> MoshiCheckpoint
Read RLX_MOSHI_CHECKPOINT, defaulting to Candle bf16 safetensors.
Sourcepub fn lm_weights_path(self, model_dir: &Path) -> PathBuf
pub fn lm_weights_path(self, model_dir: &Path) -> PathBuf
Absolute path to LM weights inside model_dir.
Sourcepub fn tokenizer_path(self, model_dir: &Path) -> PathBuf
pub fn tokenizer_path(self, model_dir: &Path) -> PathBuf
SentencePiece model path (shared across Kyutai repos).
Trait Implementations§
Source§impl Clone for MoshiCheckpoint
impl Clone for MoshiCheckpoint
Source§fn clone(&self) -> MoshiCheckpoint
fn clone(&self) -> MoshiCheckpoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MoshiCheckpoint
Source§impl Debug for MoshiCheckpoint
impl Debug for MoshiCheckpoint
impl Eq for MoshiCheckpoint
Source§impl Hash for MoshiCheckpoint
impl Hash for MoshiCheckpoint
Source§impl PartialEq for MoshiCheckpoint
impl PartialEq for MoshiCheckpoint
Source§fn eq(&self, other: &MoshiCheckpoint) -> bool
fn eq(&self, other: &MoshiCheckpoint) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MoshiCheckpoint
Auto Trait Implementations§
impl Freeze for MoshiCheckpoint
impl RefUnwindSafe for MoshiCheckpoint
impl Send for MoshiCheckpoint
impl Sync for MoshiCheckpoint
impl Unpin for MoshiCheckpoint
impl UnsafeUnpin for MoshiCheckpoint
impl UnwindSafe for MoshiCheckpoint
Blanket Implementations§
impl<T> Boilerplate for T
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
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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more