Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/kyutai-labs/moshi
/ types & classes
Types & classes
120 in github.com/kyutai-labs/moshi
⨍
Functions
664
◇
Types & classes
120
↳
Endpoints
4
↓ 10 callers
Class
StreamingConv1d
Conv1d with some builtin handling of asymmetric or causal padding and normalization.
moshi/moshi/modules/conv.py:168
↓ 9 callers
Class
TransformerConfig
moshi_mlx/moshi_mlx/modules/transformer.py:13
↓ 5 callers
Class
CUDAGraphed
Allow simple CUDA Graphing of a function. Args: func: callable, taking any number of arguments. Its tensors arguments should
moshi/moshi/utils/compile.py:189
↓ 5 callers
Class
DepFormerConfig
moshi_mlx/moshi_mlx/models/lm.py:17
↓ 5 callers
Class
LmConfig
moshi_mlx/moshi_mlx/models/lm.py:25
↓ 4 callers
Class
SEANetResnetBlock
Residual block from SEANet model. Args: dim (int): Dimension of the input/output. kernel_sizes (list): List of kernel sizes for t
moshi/moshi/modules/seanet.py:21
↓ 4 callers
Class
StreamingConvTranspose1d
ConvTranspose1d with some builtin handling of asymmetric or causal padding and normalization.
moshi/moshi/modules/conv.py:265
↓ 4 callers
Class
WavCondition
Input for waveform based conditionings. Wav should always be 3-dim `[B, C, T]` even before collation.
moshi/moshi/conditioners/base.py:49
↓ 3 callers
Class
ConditionAttributes
Standard class for representing the set of potential inputs to the conditioners. Typically, `audiocraft.data.audio_dataset.SegmentInfo` will conve
moshi/moshi/conditioners/base.py:120
↓ 3 callers
Class
ConditionType
Return type for a conditioner: both a condition tensor, and a mask indicating valid positions.
moshi/moshi/conditioners/base.py:41
↓ 3 callers
Class
LMGen
moshi/moshi/models/lm.py:391
↓ 3 callers
Class
QuantizedResult
moshi/moshi/quantization/base.py:23
↓ 3 callers
Class
StreamingTransformer
Transformer with Streaming / Causal support. Args: d_model (int): Dimension of the data. num_heads (int): Number of heads.
moshi/moshi/modules/transformer.py:613
↓ 2 callers
Class
Id
moshi_mlx/moshi_mlx/modules/transformer.py:41
↓ 2 callers
Class
KVCacheResult
moshi/moshi/modules/transformer.py:180
↓ 2 callers
Class
LayerScale
Layer scale from [Touvron et al 2021] (https://arxiv.org/pdf/2103.17239.pdf). This rescales diagonally the residual outputs close to 0, with a lea
moshi/moshi/modules/transformer.py:77
↓ 2 callers
Class
LayerScale
moshi_mlx/moshi_mlx/modules/transformer.py:49
↓ 2 callers
Class
MoshiHandler
moshi/moshi/client_gradio.py:21
↓ 2 callers
Class
RMSNorm
moshi/moshi/modules/transformer.py:58
↓ 2 callers
Class
RawStreamingConv1d
moshi/moshi/modules/streaming.py:202
↓ 2 callers
Class
RawStreamingConvTranspose1d
moshi/moshi/modules/streaming.py:252
↓ 2 callers
Class
ResidualVectorQuantizer
Residual Vector Quantizer. Args: dimension (int): Dimension of the codebooks. input_dimension (None or int): dimension of the inp
moshi/moshi/quantization/vq.py:21
↓ 2 callers
Class
SEANetDecoder
SEANet decoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (
moshi/moshi/modules/seanet.py:244
↓ 2 callers
Class
TokenizedText
moshi/moshi/conditioners/text.py:47
↓ 2 callers
Class
Transformer
moshi_mlx/moshi_mlx/modules/transformer.py:173
↓ 2 callers
Class
_VQForwardResult
moshi/moshi/quantization/core_vq.py:27
↓ 1 callers
Class
ActivationGating
Gating FFN layer, using the given activation. Args: dim (int): dimension of the input and output of the transformer. activati
moshi/moshi/modules/gating.py:25
↓ 1 callers
Class
Attention
moshi_mlx/moshi_mlx/modules/transformer.py:59
↓ 1 callers
Class
CheckpointInfo
Contains the paths to each sub model, along with some extra configuration. Args: moshi_weights: path to the checkpoint for the Moshi
moshi/moshi/models/loaders.py:126
↓ 1 callers
Class
ConditionFuser
Condition fuser handles the logic to combine the different conditions to the actual model input. Args: fuse2cond (tp.Dict[str, str]):
moshi/moshi/conditioners/base.py:483
↓ 1 callers
Class
ConditionProvider
Prepare and provide conditions given all the supported conditioners. Args: conditioners (dict): Dictionary of conditioners. devic
moshi/moshi/conditioners/base.py:366
↓ 1 callers
Class
ConditionProvider
moshi_mlx/moshi_mlx/modules/conditioner.py:46
↓ 1 callers
Class
ConditionTensor
moshi_mlx/moshi_mlx/modules/conditioner.py:43
↓ 1 callers
Class
Connection
moshi/moshi/client.py:19
↓ 1 callers
Class
ConvDownsample1d
Downsampling by some integer amount `stride` using convolutions with a kernel size of twice the stride. If `causal` is True, the output u
moshi/moshi/modules/resample.py:14
↓ 1 callers
Class
ConvTrUpsample1d
Upsample by some integer amount `stride` using transposed convolutions.
moshi/moshi/modules/resample.py:68
↓ 1 callers
Class
DepFormer
moshi_mlx/moshi_mlx/models/lm.py:170
↓ 1 callers
Class
DepFormerSlice
moshi_mlx/moshi_mlx/models/lm.py:147
↓ 1 callers
Class
EuclideanCodebook
Codebook with Euclidean distance. Args: dim (int): Dimension. codebook_size (int): Codebook size. decay (float): Decay fo
moshi/moshi/quantization/core_vq.py:91
↓ 1 callers
Class
InferenceState
moshi/moshi/run_inference.py:51
↓ 1 callers
Class
KVCache
moshi_mlx/moshi_mlx/modules/kv_cache.py:12
↓ 1 callers
Class
LMModel
Transformer-based language model on multiple streams of codes. Args: n_q (int): Number of parallel streams to model as input. dep
moshi/moshi/models/lm.py:71
↓ 1 callers
Class
LUTConditioner
Lookup table TextConditioner. Args: n_bins (int): Number of bins. dim (int): Hidden dim of the model (text-encoder/LUT).
moshi/moshi/conditioners/text.py:106
↓ 1 callers
Class
LayerNormF32
moshi/moshi/modules/transformer.py:36
↓ 1 callers
Class
Line
moshi/moshi/client_utils.py:72
↓ 1 callers
Class
Line
moshi_mlx/moshi_mlx/client_utils.py:65
↓ 1 callers
Class
LineEntry
moshi/moshi/client_utils.py:58
↓ 1 callers
Class
LineEntry
moshi_mlx/moshi_mlx/client_utils.py:51
↓ 1 callers
Class
LowRankEmbeddings
moshi_mlx/moshi_mlx/models/lm.py:131
↓ 1 callers
Class
LutConditioner
moshi_mlx/moshi_mlx/modules/conditioner.py:23
↓ 1 callers
Class
LutConditionerConfig
moshi_mlx/moshi_mlx/modules/conditioner.py:16
↓ 1 callers
Class
MimiModel
Mimi model operating on the raw waveform. Args: encoder (nn.Module): Encoder network. decoder (nn.Module): Decoder network.
moshi/moshi/models/compression.py:99
↓ 1 callers
Class
MlpGating
moshi_mlx/moshi_mlx/modules/transformer.py:103
↓ 1 callers
Class
MlpNoGating
moshi_mlx/moshi_mlx/modules/transformer.py:121
↓ 1 callers
Class
NoopTokenizer
This tokenizer should be used for global conditioners such as: artist, genre, key, etc. The difference between this and WhiteSpaceTokenizer is tha
moshi/moshi/conditioners/text.py:63
↓ 1 callers
Class
NormConv1d
Wrapper around Conv1d and normalization applied to this conv to provide a uniform interface across normalization approaches.
moshi/moshi/modules/conv.py:111
↓ 1 callers
Class
NormConvTranspose1d
Wrapper around ConvTranspose1d and normalization applied to this conv to provide a uniform interface across normalization approaches.
moshi/moshi/modules/conv.py:135
↓ 1 callers
Class
Printer
moshi/moshi/client_utils.py:127
↓ 1 callers
Class
Printer
moshi_mlx/moshi_mlx/client_utils.py:120
↓ 1 callers
Class
RawPrinter
moshi/moshi/client_utils.py:34
↓ 1 callers
Class
RawPrinter
moshi_mlx/moshi_mlx/client_utils.py:27
↓ 1 callers
Class
ResidualVectorQuantization
Residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
moshi/moshi/quantization/core_vq.py:419
↓ 1 callers
Class
RingKVCache
Efficient streaming KVCache to be compatible with Cuda Graph. Args: batch_size (int): Batch size. num_heads (int): Number of head
moshi/moshi/modules/transformer.py:193
↓ 1 callers
Class
RotaryEmbedding
Rotary positional embedding (RoPE) from [Su et al 2022](https://arxiv.org/abs/2104.09864). Args: max_period (float): Maximum period of th
moshi/moshi/modules/rope.py:71
↓ 1 callers
Class
RotatingKVCache
moshi_mlx/moshi_mlx/modules/kv_cache.py:62
↓ 1 callers
Class
SEANetEncoder
SEANet encoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (
moshi/moshi/modules/seanet.py:97
↓ 1 callers
Class
ServerState
moshi/moshi/server.py:42
↓ 1 callers
Class
SplitResidualVectorQuantizer
Residual Vector Quantizer with separate projections for the first quantizer and the rest. Args: n_q (int): Number of residual vector quan
moshi/moshi/quantization/vq.py:166
↓ 1 callers
Class
State
Base State for streaming, requires to be resetable and also support the context protocol. The state will be entered when
moshi/moshi/modules/streaming.py:25
↓ 1 callers
Class
Stats
scripts/test_mlx.py:24
↓ 1 callers
Class
StreamingAdd
moshi/moshi/modules/streaming.py:174
↓ 1 callers
Class
StreamingMultiheadAttention
Similar to `nn.MultiheadAttention` but with support for streaming, causal evaluation. Args: embed_dim (int): Dimension to project to.
moshi/moshi/modules/transformer.py:275
↓ 1 callers
Class
TransformerLayer
moshi_mlx/moshi_mlx/modules/transformer.py:132
↓ 1 callers
Class
VectorQuantization
Vector quantization implementation. Currently supports only euclidean distance. Args: dim (int): Dimension codebook_size (int
moshi/moshi/quantization/core_vq.py:322
↓ 1 callers
Class
_CodebookForwardResult
moshi/moshi/quantization/core_vq.py:21
↓ 1 callers
Class
_LMGenState
moshi/moshi/models/lm.py:368
↓ 1 callers
Class
_LayerState
moshi/moshi/modules/transformer.py:423
↓ 1 callers
Class
_MHAState
moshi/moshi/modules/transformer.py:264
↓ 1 callers
Class
_MimiState
moshi/moshi/models/compression.py:94
↓ 1 callers
Class
_StreamingAddState
moshi/moshi/modules/streaming.py:165
↓ 1 callers
Class
_StreamingConv1dState
moshi/moshi/modules/conv.py:160
↓ 1 callers
Class
_StreamingConvState
moshi/moshi/modules/streaming.py:195
↓ 1 callers
Class
_StreamingConvTr1dState
moshi/moshi/modules/conv.py:258
↓ 1 callers
Class
_StreamingConvTrState
moshi/moshi/modules/streaming.py:245
↓ 1 callers
Class
_TransformerState
moshi/moshi/modules/transformer.py:606
Class
client/src/audio-processor.ts:10
Class
client/src/pages/Queue/api/errors/response_error.ts:1
Class
client/src/pages/Queue/api/errors/api_error.ts:1
Class
APIError
client/src/pages/Queue/api/errors/api_error.ts:1
Class
AttributeDropout
Dropout with a given probability per attribute. This is different from the behavior of ClassifierFreeGuidanceDropout as this allows for attributes
moshi/moshi/conditioners/base.py:279
Class
BaseConditioner
Base model for all conditioner modules. Args: dim (int): internal dim of the model. output_dim (int): Output dim of the condition
moshi/moshi/conditioners/base.py:150
Class
BaseModelArgs
moshi_mlx/moshi_mlx/modules/kv_cache.py:163
Class
BaseQuantizer
Base class for quantizers.
moshi/moshi/quantization/base.py:31
Class
Checkpoint
moshi/moshi/utils/compile.py:57
Class
ClassifierFreeGuidanceDropout
Classifier Free Guidance dropout. All attributes are dropped with the same probability. Args: p (float): Probability to apply conditi
moshi/moshi/conditioners/base.py:326
Class
CompressionModel
Base API for all compression model that aim at being used as audio tokenizers with a language model.
moshi/moshi/models/compression.py:40
Class
DropoutModule
Base module for all dropout modules.
moshi/moshi/conditioners/base.py:268
Class
DummyQuantizer
Fake quantizer that actually does not perform any quantization.
moshi/moshi/quantization/base.py:100
Class
Lm
moshi_mlx/moshi_mlx/models/lm.py:222
Class
LmGen
moshi_mlx/moshi_mlx/models/generate.py:14
next →
1–100 of 120, ranked by callers