MCPcopy Create free account

hub / github.com/NVIDIA/personaplex / functions

Functions474 in github.com/NVIDIA/personaplex

↓ 2 callersMethodset_num_codebooks
Set the active number of codebooks used by the quantizer.
moshi/moshi/models/compression.py:255
↓ 2 callersFunctionsetup_logger
(name: str, log_file=None, level=logging.INFO)
moshi/moshi/utils/logging.py:34
↓ 2 callersMethodtotalMaxBufferSamples
()
client/src/audio-processor.ts:101
↓ 2 callersFunctionunpad1d
Remove padding from x, handling properly zero padding. Only for 1d!
moshi/moshi/modules/conv.py:123
↓ 2 callersFunctionuseMediaContext
()
client/src/pages/Conversation/MediaContext.ts:15
↓ 2 callersFunctionuseModelParams
(params?:useModelParamsArgs)
client/src/pages/Conversation/hooks/useModelParams.ts:30
↓ 1 callersFunctionUTF8ToString
(ptr, maxBytesToRead)
client/public/assets/decoderWorker.min.js:508
↓ 1 callersMethod__init__
( self, stride: int, dimension: tp.Optional[int] = None, causal: bool = False,
moshi/moshi/modules/resample.py:42
↓ 1 callersMethod__init__
( self, dimension: int = 128, input_dimension: tp.Optional[int] = None, output
moshi/moshi/quantization/vq.py:65
↓ 1 callersMethod__init__
(self)
moshi/moshi/quantization/base.py:34
↓ 1 callersMethod__init__
( self, encoder: nn.Module, decoder: nn.Module, quantizer: BaseQuantizer,
moshi/moshi/models/compression.py:129
↓ 1 callersMethod_add
(self, entry: LineEntry)
moshi/moshi/client_utils.py:84
↓ 1 callersMethod_complete_kv
(self, k, v)
moshi/moshi/modules/transformer.py:393
↓ 1 callersFunction_delay_sequence
(delays: List[int], tensor: torch.Tensor, padding: torch.Tensor)
moshi/moshi/models/lm.py:70
↓ 1 callersMethod_encode_voice_prompt_frames
(self, mimi)
moshi/moshi/models/lm.py:999
↓ 1 callersMethod_ff_block
(self, x: torch.Tensor)
moshi/moshi/modules/transformer.py:575
↓ 1 callersFunction_flatten_streaming_state
_flatten_streaming_state(state_dict, state_dict_metadata, state, prefix) Helper function for recursively flattening the streaming state into
moshi/moshi/modules/streaming.py:195
↓ 1 callersFunction_get_activation
(name: str)
moshi/moshi/modules/gating.py:75
↓ 1 callersFunction_get_moshi_lm_with_offload
Load Moshi LM with CPU offloading using accelerate. This function distributes model layers across GPU and CPU based on available GPU memory.
moshi/moshi/models/loaders.py:263
↓ 1 callersFunction_get_static_path
(static: Optional[str])
moshi/moshi/server.py:341
↓ 1 callersFunction_get_voice_prompt_dir
If voice_prompt_dir is None: - download voices.tgz from HF - extract it once - return extracted directory If voice_prompt_d
moshi/moshi/offline.py:125
↓ 1 callersFunction_get_voice_prompt_dir
If voice_prompt_dir is None: - download voices.tgz from HF - extract it once - return extracted directory If voice_prompt_d
moshi/moshi/server.py:312
↓ 1 callersMethod_init_streaming_state
(self, batch_size: int)
moshi/moshi/modules/streaming.py:445
↓ 1 callersFunction_is_distributed
()
moshi/moshi/quantization/core_vq.py:63
↓ 1 callersFunction_is_safetensors
(path: Path | str)
moshi/moshi/models/loaders.py:125
↓ 1 callersFunction_iterate_audio
(sample_pcm, sample_interval_size, max_len=sys.maxsize, pad=True)
moshi/moshi/models/lm.py:131
↓ 1 callersFunction_make_gating
( name: str, dim: int, dim_feedforward: int, **factory_kwargs )
moshi/moshi/modules/gating.py:86
↓ 1 callersFunction_rms_norm
( x: torch.Tensor, alpha: torch.Tensor, dtype: tp.Optional[torch.dtype], eps: float, )
moshi/moshi/modules/transformer.py:55
↓ 1 callersMethod_sa_block
(self, x: torch.Tensor)
moshi/moshi/modules/transformer.py:599
↓ 1 callersFunction_sample_vectors
(samples: torch.Tensor, num: int)
moshi/moshi/quantization/core_vq.py:43
↓ 1 callersFunction_set_in_cuda_graph
()
moshi/moshi/utils/compile.py:179
↓ 1 callersMethod_step_text_prompt
(self)
moshi/moshi/models/lm.py:1107
↓ 1 callersMethod_step_text_prompt_async
(self, is_alive: Optional[Callable]=None)
moshi/moshi/models/lm.py:1112
↓ 1 callersMethod_step_voice_prompt
(self, mimi)
moshi/moshi/models/lm.py:1064
↓ 1 callersMethod_step_voice_prompt_async
(self, mimi, is_alive: Optional[Callable]=None)
moshi/moshi/models/lm.py:1069
↓ 1 callersMethod_step_voice_prompt_frame
(self, voice_prompt_frame_tokens: torch.Tensor,
moshi/moshi/models/lm.py:1010
↓ 1 callersMethod_stop_streaming
(self)
moshi/moshi/modules/streaming.py:322
↓ 1 callersFunctionabortOnCannotGrowMemory
(requestedSize)
client/public/assets/decoderWorker.min.js:752
↓ 1 callersFunctionaddOnInit
(cb)
client/public/assets/decoderWorker.min.js:560
↓ 1 callersFunctionaddOnPostRun
(cb)
client/public/assets/decoderWorker.min.js:563
↓ 1 callersFunctionaddOnPreRun
(cb)
client/public/assets/decoderWorker.min.js:557
↓ 1 callersFunctionaddRunDependency
(id)
client/public/assets/decoderWorker.min.js:569
↓ 1 callersFunctionapply_rope
Args: q (torch.Tensor): queries, shape `[B, T, H, D]`. k (torch.Tensor): keys, shape `[B, T, H, D]`. offset (int): curren
moshi/moshi/modules/rope.py:33
↓ 1 callersFunctionassert
(condition, text)
client/public/assets/decoderWorker.min.js:466
↓ 1 callersFunctionbuildURL
({ workerAddr, params, workerAuthId, email, textSeed, audioSeed, }: { workerAddr: string; para
client/src/pages/Conversation/Conversation.tsx:32
↓ 1 callersMethodcomplete
(self, k: torch.Tensor, v: torch.Tensor)
moshi/moshi/modules/transformer.py:263
↓ 1 callersFunctioncreateDecoderWorker
()
client/src/decoder/decoderWorker.ts:141
↓ 1 callersFunctioncreateWarmupBosPage
()
client/src/decoder/decoderWorker.ts:6
↓ 1 callersFunctioncreateWasm
()
client/public/assets/decoderWorker.min.js:665
↓ 1 callersFunctioncreate_cert_if_needed
Create cert.pem and key.pem using mkcert if they don't already exist. Returns (cert_file, key_file) or (None, None) if mkcert unavailable.
moshi/moshi/utils/connection.py:144
↓ 1 callersFunctioncreate_loss_report
( state_cache: torch.Tensor, lm_model: LMModel, text_logits: torch.Tensor, audio_logits: torch
moshi/moshi/models/lm.py:571
↓ 1 callersFunctioncreate_sin_embedding
Create sinusoidal positional embedding, with shape `[B, T, C]`. Args: positions (torch.Tensor): LongTensor of positions. dim (int
moshi/moshi/modules/transformer.py:148
↓ 1 callersFunctioncreate_sinewave
Return a 440 Hz 'silent' sinewave of the given duration.
moshi/moshi/models/lm.py:102
↓ 1 callersFunctioncreate_ssl_context
Main entry: create SSL context if certificates can be created. Returns (ssl_context, protocol_str) where protocol_str is "http" or "https".
moshi/moshi/utils/connection.py:202
↓ 1 callersFunctiondecode_tokens_to_pcm
Decode a single step of model tokens to PCM using Mimi. tokens is shaped [B, dep_q+1, 1]; channels 1..dep_q are the agent audio codebooks. Re
moshi/moshi/offline.py:113
↓ 1 callersMethodema_frozen_
Set whether ema should be applied to the codebooks.
moshi/moshi/quantization/base.py:95
↓ 1 callersMethodembedding
(self)
moshi/moshi/quantization/core_vq.py:143
↓ 1 callersFunctionencodeMessage
(message: WSMessage)
client/src/protocol/encoder.ts:9
↓ 1 callersFunctionencode_from_sphn
Takes an iterator of samples, batches them, encodes them; and yields the encoded samples one sample at a time in the same order.
moshi/moshi/models/lm.py:153
↓ 1 callersFunctionensure_mkcert
Ensure mkcert exists; if not, download the correct binary. Returns ------- str | None Path to mkcert binary, or None if
moshi/moshi/utils/connection.py:51
↓ 1 callersFunctionensure_mkcert_ca
Install mkcert CA if not installed yet. Parameters ---------- mkcert_bin : str Path to mkcert binary.
moshi/moshi/utils/connection.py:132
↓ 1 callersMethodforward
(self, x: torch.Tensor)
moshi/moshi/modules/transformer.py:85
↓ 1 callersMethodforward
(self, x: torch.Tensor)
moshi/moshi/models/compression.py:297
↓ 1 callersMethodforward_codes
( self, sequence: torch.Tensor, )
moshi/moshi/models/lm.py:441
↓ 1 callersMethodforward_depformer
( self, depformer_cb_index: int, sequence: torch.Tensor, transformer_out: torc
moshi/moshi/models/lm.py:457
↓ 1 callersMethodforward_depformer_training
( self, sequence: torch.Tensor, transformer_out: torch.Tensor, )
moshi/moshi/models/lm.py:495
↓ 1 callersMethodforward_embeddings
(self, input: torch.Tensor)
moshi/moshi/models/lm.py:447
↓ 1 callersMethodfrom_kv
(keys: torch.Tensor, values: torch.Tensor)
moshi/moshi/modules/transformer.py:225
↓ 1 callersFunctiongating_forward_kernel
( weight_in: torch.Tensor, weight_out: torch.Tensor, activation, x: torch.Tensor )
moshi/moshi/modules/gating.py:34
↓ 1 callersFunctiongetAudioMimeType
()
client/src/pages/Conversation/getMimeType.ts:38
↓ 1 callersFunctiongetBinaryPromise
()
client/public/assets/decoderWorker.min.js:634
↓ 1 callersFunctiongetExtension
(type: "audio" | "video")
client/src/pages/Conversation/getMimeType.ts:62
↓ 1 callersFunctiongetPrewarmedWorker
()
client/src/decoder/decoderWorker.ts:113
↓ 1 callersFunctiongetVideoMimeType
()
client/src/pages/Conversation/getMimeType.ts:24
↓ 1 callersMethodget_streaming_state
Return the complete streaming state, including that of sub-modules.
moshi/moshi/modules/streaming.py:357
↓ 1 callersFunctionin_cuda_graph
Indicate whether we are in a function that is CUDA Graphed (or will be soon).
moshi/moshi/utils/compile.py:173
↓ 1 callersFunctioninitDecoder
(worker: Worker, audioContextSampleRate: number)
client/src/decoder/decoderWorker.ts:146
↓ 1 callersFunctioninitRuntime
()
client/public/assets/decoderWorker.min.js:543
↓ 1 callersFunctioninstantiateAsync
()
client/public/assets/decoderWorker.min.js:693
↓ 1 callersFunctionkeepRuntimeAlive
()
client/public/assets/decoderWorker.min.js:530
↓ 1 callersFunctionload_audio
Yields audio samples in intervals of sample_interval_size
moshi/moshi/models/lm.py:121
↓ 1 callersFunctionlocateFile
(path)
client/public/assets/decoderWorker.min.js:327
↓ 1 callersFunctionlogExceptionOnExit
(e)
client/public/assets/decoderWorker.min.js:334
↓ 1 callersFunctionmain
Parse CLI args and run offline inference.
moshi/moshi/offline.py:321
↓ 1 callersFunctionmain
()
moshi/moshi/server.py:357
↓ 1 callersFunctionnormalize_audio
Normalize **mono** audio to a target LUFS level.
moshi/moshi/models/lm.py:109
↓ 1 callersFunctionparseEnv
()
client/src/env.ts:6
↓ 1 callersFunctionparseInfo
(infos: any)
client/src/pages/Conversation/hooks/useServerInfo.ts:30
↓ 1 callersFunctionpostRun
()
client/public/assets/decoderWorker.min.js:547
↓ 1 callersFunctionpreRun
()
client/public/assets/decoderWorker.min.js:533
↓ 1 callersFunctionprewarmDecoderWorker
(audioContextSampleRate: number)
client/src/decoder/decoderWorker.ts:81
↓ 1 callersFunctionprint_log
(level: str, msg: str, prefix: Optional[str] = None, info_color: Optional[str] = None)
moshi/moshi/utils/logging.py:54
↓ 1 callersMethodprint_token
(self, token: str, color: str | None = None)
moshi/moshi/client_utils.py:144
↓ 1 callersMethodquantizer
(self)
moshi/moshi/models/compression.py:449
↓ 1 callersFunctionrandom_id
(n=4)
moshi/moshi/utils/logging.py:30
↓ 1 callersMethodrandomize
(cls)
moshi/moshi/utils/logging.py:71
↓ 1 callersFunctionreceiveInstance
(instance, module)
client/public/assets/decoderWorker.min.js:667
↓ 1 callersFunctionremoveRunDependency
(id)
client/public/assets/decoderWorker.min.js:575
↓ 1 callersMethodreset
(self)
moshi/moshi/modules/streaming.py:48
↓ 1 callersFunctionrun_inference
Run offline inference using an input WAV as the user-side stream. - Loads/initializes models and tokenizer - Warms up execution - Loads s
moshi/moshi/offline.py:153
← previousnext →101–200 of 474, ranked by callers