MCPcopy Index your code

hub / github.com/kyutai-labs/moshi / functions

Functions664 in github.com/kyutai-labs/moshi

↓ 73 callersMethodlog
(self, level: str, msg: str)
moshi/moshi/client_utils.py:193
↓ 32 callersFunctionlog
Log something with a given level.
moshi/moshi/client_utils.py:29
↓ 24 callersMethodcat
(conditions: list['WavCondition'])
moshi/moshi/conditioners/base.py:63
↓ 22 callersFunctionhf_hub_download
(repo, path: str)
moshi_mlx/moshi_mlx/local.py:31
↓ 21 callersMethoddecode
Decode the given codes to a reconstructed representation. Args: codes (torch.Tensor): Int tensor of shape [B, K, T] Retu
moshi/moshi/models/compression.py:395
↓ 20 callersFunctionlog
(level: str, msg: str)
moshi_mlx/moshi_mlx/local_web.py:42
↓ 18 callersMethodencode
Encode the given input tensor to quantized representation. Args: x (torch.Tensor): Float tensor of shape [B, C, T] Retur
moshi/moshi/models/compression.py:365
↓ 15 callersMethodadd
(self, msg: str, color: str | None = None)
moshi/moshi/client_utils.py:85
↓ 14 callersMethodadd
(self, msg: str, color: str | None = None)
moshi_mlx/moshi_mlx/client_utils.py:78
↓ 11 callersFunctionlog
(level: str, msg: str)
moshi_mlx/moshi_mlx/run_inference.py:21
↓ 11 callersMethodstreaming
Context manager to enter streaming mode. Reset streaming state on exit.
moshi/moshi/modules/streaming.py:112
↓ 10 callersMethodcurrentSamples
()
client/src/audio-processor.ts:109
↓ 9 callersFunctionasSamples
(mili)
client/src/audio-processor.ts:6
↓ 9 callersMethodstart
()
client/src/audio-processor.ts:122
↓ 8 callersFunctionasMs
(samples)
client/src/audio-processor.ts:2
↓ 8 callersMethodflush
(self)
moshi/moshi/client_utils.py:119
↓ 7 callersMethodlog
(self, level: str, msg: str)
moshi_mlx/moshi_mlx/client_utils.py:39
↓ 6 callersMethod__init__
(self)
moshi_mlx/moshi_mlx/modules/transformer.py:42
↓ 6 callersFunctionabort
(what)
client/public/assets/decoderWorker.min.js:594
↓ 6 callersMethodflush
(self)
moshi_mlx/moshi_mlx/client_utils.py:112
↓ 6 callersFunctiongetMimeType
(type: "audio" | "video")
client/src/pages/Conversation/getMimeType.ts:55
↓ 6 callersFunctionhf_get
(filename: str | Path, hf_repo: str | None = None)
moshi/moshi/models/loaders.py:111
↓ 6 callersFunctionhf_hub_download
(repo, path: str)
moshi_mlx/moshi_mlx/local_web.py:54
↓ 6 callersMethodstep
(self, input_tokens: torch.Tensor)
moshi/moshi/models/lm.py:461
↓ 6 callersFunctionuseSocketContext
()
client/src/pages/Conversation/SocketContext.ts:16
↓ 6 callersFunctionzero_scalar
Returns a 0. value on the given device without introducing a synchronization point.
moshi/moshi/quantization/core_vq.py:86
↓ 5 callersMethod__init__
( self, dim: int, eps: float = 1e-5, dtype: tp.Optional[torch.dtype] = None,
moshi/moshi/modules/transformer.py:59
↓ 5 callersMethod__init__
(self, seed: int = 1234)
moshi/moshi/conditioners/base.py:271
↓ 5 callersMethod_apply_named_streaming
(self, fn: tp.Any)
moshi/moshi/modules/streaming.py:74
↓ 5 callersFunctioncolorize
(text, color)
moshi/moshi/client_utils.py:11
↓ 5 callersFunctioncolorize
(text, color)
moshi_mlx/moshi_mlx/client_utils.py:9
↓ 5 callersMethoddevice
(self)
moshi/moshi/models/lm.py:265
↓ 5 callersMethodlast_audio_tokens
(self)
moshi_mlx/moshi_mlx/models/generate.py:103
↓ 5 callersFunctionlog
(s)
moshi_mlx/moshi_mlx/local.py:92
↓ 5 callersMethodnewline
(self)
moshi/moshi/client_utils.py:110
↓ 5 callersMethodnewline
(self)
moshi_mlx/moshi_mlx/client_utils.py:103
↓ 5 callersMethodrun
(self)
moshi/moshi/client.py:137
↓ 5 callersMethodtimestamp
()
client/src/audio-processor.ts:105
↓ 4 callersMethod__init__
( self, *args, causal: bool = False, norm: str = "none", norm_kwargs:
moshi/moshi/modules/conv.py:116
↓ 4 callersMethod_trim
(self, trim_size, v, append=None)
moshi_mlx/moshi_mlx/modules/kv_cache.py:80
↓ 4 callersFunctioncreate_norm_fn
Create normalization module for transformer encoder layer. Args: norm_type (str): Normalization method. dim (int): Dimension of t
moshi/moshi/modules/transformer.py:112
↓ 4 callersMethoddecode
Given a tensor of codes of shape `[*]`, returns a tensor of shape `[*, D]`, corresponding to the centroids associated to each code index.
moshi/moshi/quantization/core_vq.py:271
↓ 4 callersFunctiondecodeMessage
(data: Uint8Array)
client/src/protocol/encoder.ts:37
↓ 4 callersMethodforward
(self, x: torch.Tensor, y: torch.Tensor)
moshi/moshi/modules/streaming.py:178
↓ 4 callersFunctionfunction
(obj, indent: str, text_signature: str = None)
rust/mimi-pyo3/stub.py:26
↓ 4 callersFunctiongetFloatFromStorage
(val: string | null)
client/src/pages/Queue/Queue.tsx:12
↓ 4 callersFunctiongetIntFromStorage
(val: string | null)
client/src/pages/Queue/Queue.tsx:16
↓ 4 callersMethodget_mimi
(self, device: torch.device | str = 'cpu')
moshi/moshi/models/loaders.py:202
↓ 4 callersFunctionhf_get
(filename: str)
moshi_mlx/moshi_mlx/run_inference.py:25
↓ 4 callersFunctionmultinomial
torch.multinomial with arbitrary number of dimensions, and number of candidates on the last dimension. Args: input (torch.Tensor): The in
moshi/moshi/utils/sampling.py:15
↓ 4 callersMethodstep
(self, other_audio_tokens: mx.array, ct: ConditionTensor | None = None)
moshi_mlx/moshi_mlx/models/generate.py:57
↓ 4 callersMethodstreaming_forever
(self, batch_size: int)
moshi/moshi/modules/streaming.py:109
↓ 3 callersMethod__init__
(self, cfg: LmConfig)
moshi_mlx/moshi_mlx/models/lm.py:223
↓ 3 callersMethod_remove_pending
(self)
moshi/moshi/client_utils.py:142
↓ 3 callersMethod_remove_pending
(self)
moshi_mlx/moshi_mlx/client_utils.py:135
↓ 3 callersFunction_sample_vectors
(samples: torch.Tensor, num: int)
moshi/moshi/quantization/core_vq.py:38
↓ 3 callersFunctioncallRuntimeCallbacks
(callbacks)
client/public/assets/decoderWorker.min.js:727
↓ 3 callersFunctioncolorize
(text, color)
moshi_mlx/moshi_mlx/local_web.py:36
↓ 3 callersMethodcondition_types
()
moshi/moshi/conditioners/base.py:140
↓ 3 callersMethodcopy
(self)
moshi/moshi/conditioners/base.py:143
↓ 3 callersMethoddecode_latent
Decode from the discrete codes to continuous latent space.
moshi/moshi/models/compression.py:418
↓ 3 callersMethoderase
(self, count: int = 1)
moshi/moshi/client_utils.py:97
↓ 3 callersMethoderase
(self, count: int = 1)
moshi_mlx/moshi_mlx/client_utils.py:90
↓ 3 callersMethodfrom_hf_repo
Downloads the checkpoints from the given repo, along with its config. Extra overrides are possible for each of Moshi, Mimi, or the text token
moshi/moshi/models/loaders.py:147
↓ 3 callersFunctiongetExtension
(type: "audio" | "video")
client/src/pages/Conversation/getMimeType.ts:62
↓ 3 callersMethodget_moshi
(self, strict: bool = True, device: torch.device | str = 'cpu')
moshi/moshi/models/loaders.py:209
↓ 3 callersFunctionis_quantized
(module: nn.Module, name: str = 'weight')
moshi/moshi/utils/quantize.py:90
↓ 3 callersFunctionpad1d
Tiny wrapper around F.pad, just to allow for reflect padding on small input. If this is the case, we insert extra 0 padding to the right before th
moshi/moshi/modules/conv.py:77
↓ 3 callersMethodprepare
(self, x: tp.List[tp.Optional[str]])
moshi/moshi/conditioners/text.py:123
↓ 3 callersFunctionquantize_transformer
(module: torch.nn.Module)
moshi/moshi/modules/transformer.py:28
↓ 3 callersFunctionr
(s)
client/public/assets/decoderWorker.min.js:13
↓ 3 callersMethodrender
(self)
moshi/moshi/client_utils.py:62
↓ 3 callersMethodreset_streaming
Reset the streaming state.
moshi/moshi/modules/streaming.py:120
↓ 3 callersMethodsample
( self, text_token_ids: mx.array, audio_token_ids: list[mx.array], text_sample
moshi_mlx/moshi_mlx/models/lm.py:270
↓ 3 callersMethodwarmup
(self)
moshi/moshi/server.py:64
↓ 3 callersMethodwarmup
(self, ct: ConditionTensor | None)
moshi_mlx/moshi_mlx/models/lm.py:304
↓ 2 callersFunctionUTF8ArrayToString
(heap, idx, maxBytesToRead)
client/public/assets/decoderWorker.min.js:473
↓ 2 callersMethod__init__
( self, channels: int = 1, dimension: int = 128, n_filters: int = 32,
moshi/moshi/modules/seanet.py:128
↓ 2 callersMethod__init__
(self)
moshi/moshi/modules/streaming.py:55
↓ 2 callersMethod__init__
( self, dim: int, codebook_size: int, decay: float = 0.99, epsilon: fl
moshi/moshi/quantization/core_vq.py:115
↓ 2 callersMethod__init__
( self, lm_model: LMModel, use_sampling: bool = True, temp: float = 0.8,
moshi/moshi/models/lm.py:392
↓ 2 callersMethod_broadcast_buffers
(self)
moshi/moshi/quantization/core_vq.py:206
↓ 2 callersFunction_ema_inplace
(moving_avg: torch.Tensor, new: torch.Tensor, decay: float)
moshi/moshi/quantization/core_vq.py:34
↓ 2 callersMethod_encode_to_unquantized_latent
Projects a batch of waveforms to unquantized latent space. Args: x (torch.Tensor): Float tensor of shape [B, C, T]. Retu
moshi/moshi/models/compression.py:341
↓ 2 callersFunction_is_cuda_graph_enabled
()
moshi/moshi/utils/compile.py:168
↓ 2 callersFunction_is_distributed
()
moshi/moshi/quantization/core_vq.py:58
↓ 2 callersFunction_is_safetensors
(path: Path | str)
moshi/moshi/models/loaders.py:216
↓ 2 callersMethod_lost_connection
(self)
moshi/moshi/client.py:117
↓ 2 callersMethod_quantize
(self, x: torch.Tensor)
moshi/moshi/quantization/core_vq.py:252
↓ 2 callersMethod_rearrange_input
(self, x)
moshi/moshi/quantization/core_vq.py:381
↓ 2 callersMethod_rearrange_output
(self, quantized)
moshi/moshi/quantization/core_vq.py:385
↓ 2 callersMethod_renorm_and_add
Renormalizes values from `rvq_first` and `rvq_rest` and adds them. This allows correcting statistics that are normalized by the number of qua
moshi/moshi/quantization/vq.py:202
↓ 2 callersMethod_reshape_codes
(self, codes: torch.Tensor, shape: torch.Size)
moshi/moshi/quantization/core_vq.py:249
↓ 2 callersMethod_reshape_input
(self, x: torch.Tensor)
moshi/moshi/quantization/core_vq.py:244
↓ 2 callersMethod_to_encoder_framerate
(self, x: torch.Tensor)
moshi/moshi/models/compression.py:274
↓ 2 callersMethod_to_framerate
(self, x: torch.Tensor)
moshi/moshi/models/compression.py:261
↓ 2 callersFunctionapply_parametrization_norm
(module: nn.Module, norm: str = "none")
moshi/moshi/modules/conv.py:40
↓ 2 callersMethodcanPlay
()
client/src/audio-processor.ts:128
↓ 2 callersFunctionclamp
(value: number, min: number, max: number)
client/src/pages/Conversation/hooks/audioUtils.ts:1
↓ 2 callersFunctionconvertMinSecs
(total_secs: number)
client/src/pages/Conversation/components/ServerAudio/ServerAudioStats.tsx:23
next →1–100 of 664, ranked by callers