MCPcopy Create free account

hub / github.com/boson-ai/higgs-audio / types & classes

Types & classes70 in github.com/boson-ai/higgs-audio

↓ 15 callersClassMessage
boson_multimodal/data_types.py:25
↓ 6 callersClassConv1d
boson_multimodal/audio_processing/semantic_module.py:16
↓ 6 callersClassResidualUnit
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:24
↓ 6 callersClassSnake1d
boson_multimodal/audio_processing/descriptaudiocodec/dac/nn/layers.py:27
↓ 4 callersClassAudioContent
boson_multimodal/data_types.py:8
↓ 4 callersClassChatMLSample
Dataclass to hold multimodal ChatML data.
boson_multimodal/data_types.py:32
↓ 4 callersClassTextContent
boson_multimodal/data_types.py:19
↓ 3 callersClassChatMLDatasetSample
boson_multimodal/dataset/chatml_dataset.py:24
↓ 3 callersClassHiggsAudioDualFFNDecoderLayer
We implement a dual-path FFN decoder layer where the audio tokens and text tokens go through separate FFN layers. The audio and text tokens share
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:362
↓ 2 callersClassHiggsAudioSampleCollator
Sample collator for Higgs-Audio model. Args: whisper_processor (WhisperProcessor): The whisper processor. audio_in_token_id (int)
boson_multimodal/data_collator/higgs_audio_collator.py:47
↓ 2 callersClassHiggsAudioStreamerDelta
Represents a chunk of generated content, either text or audio tokens.
boson_multimodal/serve/serve_engine.py:27
↓ 2 callersClassResidualUnit
boson_multimodal/audio_processing/semantic_module.py:57
↓ 2 callersClassResidualVectorQuantize
Introduced in SoundStream: An end2end neural audio codec https://arxiv.org/abs/2107.03312
boson_multimodal/audio_processing/descriptaudiocodec/dac/nn/quantize.py:95
↓ 1 callersClassArithmeticCoder
ArithmeticCoder, Let us take a distribution `p` over `N` symbols, and assume we have a stream of random variables `s_t` sampled from `p`. Let
boson_multimodal/audio_processing/quantization/ac.py:56
↓ 1 callersClassArithmeticDecoder
ArithmeticDecoder, see `ArithmeticCoder` for a detailed explanation. Note that this must be called with **exactly** the same parameters and seque
boson_multimodal/audio_processing/quantization/ac.py:169
↓ 1 callersClassAsyncHiggsAudioStreamer
Async streamer that handles both text and audio token generation from Higgs-Audio model. Stores chunks in a queue to be consumed by downstrea
boson_multimodal/serve/serve_engine.py:36
↓ 1 callersClassCUDAGraphRunner
boson_multimodal/model/higgs_audio/cuda_graph_runner.py:12
↓ 1 callersClassConv1d1x1
1x1 Conv1d.
boson_multimodal/audio_processing/semantic_module.py:9
↓ 1 callersClassConvTranspose1d
boson_multimodal/audio_processing/semantic_module.py:86
↓ 1 callersClassDAC
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:152
↓ 1 callersClassDACFile
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/base.py:16
↓ 1 callersClassDecoder
boson_multimodal/audio_processing/semantic_module.py:232
↓ 1 callersClassDecoder
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:116
↓ 1 callersClassDecoderBlock
Decoder block (no up-sampling)
boson_multimodal/audio_processing/semantic_module.py:193
↓ 1 callersClassDecoderBlock
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:94
↓ 1 callersClassEncodedResult
boson_multimodal/audio_processing/higgs_audio_tokenizer.py:24
↓ 1 callersClassEncoder
boson_multimodal/audio_processing/semantic_module.py:150
↓ 1 callersClassEncoder
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:64
↓ 1 callersClassEncoderBlock
boson_multimodal/audio_processing/semantic_module.py:125
↓ 1 callersClassEncoderBlock
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:43
↓ 1 callersClassEuclideanCodebook
Codebook with Euclidean distance. Args: dim (int): Dimension. codebook_size (int): Codebook size. kmeans_init (bool): Whet
boson_multimodal/audio_processing/quantization/core_vq_lsx_version.py:132
↓ 1 callersClassEuclideanCodebook
Codebook with Euclidean distance. Args: dim (int): Dimension. codebook_size (int): Codebook size. kmeans_init (bool): Whet
boson_multimodal/audio_processing/quantization/core_vq.py:96
↓ 1 callersClassHiggsAudioBatchInput
boson_multimodal/data_collator/higgs_audio_collator.py:24
↓ 1 callersClassHiggsAudioDecoderProjector
Projection layers that map hidden states from the LLM component to audio / text logits. We support two type of audio head: - Basic Audio Head
boson_multimodal/model/higgs_audio/audio_head.py:21
↓ 1 callersClassHiggsAudioEncoder
Transformer encoder consisting of *config.encoder_layers* self attention layers. Each layer is a [`WhisperEncoderLayer`]. Args:
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:177
↓ 1 callersClassHiggsAudioEncoderConfig
Configuration of the Audio encoder in Higgs-Audio.
boson_multimodal/model/higgs_audio/configuration_higgs_audio.py:5
↓ 1 callersClassHiggsAudioFeatureExtractor
boson_multimodal/audio_processing/higgs_audio_tokenizer.py:29
↓ 1 callersClassHiggsAudioFeatureProjector
Projector that maps audio features extracted by Whisper to hidden state of the text model.
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:163
↓ 1 callersClassHiggsAudioGenerationOutput
Outputs of HiggsAudio generation models, when using non-beam methods. Args: sequences (`torch.LongTensor` of shape `(batch_size, seq
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:752
↓ 1 callersClassHiggsAudioModelClient
examples/generation.py:178
↓ 1 callersClassHiggsAudioModelOutputWithPast
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:732
↓ 1 callersClassHiggsAudioResponse
boson_multimodal/serve/serve_engine.py:172
↓ 1 callersClassHiggsAudioServeEngine
boson_multimodal/serve/serve_engine.py:181
↓ 1 callersClassHiggsAudioTokenizer
boson_multimodal/audio_processing/higgs_audio_tokenizer.py:43
↓ 1 callersClassPartiallyFrozenEmbedding
Split an existing `nn.Embedding` module that splits the embedding into: - A frozen embedding for indices [0..freeze_until_idx]. - A trainable
boson_multimodal/model/higgs_audio/custom_modules.py:5
↓ 1 callersClassPartiallyFrozenLinear
A wrapper around nn.Linear to partially freeze part of the weight matrix.
boson_multimodal/model/higgs_audio/custom_modules.py:96
↓ 1 callersClassResidualVectorQuantization
Residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
boson_multimodal/audio_processing/quantization/core_vq.py:313
↓ 1 callersClassResidualVectorQuantizer
Residual Vector Quantizer. Args: dimension (int): Dimension of the codebooks. n_q (int): Number of residual vector quantizers used
boson_multimodal/audio_processing/quantization/vq.py:29
↓ 1 callersClassVectorQuantization
Vector quantization implementation. Currently supports only euclidean distance. Args: dim (int): Dimension codebook_size (int)
boson_multimodal/audio_processing/quantization/core_vq_lsx_version.py:290
↓ 1 callersClassVectorQuantization
Vector quantization implementation. Currently supports only euclidean distance. Args: dim (int): Dimension codebook_size (int)
boson_multimodal/audio_processing/quantization/core_vq.py:225
↓ 1 callersClassVectorQuantize
Implementation of VQ similar to Karpathy's repo: https://github.com/karpathy/deep-vector-quantization Additionally uses following tricks
boson_multimodal/audio_processing/descriptaudiocodec/dac/nn/quantize.py:13
ClassAsyncStoppingCriteria
Stopping criteria that checks for stop signal from a threading event. Args: stop_signal (threading.Event): Event that will receive s
boson_multimodal/serve/serve_engine.py:153
ClassChatMLDatasetStorageSample
boson_multimodal/dataset/chatml_dataset.py:293
ClassCodecMixin
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/base.py:55
ClassDDP
Override the forward call in lightning so it goes to training and validation step respectively
boson_multimodal/audio_processing/quantization/ddp_utils.py:68
ClassDatasetInfo
boson_multimodal/dataset/chatml_dataset.py:530
ClassDatasetInterface
boson_multimodal/dataset/chatml_dataset.py:515
ClassGenerationMode
Enum for different generation modes in HiggsAudio model.
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:45
ClassHiggsAudioConfig
r""" This is the configuration class for the HiggsAudioModel. Args: text_config (`Union[AutoConfig, dict]`): The config o
boson_multimodal/model/higgs_audio/configuration_higgs_audio.py:47
ClassHiggsAudioDecoderLayerOutput
boson_multimodal/model/higgs_audio/audio_head.py:14
ClassHiggsAudioModel
Higgs-Audio is an end-to-end multimodal model with the capability to understand and generate text / audio. Consider the following example for mix
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:794
ClassHiggsAudioPreTrainedModel
boson_multimodal/model/higgs_audio/common.py:8
ClassIterableDatasetInterface
boson_multimodal/dataset/chatml_dataset.py:522
ClassQuantizedResult
boson_multimodal/audio_processing/quantization/vq.py:21
ClassRankedChatMLDatasetSampleTuple
boson_multimodal/dataset/chatml_dataset.py:277
ClassResidualVectorQuantization
Residual vector quantization implementation. Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
boson_multimodal/audio_processing/quantization/core_vq_lsx_version.py:378
ClassSyncFunction
boson_multimodal/audio_processing/quantization/ddp_utils.py:36
Class_DropTokens
Divide tokens equally among the sequence parallel ranks
boson_multimodal/model/higgs_audio/utils.py:646
Class_GatherTensors
All gather tensors among the ranks.
boson_multimodal/model/higgs_audio/utils.py:557
Class_GatherTokens
Gather tokens among the sequence parallel ranks
boson_multimodal/model/higgs_audio/utils.py:668