Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NVIDIA/personaplex
/ types & classes
Types & classes
72 in github.com/NVIDIA/personaplex
⨍
Functions
474
◇
Types & classes
72
↓ 8 callers
Class
StreamingConv1d
Conv1d with some builtin handling of asymmetric or causal padding and normalization.
moshi/moshi/modules/conv.py:189
↓ 6 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:210
↓ 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:627
↓ 2 callers
Class
KVCacheResult
moshi/moshi/modules/transformer.py:219
↓ 2 callers
Class
LMGen
moshi/moshi/models/lm.py:646
↓ 2 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:218
↓ 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:89
↓ 2 callers
Class
RMSNorm
moshi/moshi/modules/transformer.py:70
↓ 2 callers
Class
RawStreamingConv1d
moshi/moshi/modules/streaming.py:472
↓ 2 callers
Class
RawStreamingConvTranspose1d
moshi/moshi/modules/streaming.py:522
↓ 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:41
↓ 2 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:42
↓ 2 callers
Class
StreamingConvTranspose1d
ConvTranspose1d with some builtin handling of asymmetric or causal padding and normalization.
moshi/moshi/modules/conv.py:286
↓ 2 callers
Class
_VQForwardResult
moshi/moshi/quantization/core_vq.py:26
↓ 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:45
↓ 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:35
↓ 1 callers
Class
ConvTrUpsample1d
Upsample by some integer amount `stride` using transposed convolutions.
moshi/moshi/modules/resample.py:89
↓ 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:73
↓ 1 callers
Class
LMOutput
moshi/moshi/models/lm.py:61
↓ 1 callers
Class
LayerNormF32
moshi/moshi/modules/transformer.py:48
↓ 1 callers
Class
Line
moshi/moshi/client_utils.py:67
↓ 1 callers
Class
LineEntry
moshi/moshi/client_utils.py:53
↓ 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:102
↓ 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:132
↓ 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:156
↓ 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:311
↓ 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:232
↓ 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:92
↓ 1 callers
Class
SEANetDecoder
SEANet decoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (
moshi/moshi/modules/seanet.py:265
↓ 1 callers
Class
SEANetEncoder
SEANet encoder. Args: channels (int): Audio channels. dimension (int): Intermediate representation dimension. n_filters (
moshi/moshi/modules/seanet.py:118
↓ 1 callers
Class
ServerState
moshi/moshi/server.py:90
↓ 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:192
↓ 1 callers
Class
StreamingAdd
moshi/moshi/modules/streaming.py:444
↓ 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:317
↓ 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:222
↓ 1 callers
Class
_CodebookForwardResult
moshi/moshi/quantization/core_vq.py:20
↓ 1 callers
Class
_LMGenState
moshi/moshi/models/lm.py:556
↓ 1 callers
Class
_LayerState
moshi/moshi/modules/transformer.py:451
↓ 1 callers
Class
_MHAState
moshi/moshi/modules/transformer.py:306
↓ 1 callers
Class
_MimiState
moshi/moshi/models/compression.py:94
↓ 1 callers
Class
_NullState
moshi/moshi/modules/streaming.py:422
↓ 1 callers
Class
_StreamingAddState
moshi/moshi/modules/streaming.py:435
↓ 1 callers
Class
_StreamingConv1dState
moshi/moshi/modules/conv.py:181
↓ 1 callers
Class
_StreamingConvState
moshi/moshi/modules/streaming.py:465
↓ 1 callers
Class
_StreamingConvTr1dState
moshi/moshi/modules/conv.py:279
↓ 1 callers
Class
_StreamingConvTrState
moshi/moshi/modules/streaming.py:515
↓ 1 callers
Class
_TransformerState
moshi/moshi/modules/transformer.py:620
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
BaseQuantizer
Base class for quantizers.
moshi/moshi/quantization/base.py:31
Class
Checkpoint
moshi/moshi/utils/compile.py:78
Class
ColorizedLog
moshi/moshi/utils/logging.py:62
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
DummyQuantizer
Fake quantizer that actually does not perform any quantization.
moshi/moshi/quantization/base.py:100
Interface
HomepageProps
client/src/pages/Queue/Queue.tsx:37
Class
MoshiProcessor
client/src/audio-processor.ts:10
Class
Printer
moshi/moshi/client_utils.py:122
Class
ProjectedTransformer
Transformer with optional projections of the input and output to different dimensions when needed. Supports multiple outputs. Args: i
moshi/moshi/modules/transformer.py:723
Class
RawPrinter
moshi/moshi/client_utils.py:29
Class
Resetable
moshi/moshi/modules/streaming.py:47
Class
ResponseError
client/src/pages/Queue/api/errors/response_error.ts:1
Class
ScaledEmbedding
Boost learning rate for embeddings (with `scale`). Args: norm (bool): if True, uses a layer norm after the embedding. zero_idx (i
moshi/moshi/models/lm.py:191
Class
StreamingContainer
moshi/moshi/modules/streaming.py:429
Class
StreamingModule
Common API for streaming components. Each streaming component has a streaming state, which is just a dict[str, Tensor]. By convention, the fi
moshi/moshi/modules/streaming.py:262
Class
StreamingTransformerLayer
TransformerLayer with Streaming / Causal support. Args: d_model (int): Dimension of the data. num_heads (int): Number of heads.
moshi/moshi/modules/transformer.py:458
Class
TorchAutocast
TorchAutocast utility class. Allows you to enable and disable autocast. This is specially useful when dealing with different architectures and
moshi/moshi/utils/autocast.py:14
Class
TransposedLayerNorm
LayerNorm for [B, C, T] inputs.
moshi/moshi/modules/conv.py:48
Enum
UserMediaStatuses
client/src/pages/Conversation/hooks/useUserAudio.ts:None
Class
WrapperCompressionModel
Base API for CompressionModel wrappers that do not depend on external frameworks.
moshi/moshi/models/compression.py:426