Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QwenLM/Qwen3-TTS
/ types & classes
Types & classes
111 in github.com/QwenLM/Qwen3-TTS
⨍
Functions
375
◇
Types & classes
111
↳
Endpoints
1
↓ 10 callers
Class
Qwen3TTSRMSNorm
qwen_tts/core/models/modeling_qwen3_tts.py:596
↓ 6 callers
Class
CausalConv1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:859
↓ 6 callers
Class
Linear
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:156
↓ 6 callers
Class
Qwen3TTSTokenizerV2CausalConvNet
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:159
↓ 6 callers
Class
TimeDelayNetBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:124
↓ 6 callers
Class
TimeDelayNetBlock
qwen_tts/core/models/modeling_qwen3_tts.py:247
↓ 4 callers
Class
SnakeBeta
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 callers
Class
Conv1d
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:138
↓ 3 callers
Class
Qwen3TTSTokenizerV2DecoderRMSNorm
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:374
↓ 3 callers
Class
SnakeBeta
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 callers
Class
TorchActivation1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:835
↓ 2 callers
Class
Qwen3TTSTalkerCodePredictorConfig
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 callers
Class
Qwen3TTSTalkerCodePredictorOutputWithPast
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 callers
Class
Qwen3TTSTalkerTextMLP
qwen_tts/core/models/modeling_qwen3_tts.py:842
↓ 2 callers
Class
Qwen3TTSTokenizerV2CausalTransConvNet
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:195
↓ 2 callers
Class
Qwen3TTSTokenizerV2DecoderLayerScale
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 callers
Class
ResidualVectorQuantizer
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:730
↓ 2 callers
Class
VoiceClonePromptItem
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 callers
Class
AMPBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:868
↓ 1 callers
Class
AdaLayerNormZero
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:477
↓ 1 callers
Class
AdaLayerNormZero_Final
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:496
↓ 1 callers
Class
AttentiveStatisticsPooling
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 callers
Class
AttentiveStatisticsPooling
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 callers
Class
ConvTranspose1d
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:147
↓ 1 callers
Class
DiTAttention
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:570
↓ 1 callers
Class
DiTCodecEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:460
↓ 1 callers
Class
DiTDecoderLayer
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:663
↓ 1 callers
Class
DiTInputEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:426
↓ 1 callers
Class
DiTMLP
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:514
↓ 1 callers
Class
DiTTimestepEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:649
↓ 1 callers
Class
DistributedGroupResidualVectorQuantization
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 callers
Class
DistributedResidualVectorQuantization
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 callers
Class
DownSample1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:810
↓ 1 callers
Class
ECAPA_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 callers
Class
EuclideanCodebook
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 callers
Class
EuclideanCodebook
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:661
↓ 1 callers
Class
MelSpectrogramFeatures
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 callers
Class
MultiHeadAttention
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:161
↓ 1 callers
Class
Qwen3TTSAttention
Multi-headed attention from 'Attention Is All You Need' paper
qwen_tts/core/models/modeling_qwen3_tts.py:885
↓ 1 callers
Class
Qwen3TTSDecoderLayer
qwen_tts/core/models/modeling_qwen3_tts.py:961
↓ 1 callers
Class
Qwen3TTSRotaryEmbedding
qwen_tts/core/models/modeling_qwen3_tts.py:561
↓ 1 callers
Class
Qwen3TTSSpeakerEncoder
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 callers
Class
Qwen3TTSSpeakerEncoderConfig
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 callers
Class
Qwen3TTSTalkerAttention
Multi-headed attention from 'Attention Is All You Need' paper
qwen_tts/core/models/modeling_qwen3_tts.py:727
↓ 1 callers
Class
Qwen3TTSTalkerCodePredictorModel
qwen_tts/core/models/modeling_qwen3_tts.py:1015
↓ 1 callers
Class
Qwen3TTSTalkerCodePredictorModelForConditionalGeneration
qwen_tts/core/models/modeling_qwen3_tts.py:1156
↓ 1 callers
Class
Qwen3TTSTalkerConfig
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 callers
Class
Qwen3TTSTalkerDecoderLayer
qwen_tts/core/models/modeling_qwen3_tts.py:1348
↓ 1 callers
Class
Qwen3TTSTalkerForConditionalGeneration
qwen_tts/core/models/modeling_qwen3_tts.py:1564
↓ 1 callers
Class
Qwen3TTSTalkerModel
qwen_tts/core/models/modeling_qwen3_tts.py:1427
↓ 1 callers
Class
Qwen3TTSTalkerOutputWithPast
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 callers
Class
Qwen3TTSTalkerResizeMLP
qwen_tts/core/models/modeling_qwen3_tts.py:808
↓ 1 callers
Class
Qwen3TTSTalkerRotaryEmbedding
qwen_tts/core/models/modeling_qwen3_tts.py:526
↓ 1 callers
Class
Qwen3TTSTokenizerV1DecoderBigVGANConfig
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 callers
Class
Qwen3TTSTokenizerV1DecoderConfig
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 callers
Class
Qwen3TTSTokenizerV1DecoderDiTConfig
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 callers
Class
Qwen3TTSTokenizerV1DecoderDiTRotaryEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:99
↓ 1 callers
Class
Qwen3TTSTokenizerV1DecoderOutput
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 callers
Class
Qwen3TTSTokenizerV1EncoderConfig
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 callers
Class
Qwen3TTSTokenizerV1EncoderOutput
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 callers
Class
Qwen3TTSTokenizerV2ConvNeXtBlock
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:211
↓ 1 callers
Class
Qwen3TTSTokenizerV2DecoderAttention
Multi-headed attention from 'Attention Is All You Need' paper
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:282
↓ 1 callers
Class
Qwen3TTSTokenizerV2DecoderConfig
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 callers
Class
Qwen3TTSTokenizerV2DecoderDecoderBlock
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:638
↓ 1 callers
Class
Qwen3TTSTokenizerV2DecoderDecoderResidualUnit
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:619
↓ 1 callers
Class
Qwen3TTSTokenizerV2DecoderMlp
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:357
↓ 1 callers
Class
Qwen3TTSTokenizerV2DecoderOutput
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 callers
Class
Qwen3TTSTokenizerV2DecoderRotatoryEmbedding
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:246
↓ 1 callers
Class
Qwen3TTSTokenizerV2DecoderTransformerLayer
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:409
↓ 1 callers
Class
Qwen3TTSTokenizerV2EncoderOutput
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 callers
Class
Res2NetBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:147
↓ 1 callers
Class
Res2NetBlock
qwen_tts/core/models/modeling_qwen3_tts.py:95
↓ 1 callers
Class
ResidualAttentionBlock
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:265
↓ 1 callers
Class
ResidualVectorQuantization
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:714
↓ 1 callers
Class
SinusPositionEmbedding
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:634
↓ 1 callers
Class
SplitResidualVectorQuantizer
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 callers
Class
SqueezeExcitationBlock
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:181
↓ 1 callers
Class
SqueezeExcitationBlock
qwen_tts/core/models/modeling_qwen3_tts.py:129
↓ 1 callers
Class
SqueezeExcitationRes2NetBlock
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 callers
Class
SqueezeExcitationRes2NetBlock
An implementation of building block in ECAPA-TDNN, i.e., TDNN-Res2Net-TDNN-SqueezeExcitationBlock.
qwen_tts/core/models/modeling_qwen3_tts.py:269
↓ 1 callers
Class
TTSDataset
finetuning/dataset.py:33
↓ 1 callers
Class
UpSample1d
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:785
↓ 1 callers
Class
VectorQuantization
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 callers
Class
VectorQuantization
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:682
↓ 1 callers
Class
WhisperEncoderVQ
qwen_tts/core/tokenizer_25hz/vq/speech_vq.py:162
↓ 1 callers
Class
XVectorExtractor
qwen_tts/core/tokenizer_25hz/vq/speech_vq.py:118
Class
Qwen3TTSConfig
This is the configuration class to store the configuration of a [`Qwen3TTSForConditionalGeneration`].
qwen_tts/core/models/configuration_qwen3_tts.py:454
Class
Qwen3TTSForConditionalGeneration
qwen_tts/core/models/modeling_qwen3_tts.py:1813
Class
Qwen3TTSModel
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
Class
Qwen3TTSPreTrainedModel
qwen_tts/core/models/modeling_qwen3_tts.py:467
Class
Qwen3TTSProcessor
r""" Constructs a Qwen3TTS processor. Args: tokenizer ([`Qwen2TokenizerFast`], *optional*): The text tokenizer. c
qwen_tts/core/models/processing_qwen3_tts.py:27
Class
Qwen3TTSProcessorKwargs
qwen_tts/core/models/processing_qwen3_tts.py:19
Class
Qwen3TTSTalkerTextPreTrainedModel
qwen_tts/core/models/modeling_qwen3_tts.py:499
Class
Qwen3TTSTokenizer
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
Class
Qwen3TTSTokenizerV1Config
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
Class
Qwen3TTSTokenizerV1Decoder
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1230
Class
Qwen3TTSTokenizerV1DecoderBigVGANModel
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:996
Class
Qwen3TTSTokenizerV1DecoderDiTModel
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1071
Class
Qwen3TTSTokenizerV1DecoderPreTrainedModel
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:76
Class
Qwen3TTSTokenizerV1Encoder
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1282
next →
1–100 of 111, ranked by callers