MCPcopy Create free account

hub / github.com/NVIDIA/personaplex / functions

Functions474 in github.com/NVIDIA/personaplex

↓ 73 callersMethodlog
(self, level: str, msg: str)
moshi/moshi/client_utils.py:188
↓ 15 callersMethodadd
(self, msg: str, color: str | None = None)
moshi/moshi/client_utils.py:80
↓ 15 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:398
↓ 14 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:368
↓ 13 callersFunctionlog
(level: str, msg: str)
moshi/moshi/offline.py:62
↓ 10 callersMethodcurrentSamples
()
client/src/audio-processor.ts:109
↓ 9 callersFunctionasSamples
(mili)
client/src/audio-processor.ts:6
↓ 8 callersFunctionasMs
(samples)
client/src/audio-processor.ts:2
↓ 8 callersMethodreset_streaming
Reset the streaming state.
moshi/moshi/modules/streaming.py:344
↓ 7 callersFunctioncolorize
(text, color)
moshi/moshi/client_utils.py:11
↓ 7 callersMethoddevice
(self)
moshi/moshi/models/lm.py:393
↓ 7 callersMethodstep
(self, input_tokens: torch.Tensor=None, moshi_tokens:torch.Tensor=None, text_token:torch.Tensor=None,
moshi/moshi/models/lm.py:815
↓ 6 callersMethod_apply_named_streaming
(self, fn: Any)
moshi/moshi/modules/streaming.py:298
↓ 6 callersFunctionabort
(what)
client/public/assets/decoderWorker.min.js:594
↓ 6 callersMethodflush
(self)
moshi/moshi/client_utils.py:114
↓ 6 callersMethodstreaming_forever
(self, batch_size: int)
moshi/moshi/modules/streaming.py:331
↓ 6 callersFunctionuseSocketContext
()
client/src/pages/Conversation/SocketContext.ts:16
↓ 5 callersMethod__init__
( self, dim: int, eps: float = 1e-5, dtype: tp.Optional[torch.dtype] = None,
moshi/moshi/modules/transformer.py:71
↓ 5 callersMethodnewline
(self)
moshi/moshi/client_utils.py:105
↓ 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:137
↓ 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:124
↓ 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:198
↓ 4 callersFunctiondecodeMessage
(data: Uint8Array)
client/src/protocol/encoder.ts:35
↓ 4 callersMethodforward
(self, x: torch.Tensor, y: torch.Tensor)
moshi/moshi/modules/streaming.py:448
↓ 4 callersFunctiongetMimeType
(type: "audio" | "video")
client/src/pages/Conversation/getMimeType.ts:55
↓ 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:36
↓ 4 callersFunctionzero_scalar
Returns a 0. value on the given device without introducing a synchronization point.
moshi/moshi/quantization/core_vq.py:68
↓ 3 callersMethod_encode_sine_frame
(self)
moshi/moshi/models/lm.py:992
↓ 3 callersMethod_get_initial_token
(self)
moshi/moshi/models/lm.py:409
↓ 3 callersMethod_remove_pending
(self)
moshi/moshi/client_utils.py:137
↓ 3 callersFunctioncallRuntimeCallbacks
(callbacks)
client/public/assets/decoderWorker.min.js:727
↓ 3 callersMethoddecode_latent
Decode from the discrete codes to continuous latent space.
moshi/moshi/models/compression.py:421
↓ 3 callersMethoderase
(self, count: int = 1)
moshi/moshi/client_utils.py:92
↓ 3 callersFunctionis_dataclass_instance
Check if obj is an instance of a dataclass (not the class itself). Parameters ---------- obj : Any Object to check.
moshi/moshi/modules/streaming.py:56
↓ 3 callersFunctionmake_log
(level: str, msg: str)
moshi/moshi/client_utils.py:17
↓ 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:98
↓ 3 callersFunctionr
(s)
client/public/assets/decoderWorker.min.js:13
↓ 3 callersMethodrender
(self)
moshi/moshi/client_utils.py:57
↓ 3 callersMethodstart
()
client/src/audio-processor.ts:122
↓ 3 callersMethodstreaming
Context manager to enter streaming mode. Reset streaming state on exit.
moshi/moshi/modules/streaming.py:335
↓ 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:149
↓ 2 callersMethod__init__
(self)
moshi/moshi/modules/streaming.py:286
↓ 2 callersMethod__init__
( self, dim: int, codebook_size: int, decay: float = 0.99, epsilon: fl
moshi/moshi/quantization/core_vq.py:97
↓ 2 callersMethod__init__
( self, lm_model: LMModel, device: str | torch.device, use_sampling: bool = Tr
moshi/moshi/models/lm.py:647
↓ 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:344
↓ 2 callersMethod_encode_zero_frame
(self)
moshi/moshi/models/lm.py:985
↓ 2 callersFunction_is_cuda_graph_enabled
()
moshi/moshi/utils/compile.py:189
↓ 2 callersMethod_quantize
(self, x: torch.Tensor)
moshi/moshi/quantization/core_vq.py:179
↓ 2 callersMethod_rearrange_input
(self, x)
moshi/moshi/quantization/core_vq.py:277
↓ 2 callersMethod_rearrange_output
(self, quantized)
moshi/moshi/quantization/core_vq.py:281
↓ 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:245
↓ 2 callersMethod_reshape_codes
(self, codes: torch.Tensor, shape: torch.Size)
moshi/moshi/quantization/core_vq.py:176
↓ 2 callersMethod_reshape_input
(self, x: torch.Tensor)
moshi/moshi/quantization/core_vq.py:171
↓ 2 callersFunction_restore_streaming_state_from_keys
Restores the streaming state from the given `state_dict` dict looking up fields by adding `prefix` to each key in `keys` to look up values.
moshi/moshi/modules/streaming.py:122
↓ 2 callersFunction_restore_streaming_state_pt
Restore the streaming state from the given pt_state dict Parameters ---------- value : torch.Tensor Specific streaming state
moshi/moshi/modules/streaming.py:72
↓ 2 callersFunction_run_command
Run command, return True on success.
moshi/moshi/utils/connection.py:123
↓ 2 callersFunction_set_streaming_state_inplace
Set the streaming state in-place from the given `state_dict` dict. Parameters ---------- streaming_state : State Specific streami
moshi/moshi/modules/streaming.py:94
↓ 2 callersMethod_start_streaming
(self, batch_size: int)
moshi/moshi/modules/streaming.py:316
↓ 2 callersMethod_step_audio_silence
(self)
moshi/moshi/models/lm.py:1086
↓ 2 callersMethod_step_audio_silence_async
(self, is_alive: Optional[Callable]=None)
moshi/moshi/models/lm.py:1091
↓ 2 callersMethod_step_audio_silence_core
(self)
moshi/moshi/models/lm.py:1074
↓ 2 callersMethod_step_text_prompt_core
(self)
moshi/moshi/models/lm.py:1096
↓ 2 callersMethod_step_voice_prompt_core
Shared core for stepping through the voice prompt. This generator yields at each *checkpoint* where the async wrapper may want to con
moshi/moshi/models/lm.py:1025
↓ 2 callersMethod_to_encoder_framerate
(self, x: torch.Tensor)
moshi/moshi/models/compression.py:277
↓ 2 callersMethod_to_framerate
(self, x: torch.Tensor)
moshi/moshi/models/compression.py:264
↓ 2 callersFunction_undelay_sequence
(delays: List[int], tensor: torch.Tensor, fill_value: Union[int, float] = float('NaN'))
moshi/moshi/models/lm.py:84
↓ 2 callersFunctionapplyTheme
(isDark: boolean)
client/src/pages/Conversation/hooks/useSystemTheme.ts:16
↓ 2 callersFunctionapply_parametrization_norm
(module: nn.Module, norm: str = "none")
moshi/moshi/modules/conv.py:61
↓ 2 callersMethodasdict
(self)
moshi/moshi/modules/transformer.py:301
↓ 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
↓ 2 callersFunctioncreateWorkerWithErrorTracking
()
client/src/decoder/decoderWorker.ts:40
↓ 2 callersMethoddecode
Decode the given codes to the quantized representation.
moshi/moshi/quantization/vq.py:167
↓ 2 callersFunctiondoRun
()
client/public/assets/decoderWorker.min.js:873
↓ 2 callersMethodembed_codes
(self, sequence: torch.Tensor)
moshi/moshi/models/lm.py:425
↓ 2 callersMethodencode
Encode a given input tensor with the specified frame rate at the given bandwidth. The RVQ encode method sets the appropriate number of quantiz
moshi/moshi/quantization/vq.py:152
↓ 2 callersMethodencode
Given a tensor `x` of shape `[*, D]`, returns a tensor of integer codes of shape `[*]`. The codes are defined as the indexes of the centroids
moshi/moshi/quantization/core_vq.py:187
↓ 2 callersFunctiongetBinary
(file)
client/public/assets/decoderWorker.min.js:620
↓ 2 callersFunctionget_extra_padding_for_conv1d
See `pad_for_conv1d`.
moshi/moshi/modules/conv.py:71
↓ 2 callersFunctionget_lan_ip
get_lan_ip() Get the LAN IP address of the current machine. Returns ------- str LAN IP address as a string.
moshi/moshi/utils/connection.py:32
↓ 2 callersMethodinitState
()
client/src/audio-processor.ts:80
↓ 2 callersFunctioninstantiateArrayBuffer
(receiver)
client/public/assets/decoderWorker.min.js:680
↓ 2 callersFunctionisDataURI
(filename)
client/public/assets/decoderWorker.min.js:609
↓ 2 callersFunctionisFileURI
(filename)
client/public/assets/decoderWorker.min.js:612
↓ 2 callersMethodload_voice_prompt
(self, voice_prompt: str)
moshi/moshi/models/lm.py:960
↓ 2 callersMethodload_voice_prompt_embeddings
(self, path: str)
moshi/moshi/models/lm.py:977
↓ 2 callersMethodlog
(self, level: str, msg: str)
moshi/moshi/utils/logging.py:67
↓ 2 callersFunctionmake_gating
( name: str, dim: int, dim_feedforward: int, **factory_kwargs )
moshi/moshi/modules/gating.py:94
↓ 2 callersFunctionmulti_linear
Utility to apply a multi linear layer to the given input. A multi linear layer applies a different set of weight for each time step. Args:
moshi/moshi/modules/transformer.py:176
↓ 2 callersFunctionno_compile
Disable torch.compile locally. Now Pytorch 2.4 provides a function to do that.
moshi/moshi/utils/compile.py:46
↓ 2 callersMethodprepare_step_input
(self, input_tokens: torch.Tensor=None, moshi_tokens:tor
moshi/moshi/models/lm.py:727
↓ 2 callersMethodprocess_transformer_output
(self, transformer_out, text_logits, provided_, target_, model_input_position, target_position)
moshi/moshi/models/lm.py:876
↓ 2 callersMethodresetStart
()
client/src/audio-processor.ts:118
↓ 2 callersFunctionrun
(args)
client/public/assets/decoderWorker.min.js:864
↓ 2 callersFunctionsample_token
Given logits of shape [*, Card], returns a LongTensor of shape [*].
moshi/moshi/utils/sampling.py:106
↓ 2 callersFunctionseed_all
(seed)
moshi/moshi/server.py:68
↓ 2 callersFunctionsendInitCommand
(worker: Worker, audioContextSampleRate: number)
client/src/decoder/decoderWorker.ts:55
next →1–100 of 474, ranked by callers