1 # Clone fish-speech and this experiment repo
2 git clone https://github.com/fishaudio/fish-speech.git
3 cd fish-speech-experiments
4
5 # Install dependencies
6 pip install torch einops loguru ormsgpack hydra-core omegaconf safetensors torchaudio soundfile
7
8 # Run all phases
9 python scripts/quantize.py --phase all --output ./output
10
11 # Or run individual phases
12 python scripts/quantize.py --phase 1a # FP8 only
13 python scripts/quantize.py --phase 1b # INT4 only
14 python scripts/quantize.py --phase 2c # INT3 only
1 # Requires HF write token
2 huggingface-cli login
3 python scripts/upload_to_hub.py --output ./output
The reference audio is generated from the base model using a Morgan Freeman-style deep narration:
fish-speech-experiments/
├── scripts/
│ ├── quantize.py # Main quantization + sample generation script
│ ├── run_all_phases.py # Alternative all-in-one script (for HF Jobs)
│ └── upload_to_hub.py # Upload results to HuggingFace Hub
├── output/ # Generated quantized models + samples
│ ├── samples/ # Audio samples from each phase
│ ├── phase1a/ # FP8 quantized model
│ ├── phase1b/ # INT4 quantized model
│ ├── phase2a/ # INT4 all layers
│ ├── phase2b/ # INT8 quantized model
│ ├── phase2c/ # INT3 quantized model
│ ├── phase3a/ # INT2 quantized model
│ ├── phase3b/ # INT2 all layers
│ └── all_results.json # Combined results
├── size_analysis.json # Theoretical size analysis
└── README.md # This file
1 @misc{liao2026fishaudios2technical,
2 title={Fish Audio S2 Technical Report},
3 author={Shijia Liao and Yuxuan Wang and others},
4 year={2026},
5 eprint={2603.08823},
6 archivePrefix={arXiv},
7 primaryClass={cs.SD},
8 }
Quantized models inherit the
Fish Audio Research License .
Research and non-commercial use only.