MCPcopy Index your code

hub / github.com/kyutai-labs/moshi / types & classes

Types & classes120 in github.com/kyutai-labs/moshi

↓ 10 callersClassStreamingConv1d
Conv1d with some builtin handling of asymmetric or causal padding and normalization.
moshi/moshi/modules/conv.py:168
↓ 9 callersClassTransformerConfig
moshi_mlx/moshi_mlx/modules/transformer.py:13
↓ 5 callersClassCUDAGraphed
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 callersClassDepFormerConfig
moshi_mlx/moshi_mlx/models/lm.py:17
↓ 5 callersClassLmConfig
moshi_mlx/moshi_mlx/models/lm.py:25
↓ 4 callersClassSEANetResnetBlock
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 callersClassStreamingConvTranspose1d
ConvTranspose1d with some builtin handling of asymmetric or causal padding and normalization.
moshi/moshi/modules/conv.py:265
↓ 4 callersClassWavCondition
Input for waveform based conditionings. Wav should always be 3-dim `[B, C, T]` even before collation.
moshi/moshi/conditioners/base.py:49
↓ 3 callersClassConditionAttributes
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 callersClassConditionType
Return type for a conditioner: both a condition tensor, and a mask indicating valid positions.
moshi/moshi/conditioners/base.py:41
↓ 3 callersClassLMGen
moshi/moshi/models/lm.py:391
↓ 3 callersClassQuantizedResult
moshi/moshi/quantization/base.py:23
↓ 3 callersClassStreamingTransformer
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 callersClassId
moshi_mlx/moshi_mlx/modules/transformer.py:41
↓ 2 callersClassKVCacheResult
moshi/moshi/modules/transformer.py:180
↓ 2 callersClassLayerScale
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 callersClassLayerScale
moshi_mlx/moshi_mlx/modules/transformer.py:49
↓ 2 callersClassMoshiHandler
moshi/moshi/client_gradio.py:21
↓ 2 callersClassRMSNorm
moshi/moshi/modules/transformer.py:58
↓ 2 callersClassRawStreamingConv1d
moshi/moshi/modules/streaming.py:202
↓ 2 callersClassRawStreamingConvTranspose1d
moshi/moshi/modules/streaming.py:252
↓ 2 callersClassResidualVectorQuantizer
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 callersClassSEANetDecoder
SEANet decoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (
moshi/moshi/modules/seanet.py:244
↓ 2 callersClassTokenizedText
moshi/moshi/conditioners/text.py:47
↓ 2 callersClassTransformer
moshi_mlx/moshi_mlx/modules/transformer.py:173
↓ 2 callersClass_VQForwardResult
moshi/moshi/quantization/core_vq.py:27
↓ 1 callersClassActivationGating
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 callersClassAttention
moshi_mlx/moshi_mlx/modules/transformer.py:59
↓ 1 callersClassCheckpointInfo
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 callersClassConditionFuser
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 callersClassConditionProvider
Prepare and provide conditions given all the supported conditioners. Args: conditioners (dict): Dictionary of conditioners. devic
moshi/moshi/conditioners/base.py:366
↓ 1 callersClassConditionProvider
moshi_mlx/moshi_mlx/modules/conditioner.py:46
↓ 1 callersClassConditionTensor
moshi_mlx/moshi_mlx/modules/conditioner.py:43
↓ 1 callersClassConnection
moshi/moshi/client.py:19
↓ 1 callersClassConvDownsample1d
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 callersClassConvTrUpsample1d
Upsample by some integer amount `stride` using transposed convolutions.
moshi/moshi/modules/resample.py:68
↓ 1 callersClassDepFormer
moshi_mlx/moshi_mlx/models/lm.py:170
↓ 1 callersClassDepFormerSlice
moshi_mlx/moshi_mlx/models/lm.py:147
↓ 1 callersClassEuclideanCodebook
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 callersClassInferenceState
moshi/moshi/run_inference.py:51
↓ 1 callersClassKVCache
moshi_mlx/moshi_mlx/modules/kv_cache.py:12
↓ 1 callersClassLMModel
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 callersClassLUTConditioner
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 callersClassLayerNormF32
moshi/moshi/modules/transformer.py:36
↓ 1 callersClassLine
moshi/moshi/client_utils.py:72
↓ 1 callersClassLine
moshi_mlx/moshi_mlx/client_utils.py:65
↓ 1 callersClassLineEntry
moshi/moshi/client_utils.py:58
↓ 1 callersClassLineEntry
moshi_mlx/moshi_mlx/client_utils.py:51
↓ 1 callersClassLowRankEmbeddings
moshi_mlx/moshi_mlx/models/lm.py:131
↓ 1 callersClassLutConditioner
moshi_mlx/moshi_mlx/modules/conditioner.py:23
↓ 1 callersClassLutConditionerConfig
moshi_mlx/moshi_mlx/modules/conditioner.py:16
↓ 1 callersClassMimiModel
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 callersClassMlpGating
moshi_mlx/moshi_mlx/modules/transformer.py:103
↓ 1 callersClassMlpNoGating
moshi_mlx/moshi_mlx/modules/transformer.py:121
↓ 1 callersClassNoopTokenizer
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 callersClassNormConv1d
Wrapper around Conv1d and normalization applied to this conv to provide a uniform interface across normalization approaches.
moshi/moshi/modules/conv.py:111
↓ 1 callersClassNormConvTranspose1d
Wrapper around ConvTranspose1d and normalization applied to this conv to provide a uniform interface across normalization approaches.
moshi/moshi/modules/conv.py:135
↓ 1 callersClassPrinter
moshi/moshi/client_utils.py:127
↓ 1 callersClassPrinter
moshi_mlx/moshi_mlx/client_utils.py:120
↓ 1 callersClassRawPrinter
moshi/moshi/client_utils.py:34
↓ 1 callersClassRawPrinter
moshi_mlx/moshi_mlx/client_utils.py:27
↓ 1 callersClassResidualVectorQuantization
Residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
moshi/moshi/quantization/core_vq.py:419
↓ 1 callersClassRingKVCache
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 callersClassRotaryEmbedding
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 callersClassRotatingKVCache
moshi_mlx/moshi_mlx/modules/kv_cache.py:62
↓ 1 callersClassSEANetEncoder
SEANet encoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (
moshi/moshi/modules/seanet.py:97
↓ 1 callersClassServerState
moshi/moshi/server.py:42
↓ 1 callersClassSplitResidualVectorQuantizer
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 callersClassState
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 callersClassStats
scripts/test_mlx.py:24
↓ 1 callersClassStreamingAdd
moshi/moshi/modules/streaming.py:174
↓ 1 callersClassStreamingMultiheadAttention
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 callersClassTransformerLayer
moshi_mlx/moshi_mlx/modules/transformer.py:132
↓ 1 callersClassVectorQuantization
Vector quantization implementation. Currently supports only euclidean distance. Args: dim (int): Dimension codebook_size (int
moshi/moshi/quantization/core_vq.py:322
↓ 1 callersClass_CodebookForwardResult
moshi/moshi/quantization/core_vq.py:21
↓ 1 callersClass_LMGenState
moshi/moshi/models/lm.py:368
↓ 1 callersClass_LayerState
moshi/moshi/modules/transformer.py:423
↓ 1 callersClass_MHAState
moshi/moshi/modules/transformer.py:264
↓ 1 callersClass_MimiState
moshi/moshi/models/compression.py:94
↓ 1 callersClass_StreamingAddState
moshi/moshi/modules/streaming.py:165
↓ 1 callersClass_StreamingConv1dState
moshi/moshi/modules/conv.py:160
↓ 1 callersClass_StreamingConvState
moshi/moshi/modules/streaming.py:195
↓ 1 callersClass_StreamingConvTr1dState
moshi/moshi/modules/conv.py:258
↓ 1 callersClass_StreamingConvTrState
moshi/moshi/modules/streaming.py:245
↓ 1 callersClass_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
ClassAPIError
client/src/pages/Queue/api/errors/api_error.ts:1
ClassAttributeDropout
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
ClassBaseConditioner
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
ClassBaseModelArgs
moshi_mlx/moshi_mlx/modules/kv_cache.py:163
ClassBaseQuantizer
Base class for quantizers.
moshi/moshi/quantization/base.py:31
ClassCheckpoint
moshi/moshi/utils/compile.py:57
ClassClassifierFreeGuidanceDropout
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
ClassCompressionModel
Base API for all compression model that aim at being used as audio tokenizers with a language model.
moshi/moshi/models/compression.py:40
ClassDropoutModule
Base module for all dropout modules.
moshi/moshi/conditioners/base.py:268
ClassDummyQuantizer
Fake quantizer that actually does not perform any quantization.
moshi/moshi/quantization/base.py:100
ClassLm
moshi_mlx/moshi_mlx/models/lm.py:222
ClassLmGen
moshi_mlx/moshi_mlx/models/generate.py:14
next →1–100 of 120, ranked by callers