Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boson-ai/higgs-audio
/ types & classes
Types & classes
70 in github.com/boson-ai/higgs-audio
⨍
Functions
316
◇
Types & classes
70
↳
Endpoints
1
↓ 15 callers
Class
Message
boson_multimodal/data_types.py:25
↓ 6 callers
Class
Conv1d
boson_multimodal/audio_processing/semantic_module.py:16
↓ 6 callers
Class
ResidualUnit
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:24
↓ 6 callers
Class
Snake1d
boson_multimodal/audio_processing/descriptaudiocodec/dac/nn/layers.py:27
↓ 4 callers
Class
AudioContent
boson_multimodal/data_types.py:8
↓ 4 callers
Class
ChatMLSample
Dataclass to hold multimodal ChatML data.
boson_multimodal/data_types.py:32
↓ 4 callers
Class
TextContent
boson_multimodal/data_types.py:19
↓ 3 callers
Class
ChatMLDatasetSample
boson_multimodal/dataset/chatml_dataset.py:24
↓ 3 callers
Class
HiggsAudioDualFFNDecoderLayer
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 callers
Class
HiggsAudioSampleCollator
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 callers
Class
HiggsAudioStreamerDelta
Represents a chunk of generated content, either text or audio tokens.
boson_multimodal/serve/serve_engine.py:27
↓ 2 callers
Class
ResidualUnit
boson_multimodal/audio_processing/semantic_module.py:57
↓ 2 callers
Class
ResidualVectorQuantize
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 callers
Class
ArithmeticCoder
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 callers
Class
ArithmeticDecoder
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 callers
Class
AsyncHiggsAudioStreamer
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 callers
Class
CUDAGraphRunner
boson_multimodal/model/higgs_audio/cuda_graph_runner.py:12
↓ 1 callers
Class
Conv1d1x1
1x1 Conv1d.
boson_multimodal/audio_processing/semantic_module.py:9
↓ 1 callers
Class
ConvTranspose1d
boson_multimodal/audio_processing/semantic_module.py:86
↓ 1 callers
Class
DAC
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:152
↓ 1 callers
Class
DACFile
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/base.py:16
↓ 1 callers
Class
Decoder
boson_multimodal/audio_processing/semantic_module.py:232
↓ 1 callers
Class
Decoder
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:116
↓ 1 callers
Class
DecoderBlock
Decoder block (no up-sampling)
boson_multimodal/audio_processing/semantic_module.py:193
↓ 1 callers
Class
DecoderBlock
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:94
↓ 1 callers
Class
EncodedResult
boson_multimodal/audio_processing/higgs_audio_tokenizer.py:24
↓ 1 callers
Class
Encoder
boson_multimodal/audio_processing/semantic_module.py:150
↓ 1 callers
Class
Encoder
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:64
↓ 1 callers
Class
EncoderBlock
boson_multimodal/audio_processing/semantic_module.py:125
↓ 1 callers
Class
EncoderBlock
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/dac.py:43
↓ 1 callers
Class
EuclideanCodebook
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 callers
Class
EuclideanCodebook
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 callers
Class
HiggsAudioBatchInput
boson_multimodal/data_collator/higgs_audio_collator.py:24
↓ 1 callers
Class
HiggsAudioDecoderProjector
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 callers
Class
HiggsAudioEncoder
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 callers
Class
HiggsAudioEncoderConfig
Configuration of the Audio encoder in Higgs-Audio.
boson_multimodal/model/higgs_audio/configuration_higgs_audio.py:5
↓ 1 callers
Class
HiggsAudioFeatureExtractor
boson_multimodal/audio_processing/higgs_audio_tokenizer.py:29
↓ 1 callers
Class
HiggsAudioFeatureProjector
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 callers
Class
HiggsAudioGenerationOutput
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 callers
Class
HiggsAudioModelClient
examples/generation.py:178
↓ 1 callers
Class
HiggsAudioModelOutputWithPast
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:732
↓ 1 callers
Class
HiggsAudioResponse
boson_multimodal/serve/serve_engine.py:172
↓ 1 callers
Class
HiggsAudioServeEngine
boson_multimodal/serve/serve_engine.py:181
↓ 1 callers
Class
HiggsAudioTokenizer
boson_multimodal/audio_processing/higgs_audio_tokenizer.py:43
↓ 1 callers
Class
PartiallyFrozenEmbedding
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 callers
Class
PartiallyFrozenLinear
A wrapper around nn.Linear to partially freeze part of the weight matrix.
boson_multimodal/model/higgs_audio/custom_modules.py:96
↓ 1 callers
Class
ResidualVectorQuantization
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 callers
Class
ResidualVectorQuantizer
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 callers
Class
VectorQuantization
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 callers
Class
VectorQuantization
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 callers
Class
VectorQuantize
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
Class
AsyncStoppingCriteria
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
Class
ChatMLDatasetStorageSample
boson_multimodal/dataset/chatml_dataset.py:293
Class
CodecMixin
boson_multimodal/audio_processing/descriptaudiocodec/dac/model/base.py:55
Class
DDP
Override the forward call in lightning so it goes to training and validation step respectively
boson_multimodal/audio_processing/quantization/ddp_utils.py:68
Class
DatasetInfo
boson_multimodal/dataset/chatml_dataset.py:530
Class
DatasetInterface
boson_multimodal/dataset/chatml_dataset.py:515
Class
GenerationMode
Enum for different generation modes in HiggsAudio model.
boson_multimodal/model/higgs_audio/modeling_higgs_audio.py:45
Class
HiggsAudioConfig
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
Class
HiggsAudioDecoderLayerOutput
boson_multimodal/model/higgs_audio/audio_head.py:14
Class
HiggsAudioModel
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
Class
HiggsAudioPreTrainedModel
boson_multimodal/model/higgs_audio/common.py:8
Class
IterableDatasetInterface
boson_multimodal/dataset/chatml_dataset.py:522
Class
QuantizedResult
boson_multimodal/audio_processing/quantization/vq.py:21
Class
RankedChatMLDatasetSampleTuple
boson_multimodal/dataset/chatml_dataset.py:277
Class
ResidualVectorQuantization
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
Class
SyncFunction
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