MCPcopy Create free account

hub / github.com/Zyphra/Zonos / functions

Functions113 in github.com/Zyphra/Zonos

↓ 11 callersMethod__init__
(self, in_planes, acoustic_dim)
zonos/speaker_cloning.py:40
↓ 5 callersMethod__init__
( self, output_dim: int, name: str, cond_dim: int | None = None, proje
zonos/conditioning.py:12
↓ 5 callersMethod_compute_logits
Pass `hidden_states` into `backbone` and `multi_head`, applying classifier-free guidance if `cfg_scale != 1.0`.
zonos/model.py:103
↓ 5 callersMethoddevice
(self)
zonos/model.py:54
↓ 5 callersMethodembed_codes
(self, codes: torch.Tensor)
zonos/model.py:97
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride, block_id=1)
zonos/speaker_cloning.py:178
↓ 3 callersMethod__init__
(self, config: BackboneConfig, layer_idx: int)
zonos/backbone/_torch.py:106
↓ 3 callersMethodfrom_pretrained
( cls, repo_id: str, revision: str | None = None, device: str = DEFAULT_DEVICE, **kwargs )
zonos/model.py:58
↓ 2 callersMethodallocate_inference_cache
(self, batch_size: int, max_seqlen: int, dtype: torch.dtype = torch.bfloat16)
zonos/backbone/_torch.py:96
↓ 2 callersFunctionapply_rotary_emb
(x: torch.Tensor, freqs_cis: torch.Tensor)
zonos/backbone/_torch.py:18
↓ 2 callersMethoddecode
(self, codes: torch.Tensor)
zonos/autoencoder.py:25
↓ 2 callersMethodgenerate
( self, prefix_conditioning: torch.Tensor, # [bsz, cond_seq_len, d_model] audio_prefi
zonos/model.py:219
↓ 2 callersFunctionload_model_if_needed
(model_choice: str)
gradio_interface.py:17
↓ 2 callersFunctionmake_cond_dict
A helper to build the 'cond_dict' that the model expects. By default, it will generate a random speaker embedding
zonos/conditioning.py:330
↓ 2 callersMethodmake_speaker_embedding
Generate a speaker embedding from an audio clip.
zonos/model.py:90
↓ 2 callersMethodprepare_conditioning
(self, cond_dict: dict, uncond_dict: dict | None = None)
zonos/model.py:204
↓ 2 callersFunctionsample_from_logits
Sample next token from logits using either top_k/p/min_p OR using NovelAI's Unified Sampler. Args: logits (torch.Tensor): Input logit
zonos/sampling.py:117
↓ 1 callersFunctionResNet293
(in_planes: int, **kwargs)
zonos/speaker_cloning.py:195
↓ 1 callersMethodSimAM
(self, X, lambda_p=1e-4)
zonos/speaker_cloning.py:91
↓ 1 callersMethod_get_resampler
(self, orig_sample_rate: int)
zonos/speaker_cloning.py:373
↓ 1 callersMethod_prefill
"Prefill" mode: we already have `prefix_hidden_states`, and we want to append new embeddings, then compute the logits.
zonos/model.py:181
↓ 1 callersFunction_update_kv_cache
k/v: (batch_size, seqlen, nheads, head_dim) or (batch_size, 1, nheads, head_dim)
zonos/backbone/_torch.py:33
↓ 1 callersMethodapply_cond
(self, *inputs: Any)
zonos/conditioning.py:41
↓ 1 callersFunctionapply_delay_pattern
(codes: torch.Tensor, mask_token: int)
zonos/codebook_pattern.py:5
↓ 1 callersMethodapply_heads
(self, hidden_states: torch.Tensor)
zonos/model.py:100
↓ 1 callersFunctionapply_min_p
Sample next token using min-p sampling. Args: scores (torch.FloatTensor): Input logits with token candidates on the last dimension.
zonos/sampling.py:82
↓ 1 callersFunctionapply_top_k
Sample next token from top K values along the last dimension of the input probs tensor. Args: probs (torch.Tensor): Input probabilities w
zonos/sampling.py:45
↓ 1 callersFunctionapply_top_p
Sample next token from top P probabilities along the last dimension of the input probs tensor. Args: probs (torch.Tensor): Input probabil
zonos/sampling.py:64
↓ 1 callersFunctionapply_unified
Sample next token using unified sampling approach that combines linear scaling, confidence, and quadratic terms. Args: probs (torch.T
zonos/sampling.py:29
↓ 1 callersFunctionbuild_conditioners
(conditioners: list[dict], output_dim: int)
zonos/conditioning.py:293
↓ 1 callersFunctionbuild_interface
()
gradio_interface.py:206
↓ 1 callersMethodcan_use_cudagraphs
(self)
zonos/model.py:214
↓ 1 callersFunctionclean
(texts: list[str], languages: list[str])
zonos/conditioning.py:178
↓ 1 callersMethodencode
(self, wav: torch.Tensor)
zonos/autoencoder.py:22
↓ 1 callersFunctionfind_multiple
(n: int, k: int)
zonos/utils.py:6
↓ 1 callersMethodfrom_dict
(cls, d: dict)
zonos/config.py:57
↓ 1 callersMethodfrom_local
( cls, config_path: str, model_path: str, device: str = DEFAULT_DEVICE, backbone: str | None = None
zonos/model.py:66
↓ 1 callersFunctionget_backend
(language: str)
zonos/conditioning.py:190
↓ 1 callersFunctionget_device
()
zonos/utils.py:30
↓ 1 callersFunctionget_symbol_ids
(text: str)
zonos/conditioning.py:159
↓ 1 callersFunctionmodify_logit_for_repetition_penalty
See https://arxiv.org/abs/1909.05858 Apply repetition penalty over a sliding window of the last `repetition_penalty_window` tokens. logits: (b
zonos/sampling.py:99
↓ 1 callersFunctionmultinomial
torch.multinomial with arbitrary number of dimensions, and number of candidates on the last dimension. Args: input (torch.Tensor): The in
zonos/sampling.py:4
↓ 1 callersFunctionnormalize_jp_text
(text: str, tokenizer=Dictionary(dict="full").create())
zonos/conditioning.py:171
↓ 1 callersFunctionnormalize_numbers
(text: str)
zonos/conditioning.py:129
↓ 1 callersFunctionpad_weight_
Pad the weight of an embedding or linear layer to a multiple of `multiple`.
zonos/utils.py:12
↓ 1 callersFunctionphonemize
(texts: list[str], languages: list[str])
zonos/conditioning.py:207
↓ 1 callersFunctionprecompute_freqs_cis
(seq_len: int, n_elem: int, base: float = 10000)
zonos/backbone/_torch.py:9
↓ 1 callersMethodprepare_input
(self, wav: torch.Tensor, sample_rate: int)
zonos/speaker_cloning.py:376
↓ 1 callersMethodpreprocess
(self, wav: torch.Tensor, sr: int)
zonos/autoencoder.py:17
↓ 1 callersFunctionrevert_delay_pattern
(codes: torch.Tensor)
zonos/codebook_pattern.py:10
↓ 1 callersMethodsetup_cache
(self, batch_size: int, max_seqlen: int, dtype: torch.dtype = torch.bfloat16)
zonos/model.py:198
↓ 1 callersFunctiontokenize_phonemes
(phonemes: list[str])
zonos/conditioning.py:163
Method__init__
( self, sample_rate: int = 16_000, n_fft: int = 512, win_length: float = 0.025
zonos/speaker_cloning.py:14
Method__init__
(self, ConvLayer, NormLayer, in_planes, planes, stride=1, block_id=1)
zonos/speaker_cloning.py:67
Method__init__
(self, ConvLayer, NormLayer, in_planes, planes, stride=1, block_id=1)
zonos/speaker_cloning.py:102
Method__init__
(self, ConvLayer, NormLayer, in_planes, planes, stride=1, block_id=1)
zonos/speaker_cloning.py:128
Method__init__
(self, in_planes, block, num_blocks, in_ch=1, feat_dim="2d", **kwargs)
zonos/speaker_cloning.py:154
Method__init__
( self, in_planes: int = 64, embd_dim: int = 256, acoustic_dim: int = 80,
zonos/speaker_cloning.py:200
Method__init__
(self, channels, bottleneck=128)
zonos/speaker_cloning.py:228
Method__init__
(self, inplanes, planes, kernel_size=None, dilation=None, scale=8)
zonos/speaker_cloning.py:245
Method__init__
(self, C, featCal)
zonos/speaker_cloning.py:296
Method__init__
(self, ckpt_path: str = "ResNet293_SimAM_ASP_base.pt", device: str = DEFAULT_DEVICE)
zonos/speaker_cloning.py:357
Method__init__
(self, device: str = DEFAULT_DEVICE)
zonos/speaker_cloning.py:389
Method__init__
(self, output_dim: int, **kwargs)
zonos/conditioning.py:220
Method__init__
( self, output_dim: int, input_dim: int = 1, std: float = 1.0, min_val
zonos/conditioning.py:243
Method__init__
(self, output_dim: int, min_val: int = 0, max_val: int = 512, **kwargs)
zonos/conditioning.py:265
Method__init__
(self, output_dim: int, **kwargs)
zonos/conditioning.py:277
Method__init__
(self, config: PrefixConditionerConfig, output_dim: int)
zonos/conditioning.py:298
Method__init__
(self)
zonos/autoencoder.py:9
Method__init__
(self, config: ZonosConfig, backbone_cls=DEFAULT_BACKBONE_CLS)
zonos/model.py:23
Method__init__
(self, config: BackboneConfig)
zonos/backbone/_mamba_ssm.py:12
Method__init__
(self, config: BackboneConfig)
zonos/backbone/_torch.py:56
Method__init__
(self, config: BackboneConfig, layer_idx: int)
zonos/backbone/_torch.py:84
Method__init__
(self, config: BackboneConfig)
zonos/backbone/_torch.py:145
Method_decode_one_token
Single-step decode. Prepares the hidden states, possibly replicates them for CFG, and then delegates to `_compute_logits`. B
zonos/model.py:118
Function_expand_decimal_point
(m: re.Match)
zonos/conditioning.py:85
Function_expand_dollars
(m: re.Match)
zonos/conditioning.py:89
Function_expand_number
(m: re.Match)
zonos/conditioning.py:114
Function_expand_ordinal
(m: re.Match)
zonos/conditioning.py:110
Function_get_symbol_id
(s: str)
zonos/conditioning.py:155
Method_pad_embeddings_and_heads
(self, *args, **kwargs)
zonos/model.py:49
Function_remove_commas
(m: re.Match)
zonos/conditioning.py:81
Methodallocate_inference_cache
(self, batch_size: int, max_seqlen: int, dtype: torch.dtype = torch.bfloat16)
zonos/backbone/_mamba_ssm.py:38
Methodallocate_inference_cache
(self, batch_size: int, max_seqlen: int, dtype: torch.dtype = torch.bfloat16)
zonos/backbone/_torch.py:64
Methodapply_cond
Args: texts: list of texts to convert to phonemes languages: ISO 639-1 -or otherwise eSpeak compatible- language code
zonos/conditioning.py:224
Methodapply_cond
(self, x: torch.Tensor)
zonos/conditioning.py:257
Methodapply_cond
(self, x: torch.Tensor)
zonos/conditioning.py:271
Methodapply_cond
(self, x: torch.Tensor)
zonos/conditioning.py:280
Methodcapture_region
()
zonos/model.py:164
Methoddtype
(self)
zonos/speaker_cloning.py:369
Methodforward
(self, x)
zonos/speaker_cloning.py:31
Methodforward
(self, x)
zonos/speaker_cloning.py:53
Methodforward
(self, x)
zonos/speaker_cloning.py:83
Methodforward
(self, x)
zonos/speaker_cloning.py:117
Methodforward
(self, x)
zonos/speaker_cloning.py:144
Methodforward
(self, x)
zonos/speaker_cloning.py:186
Methodforward
(self, x)
zonos/speaker_cloning.py:217
Methodforward
(self, input)
zonos/speaker_cloning.py:239
Methodforward
(self, x)
zonos/speaker_cloning.py:265
Methodforward
(self, x)
zonos/speaker_cloning.py:319
next →1–100 of 113, ranked by callers