MCPcopy Create free account

hub / github.com/QwenLM/Qwen3-TTS / functions

Functions375 in github.com/QwenLM/Qwen3-TTS

Methodforward
(self, hidden_states)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:227
Methodforward
(self, x, position_ids)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:268
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:312
Methodforward
(self, x)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:368
Methodforward
(self, hidden_states: torch.Tensor)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:383
Methodforward
(self, x: torch.Tensor)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:405
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:421
Methodforward
( self, input_ids=None, attention_mask=None, position_ids=None, past_k
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:501
Methodforward
Forward pass of the function. Applies the function to the input elementwise. SnakeBeta ∶= x + 1/b * sin^2 (xa)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:602
Methodforward
(self, hidden_state)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:628
Methodforward
(self, hidden)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:655
Methodforward
(self, codes)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:869
Methodforward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:115
Methodforward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:150
Methodforward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:214
Methodforward
(self, hidden_states: torch.Tensor)
qwen_tts/core/models/modeling_qwen3_tts.py:266
Methodforward
(self, hidden_state)
qwen_tts/core/models/modeling_qwen3_tts.py:300
Methodforward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:373
Methodforward
(self, x, position_ids)
qwen_tts/core/models/modeling_qwen3_tts.py:546
Methodforward
(self, x, position_ids)
qwen_tts/core/models/modeling_qwen3_tts.py:581
Methodforward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:605
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
qwen_tts/core/models/modeling_qwen3_tts.py:761
Methodforward
(self, hidden_state)
qwen_tts/core/models/modeling_qwen3_tts.py:815
Methodforward
(self, x)
qwen_tts/core/models/modeling_qwen3_tts.py:853
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
qwen_tts/core/models/modeling_qwen3_tts.py:916
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
qwen_tts/core/models/modeling_qwen3_tts.py:973
Methodforward
( self, input_ids=None, attention_mask=None, position_ids=None, past_k
qwen_tts/core/models/modeling_qwen3_tts.py:1044
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
qwen_tts/core/models/modeling_qwen3_tts.py:1250
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
qwen_tts/core/models/modeling_qwen3_tts.py:1359
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
qwen_tts/core/models/modeling_qwen3_tts.py:1457
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
qwen_tts/core/models/modeling_qwen3_tts.py:1636
Methodfrom_pretrained
( cls, pretrained_model_name_or_path, *model_args, config=None, cache_
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1397
Methodfrom_pretrained
Initialize tokenizer with HuggingFace `from_pretrained` style. Args: pretrained_model_name_or_path (str):
qwen_tts/inference/qwen3_tts_tokenizer.py:64
Methodget_decode_upsample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1393
Methodget_decode_upsample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:958
Methodget_decode_upsample_rate
Get the decoder upsample rate (waveform samples per code step). Returns: int: Decode upsample rate.
qwen_tts/inference/qwen3_tts_tokenizer.py:404
Methodget_decoder
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1194
Methodget_decoder
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1609
Methodget_encode_downsample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1390
Methodget_encode_downsample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:955
Methodget_encode_downsample_rate
Get the encoder downsample rate (waveform samples per code step). Returns: int: Encode downsample rate.
qwen_tts/inference/qwen3_tts_tokenizer.py:395
Methodget_input_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1037
Methodget_input_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1179
Methodget_input_sample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1384
Methodget_input_sample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:949
Methodget_input_sample_rate
Get the expected input sample rate for encoding. Returns: int: Input sample rate (Hz).
qwen_tts/inference/qwen3_tts_tokenizer.py:377
Methodget_model_type
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1381
Methodget_model_type
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:946
Methodget_output_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1185
Methodget_output_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1600
Methodget_output_sample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1387
Methodget_output_sample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:952
Methodget_supported_languages
List supported language names for the current model. This is a convenience wrapper around `model.get_supported_languages()`.
qwen_tts/inference/qwen3_tts_model.py:861
Methodget_supported_speakers
List supported speaker names for the current model. This is a convenience wrapper around `model.get_supported_speakers()`. I
qwen_tts/inference/qwen3_tts_model.py:842
Methodget_text_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1594
Methodlayer_types
All layer in code2wav should be sliding attention
qwen_tts/core/tokenizer_12hz/configuration_qwen3_tts_tokenizer_v2.py:117
Functionload_prompt_and_gen
(file_obj, text: str, lang_disp: str)
qwen_tts/cli/demo.py:526
Methodlock
(self, layers: int)
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:402
Methodmodel_input_names
(self)
qwen_tts/core/models/processing_qwen3_tts.py:97
Methodode_function
(time_step, hidden_states)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1186
Methodoptimized_scale
(self, positive_flat, negative_flat)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1162
Methodpick
(name: str, user_val: Any)
qwen_tts/inference/qwen3_tts_model.py:332
Functionround_up_multiple
(num, mult)
qwen_tts/core/tokenizer_25hz/vq/core_vq.py:45
Functionrun_instruct
(text: str, lang_disp: str, spk_disp: str, instruct: str)
qwen_tts/cli/demo.py:317
Functionrun_voice_clone
(ref_aud, ref_txt: str, use_xvec: bool, text: str, lang_disp: str)
qwen_tts/cli/demo.py:420
Functionrun_voice_design
(text: str, lang_disp: str, design: str)
qwen_tts/cli/demo.py:364
Functionsave_prompt
(ref_aud, ref_txt: str, use_xvec: bool)
qwen_tts/cli/demo.py:501
Methodset_decoder
(self, decoder)
qwen_tts/core/models/modeling_qwen3_tts.py:1191
Methodset_decoder
(self, decoder)
qwen_tts/core/models/modeling_qwen3_tts.py:1606
Methodset_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1040
Methodset_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1182
Methodset_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1453
Methodset_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1597
Methodset_output_embeddings
(self, new_embeddings)
qwen_tts/core/models/modeling_qwen3_tts.py:1188
Methodset_output_embeddings
(self, new_embeddings)
qwen_tts/core/models/modeling_qwen3_tts.py:1603
← previous301–375 of 375, ranked by callers