Skip to content
ModelListedExternal
Download

Xcodec Mini Infer

XCodec Mini is a state-of-the-art neural audio codec designed for high-quality music compression and reconstruction. It combines semantic and acoustic encoding approaches to achieve efficient compression while...

KindOtherVersionRevision 87dbf66

Model source

Kind
Other
File size
69.2 MB–1.27 GB
Version
vRevision 87dbf66
Updated
Sep 12, 2026
Downloads
0
Source
Hugging Face

Source description

XCodec Mini - Neural Audio Codec

Model Description

XCodec Mini is a state-of-the-art neural audio codec designed for high-quality music compression and reconstruction. It combines semantic and acoustic encoding approaches to achieve efficient compression while maintaining audio quality.

Key Features

  • Dual Encoding Architecture

    • Semantic encoder for high-level musical features
    • Acoustic encoder for detailed sound information
    • Multi-scale processing for efficient compression
  • Advanced Compression

    • Multiple codebooks for flexible quality/size tradeoff
    • Support for 44.1kHz high-fidelity audio
    • Separate processing paths for vocals and instrumentals
  • Technical Specifications

    • Input: Raw audio at 44.1kHz
    • Output: Compressed representations and reconstructed audio
    • Model Size: [Add total size]
    • Compression Ratio: [Add typical ratio]

Intended Uses

  • High-quality music compression
  • Audio archival and storage
  • Music streaming applications
  • Audio processing pipelines

Training Data

The model was trained on a diverse dataset of music, including:

  • Various genres and styles
  • Vocal and instrumental tracks
  • High-quality studio recordings

Performance and Limitations

Strengths

  • High-quality audio reconstruction
  • Efficient compression ratios
  • Separate handling of vocals and instrumentals
  • Support for high sample rates

Limitations

  • Computationally intensive for real-time applications
  • Requires significant GPU memory
  • Best suited for offline processing
  • May introduce artifacts in extreme compression settings

Technical Specifications

Model Architecture

  1. Semantic Encoder

    • Based on HuBERT architecture
    • Captures high-level musical features
    • Outputs semantic tokens
  2. Acoustic Encoder

    • Multi-scale convolutional architecture
    • Processes detailed sound information
    • Generates acoustic tokens
  3. Dual Decoders

    • Separate decoders for vocals and instrumentals
    • Multi-stage reconstruction process
    • Quality-focused design

Input Requirements

  • Audio Format: WAV/MP3
  • Sample Rate: 44.1kHz
  • Channels: Mono/Stereo
  • Bit Depth: 16-bit

Output Format

  • Reconstructed Audio: 44.1kHz WAV
  • Intermediate Representations: Compressed tokens

Usage Guidelines

Hardware Requirements

  • GPU: NVIDIA GPU with 8GB+ VRAM
  • RAM: 16GB+ recommended
  • Storage: SSD recommended for faster processing

Software Requirements

  • Python 3.8+
  • PyTorch 2.0+
  • CUDA 11.0+
  • Additional dependencies listed in installation guide

Ethical Considerations

  • Copyright: Users should ensure they have proper rights to process copyrighted material
  • Attribution: Proper attribution should be given when using this model
  • Data Privacy: Consider data privacy implications when processing sensitive audio

Additional Information

Model Weights

The model requires several checkpoint files:

  • Semantic Encoder: semantic_ckpts/hf_1_325000/pytorch_model.bin
  • Vocal Decoder: decoders/decoder_131000.pth
  • Instrumental Decoder: decoders/decoder_151000.pth
  • Final Checkpoint: final_ckpt/ckpt_00360000.pth

Contact

For issues and questions, please use the GitHub repository's issue tracker.

Sources

1 source
Hugging FacePrimaryVersion 87dbf6615b5ac04517e3a96ef8fe98d92ce06899
huggingface.co/Nathan9/xcodec_mini_infer/tree/87dbf6615b5ac04517e3a96ef8fe98d92ce06899

Verified Sep 12

Model artifacts

4 artifacts

decoders/decoder_131000.pth

pth · 69.2 MB · SHA-256 b99f0be84eee…5c37 · Hugging Face

Download

decoders/decoder_151000.pth

pth · 69.2 MB · SHA-256 8af97a29d348…0998 · Hugging Face

Download

final_ckpt/ckpt_00360000.pth

pth · 1.27 GB · SHA-256 c8c379ea2d3c…d59c · Hugging Face

Download

semantic_ckpts/hf_1_325000/pytorch_model.bin

bin · 360 MB · SHA-256 c5ddbd7fa246…f527 · Hugging Face

Download

Source excerpts

2 excerpts

--- language: - en tags: - audio - music - codec - neural-audio - audio-compression - transformers pipeline_tag: audio-to-audio library_name: transformers inference: true --- # XCodec Mini - Neural Audio Codec ## Model Description XCodec Mini is a state-of-the-art neural audio codec designed for high-quality music compression and reconstruction. It combines semantic and acoustic encoding approaches to achieve efficient compression while maintaining audio quality. ### Key Features - **Dual Encoding Architecture** - Semantic encoder for high-level musical features - Acoustic encoder for detailed sound information - Multi-scale processing for efficient compression - **Advanced Compression** - Multiple codebooks for flexible quality/size tradeoff - Support for 44.1kHz high-fidelity audio - Separate processing paths for vocals and instrumentals - **Technical Specifications** - Input: Raw audio at 44.1kHz - Output: Compressed representations and reconstructed audio - Model Size: [Add total size] - Compression Ratio: [Add typical ratio] ## Intended Uses - High-quality music compression - Audio archival and storage - Music streaming applications - Audio processing pipelines ## Training Data The model was trained on a diverse dataset of music, including: - Various genres and styles - Vocal and instrumental tracks - High-quality studio recordings ## Performance and Limitations ### Strengths - High-quality audio reconstruction - Efficient compression ratios - Separate handling of vocals and instrumentals - Support for high sample rates ### Limitations - Computationally intensive for real-time applications - Requires significant GPU memory - Best suited for offline processing - May introduce artifacts in extreme compression settings ## Technical Specifications ### Model Architecture 1. **Semantic Encoder** - Based on HuBERT architecture - Captures high-level musical features - Outputs semantic tokens 2. **Acoustic Encoder** - Multi-scale convolutional architecture - Processes detailed sound information - Generates acoustic tokens 3. **Dual Decoders** - Separate decoders for vocals and instrumentals - Multi-stage reconstruction process - Quality-focused design ### Input Requirements - Audio Format: WAV/MP3 - Sample Rate: 44.1kHz - Channels: Mono/Stereo - Bit Depth: 16-bit ### Output Format - Reconstructed Audio: 44.1kHz WAV - Int...

Source context: 0 downloads · 0 likes · Pipeline audio-to-audio · Library transformers · Repo Nathan9/xcodec_mini_infer