MCPcopy Create free account

hub / github.com/QwenLM/Qwen3-TTS / types & classes

Types & classes111 in github.com/QwenLM/Qwen3-TTS

↓ 10 callersClassQwen3TTSRMSNorm
qwen_tts/core/models/modeling_qwen3_tts.py:596
↓ 6 callersClassCausalConv1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:859
↓ 6 callersClassLinear
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:156
↓ 6 callersClassQwen3TTSTokenizerV2CausalConvNet
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:159
↓ 6 callersClassTimeDelayNetBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:124
↓ 6 callersClassTimeDelayNetBlock
qwen_tts/core/models/modeling_qwen3_tts.py:247
↓ 4 callersClassSnakeBeta
A modified Snake function which uses separate parameters for the magnitude of the periodic components Shape: - Input: (B, C, T)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:578
↓ 3 callersClassConv1d
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:138
↓ 3 callersClassQwen3TTSTokenizerV2DecoderRMSNorm
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:374
↓ 3 callersClassSnakeBeta
A modified Snake function which uses separate parameters for the magnitude of the periodic components Shape: - Input: (B, C, T)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:698
↓ 3 callersClassTorchActivation1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:835
↓ 2 callersClassQwen3TTSTalkerCodePredictorConfig
r""" This is the configuration class to store the configuration of a [`Qwen3TTSTalkerCodePredictorModel`]. It is used to instantiate a Qwen3TT
qwen_tts/core/models/configuration_qwen3_tts.py:70
↓ 2 callersClassQwen3TTSTalkerCodePredictorOutputWithPast
r""" loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` is provided): Language modeling loss (for next-token pr
qwen_tts/core/models/modeling_qwen3_tts.py:820
↓ 2 callersClassQwen3TTSTalkerTextMLP
qwen_tts/core/models/modeling_qwen3_tts.py:842
↓ 2 callersClassQwen3TTSTokenizerV2CausalTransConvNet
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:195
↓ 2 callersClassQwen3TTSTokenizerV2DecoderLayerScale
Layer scale from [Touvron et al 2021] (https://huggingface.co/papers/2103.17239). This rescales diagonally the residual outputs close to 0, with a
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:394
↓ 2 callersClassResidualVectorQuantizer
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:730
↓ 2 callersClassVoiceClonePromptItem
Container for one sample's voice-clone prompt information that can be fed to the model. Fields are aligned with `Qwen3TTSForConditionalGener
qwen_tts/inference/qwen3_tts_model.py:41
↓ 1 callersClassAMPBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:868
↓ 1 callersClassAdaLayerNormZero
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:477
↓ 1 callersClassAdaLayerNormZero_Final
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:496
↓ 1 callersClassAttentiveStatisticsPooling
This class implements an attentive statistic pooling layer for each channel. It returns the concatenated mean and std of the input tensor.
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:211
↓ 1 callersClassAttentiveStatisticsPooling
This class implements an attentive statistic pooling layer for each channel. It returns the concatenated mean and std of the input tensor.
qwen_tts/core/models/modeling_qwen3_tts.py:159
↓ 1 callersClassConvTranspose1d
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:147
↓ 1 callersClassDiTAttention
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:570
↓ 1 callersClassDiTCodecEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:460
↓ 1 callersClassDiTDecoderLayer
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:663
↓ 1 callersClassDiTInputEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:426
↓ 1 callersClassDiTMLP
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:514
↓ 1 callersClassDiTTimestepEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:649
↓ 1 callersClassDistributedGroupResidualVectorQuantization
Efficient distributed group residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/abs/2305.02765 Group Then r
qwen_tts/core/tokenizer_25hz/vq/core_vq.py:477
↓ 1 callersClassDistributedResidualVectorQuantization
Efficient distributed residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
qwen_tts/core/tokenizer_25hz/vq/core_vq.py:334
↓ 1 callersClassDownSample1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:810
↓ 1 callersClassECAPA_TimeDelayNet
An implementation of the speaker embedding model in a paper. "ECAPA-TDNN: Emphasized Channel Attention, Propagation and Aggregation in TDNN Ba
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:342
↓ 1 callersClassEuclideanCodebook
Codebook with Euclidean distance. Args: dim (int): Dimension. codebook_size (int): Codebook size. kmeans_init (bool): Whet
qwen_tts/core/tokenizer_25hz/vq/core_vq.py:113
↓ 1 callersClassEuclideanCodebook
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:661
↓ 1 callersClassMelSpectrogramFeatures
Calculate the BigVGAN style mel spectrogram of an input signal. Args: filter_length (int): The number of samples in the filter window
qwen_tts/core/tokenizer_25hz/vq/speech_vq.py:42
↓ 1 callersClassMultiHeadAttention
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:161
↓ 1 callersClassQwen3TTSAttention
Multi-headed attention from 'Attention Is All You Need' paper
qwen_tts/core/models/modeling_qwen3_tts.py:885
↓ 1 callersClassQwen3TTSDecoderLayer
qwen_tts/core/models/modeling_qwen3_tts.py:961
↓ 1 callersClassQwen3TTSRotaryEmbedding
qwen_tts/core/models/modeling_qwen3_tts.py:561
↓ 1 callersClassQwen3TTSSpeakerEncoder
An implementation of the speaker embedding model in a paper. "ECAPA-TDNN: Emphasized Channel Attention, Propagation and Aggregation in TDNN Ba
qwen_tts/core/models/modeling_qwen3_tts.py:311
↓ 1 callersClassQwen3TTSSpeakerEncoderConfig
r""" This is the configuration class to store the configuration of a [`Qwen3TTSSpeakerEncoder`]. It is used to instantiate a Qwen3TTS speaker
qwen_tts/core/models/configuration_qwen3_tts.py:22
↓ 1 callersClassQwen3TTSTalkerAttention
Multi-headed attention from 'Attention Is All You Need' paper
qwen_tts/core/models/modeling_qwen3_tts.py:727
↓ 1 callersClassQwen3TTSTalkerCodePredictorModel
qwen_tts/core/models/modeling_qwen3_tts.py:1015
↓ 1 callersClassQwen3TTSTalkerCodePredictorModelForConditionalGeneration
qwen_tts/core/models/modeling_qwen3_tts.py:1156
↓ 1 callersClassQwen3TTSTalkerConfig
r""" This is the configuration class to store the configuration of a [`Qwen3TTSTalkerModel`]. It is used to instantiate a Qwen3TTSTalker model
qwen_tts/core/models/configuration_qwen3_tts.py:259
↓ 1 callersClassQwen3TTSTalkerDecoderLayer
qwen_tts/core/models/modeling_qwen3_tts.py:1348
↓ 1 callersClassQwen3TTSTalkerForConditionalGeneration
qwen_tts/core/models/modeling_qwen3_tts.py:1564
↓ 1 callersClassQwen3TTSTalkerModel
qwen_tts/core/models/modeling_qwen3_tts.py:1427
↓ 1 callersClassQwen3TTSTalkerOutputWithPast
r""" loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` is provided): Language modeling loss (for next-token pr
qwen_tts/core/models/modeling_qwen3_tts.py:1323
↓ 1 callersClassQwen3TTSTalkerResizeMLP
qwen_tts/core/models/modeling_qwen3_tts.py:808
↓ 1 callersClassQwen3TTSTalkerRotaryEmbedding
qwen_tts/core/models/modeling_qwen3_tts.py:526
↓ 1 callersClassQwen3TTSTokenizerV1DecoderBigVGANConfig
r""" This is the configuration class to store the configuration of the Qwen3TTSTokenizerV1DecoderToken2WavBigVGAN module. It defines the archi
qwen_tts/core/tokenizer_25hz/configuration_qwen3_tts_tokenizer_v1.py:124
↓ 1 callersClassQwen3TTSTokenizerV1DecoderConfig
r""" This is the configuration class to store the configuration of a [`Qwen3TTSTokenizerV1DecoderConfig`]. Configuration objects inherit from
qwen_tts/core/tokenizer_25hz/configuration_qwen3_tts_tokenizer_v1.py:165
↓ 1 callersClassQwen3TTSTokenizerV1DecoderDiTConfig
r""" This is the configuration class to store the configuration of the Qwen3TTSTokenizerV1DecoderToken2WavDiT. It defines the architecture of
qwen_tts/core/tokenizer_25hz/configuration_qwen3_tts_tokenizer_v1.py:24
↓ 1 callersClassQwen3TTSTokenizerV1DecoderDiTRotaryEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:99
↓ 1 callersClassQwen3TTSTokenizerV1DecoderOutput
r""" audio_values (`List[torch.FloatTensor]`): Decoded audio values, obtained using the decoder part of Qwen3TTSTokenizerV1. Each
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:65
↓ 1 callersClassQwen3TTSTokenizerV1EncoderConfig
r""" This is the configuration class to store the configuration of the Qwen3TTSTokenizerV1 Encoder. The encoder typically takes mel-spectrogr
qwen_tts/core/tokenizer_25hz/configuration_qwen3_tts_tokenizer_v1.py:195
↓ 1 callersClassQwen3TTSTokenizerV1EncoderOutput
r""" audio_codes (`List[torch.LongTensor]`): Discret code embeddings computed using `model.encode`, each tensor has shape (codes_length_i,
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:48
↓ 1 callersClassQwen3TTSTokenizerV2ConvNeXtBlock
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:211
↓ 1 callersClassQwen3TTSTokenizerV2DecoderAttention
Multi-headed attention from 'Attention Is All You Need' paper
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:282
↓ 1 callersClassQwen3TTSTokenizerV2DecoderConfig
r""" This is the configuration class to store the configuration of a [`Qwen3TTSTokenizerV2DecoderConfig`]. Configuration objects inherit from
qwen_tts/core/tokenizer_12hz/configuration_qwen3_tts_tokenizer_v2.py:26
↓ 1 callersClassQwen3TTSTokenizerV2DecoderDecoderBlock
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:638
↓ 1 callersClassQwen3TTSTokenizerV2DecoderDecoderResidualUnit
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:619
↓ 1 callersClassQwen3TTSTokenizerV2DecoderMlp
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:357
↓ 1 callersClassQwen3TTSTokenizerV2DecoderOutput
r""" audio_values (`List[torch.FloatTensor]`): Decoded audio values, obtained using the decoder part of Qwen3TTSTokenizerV1. Each
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:65
↓ 1 callersClassQwen3TTSTokenizerV2DecoderRotatoryEmbedding
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:246
↓ 1 callersClassQwen3TTSTokenizerV2DecoderTransformerLayer
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:409
↓ 1 callersClassQwen3TTSTokenizerV2EncoderOutput
r""" audio_codes (`List[torch.LongTensor]`): Discret code embeddings computed using `model.encode`, each tensor has shape (codes_length_i,
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:54
↓ 1 callersClassRes2NetBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:147
↓ 1 callersClassRes2NetBlock
qwen_tts/core/models/modeling_qwen3_tts.py:95
↓ 1 callersClassResidualAttentionBlock
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:265
↓ 1 callersClassResidualVectorQuantization
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:714
↓ 1 callersClassSinusPositionEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:634
↓ 1 callersClassSplitResidualVectorQuantizer
Residual Vector Quantizer with separate projections for the first quantizer and the rest. Args: n_q (int): Number of residual vector quan
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:780
↓ 1 callersClassSqueezeExcitationBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:181
↓ 1 callersClassSqueezeExcitationBlock
qwen_tts/core/models/modeling_qwen3_tts.py:129
↓ 1 callersClassSqueezeExcitationRes2NetBlock
An implementation of building block in ECAPA-TDNN, i.e., TDNN-Res2Net-TDNN-SqueezeExcitationBlock.
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:300
↓ 1 callersClassSqueezeExcitationRes2NetBlock
An implementation of building block in ECAPA-TDNN, i.e., TDNN-Res2Net-TDNN-SqueezeExcitationBlock.
qwen_tts/core/models/modeling_qwen3_tts.py:269
↓ 1 callersClassTTSDataset
finetuning/dataset.py:33
↓ 1 callersClassUpSample1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:785
↓ 1 callersClassVectorQuantization
Vector quantization implementation. Currently, supports only euclidean distance. Args: dim (int): Dimension codebook_size (int
qwen_tts/core/tokenizer_25hz/vq/core_vq.py:251
↓ 1 callersClassVectorQuantization
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:682
↓ 1 callersClassWhisperEncoderVQ
qwen_tts/core/tokenizer_25hz/vq/speech_vq.py:162
↓ 1 callersClassXVectorExtractor
qwen_tts/core/tokenizer_25hz/vq/speech_vq.py:118
ClassQwen3TTSConfig
This is the configuration class to store the configuration of a [`Qwen3TTSForConditionalGeneration`].
qwen_tts/core/models/configuration_qwen3_tts.py:454
ClassQwen3TTSForConditionalGeneration
qwen_tts/core/models/modeling_qwen3_tts.py:1813
ClassQwen3TTSModel
A HuggingFace-style wrapper for Qwen3 TTS models (CustomVoice/VoiceDesign/Base) that provides: - from_pretrained() initialization via AutoM
qwen_tts/inference/qwen3_tts_model.py:54
ClassQwen3TTSPreTrainedModel
qwen_tts/core/models/modeling_qwen3_tts.py:467
ClassQwen3TTSProcessor
r""" Constructs a Qwen3TTS processor. Args: tokenizer ([`Qwen2TokenizerFast`], *optional*): The text tokenizer. c
qwen_tts/core/models/processing_qwen3_tts.py:27
ClassQwen3TTSProcessorKwargs
qwen_tts/core/models/processing_qwen3_tts.py:19
ClassQwen3TTSTalkerTextPreTrainedModel
qwen_tts/core/models/modeling_qwen3_tts.py:499
ClassQwen3TTSTokenizer
A wrapper for Qwen3 TTS Tokenizer 25Hz/12Hz with HuggingFace-style loading. - from_pretrained(): loads speech tokenizer model via AutoModel
qwen_tts/inference/qwen3_tts_tokenizer.py:44
ClassQwen3TTSTokenizerV1Config
This is the configuration class to store the configuration of a [`Qwen3TTSTokenizerV1Config`]. It is used to instantiate a Qwen3TTSTokenizerV1Mod
qwen_tts/core/tokenizer_25hz/configuration_qwen3_tts_tokenizer_v1.py:280
ClassQwen3TTSTokenizerV1Decoder
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1230
ClassQwen3TTSTokenizerV1DecoderBigVGANModel
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:996
ClassQwen3TTSTokenizerV1DecoderDiTModel
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1071
ClassQwen3TTSTokenizerV1DecoderPreTrainedModel
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:76
ClassQwen3TTSTokenizerV1Encoder
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1282
next →1–100 of 111, ranked by callers