Discover and explore top open-source AI tools and projects—updated daily.
xingchensongLightweight inference engine for high-speed speech synthesis
Top 99.8% on SourcePulse
FlashCosyVoice is a lightweight, pure Python implementation of CosyVoice designed for high-speed offline batch inference. It targets researchers and developers needing efficient voice generation without the complexities of standard vLLM, offering significant speedups and easier customization.
How It Works
This project reimplements CosyVoice's inference pipeline from scratch, integrating optimizations like prefix caching, Torch compilation, and CUDA graphs directly. This approach bypasses the need for external vLLM installations, achieving up to a 9x speedup over native PyTorch inference while maintaining comparable or improved Word Error Rates (WERs). The clean, minimal Python codebase facilitates easier modification and integration of custom sampling methods.
Quick Start & Requirements
pip install git+https://github.com/xingchensong/FlashCosyVoicegit clone https://github.com/xingchensong/FlashCosyVoice && cd FlashCosyVoice && pip install -e .git-lfs (sudo apt-get install git-lfs) and then git clone https://www.modelscope.cn/iic/CosyVoice2-0.5B.git.git-lfs. Specific hardware (e.g., GPU) is implied by the example usage and performance benchmarks.torchrun, with parameters for model path, data list, batch sizes, workers, and precision (fp16_flow).Highlighted Details
cosyvoice/vllm_example.py due to its implementation of ras_sample.Maintenance & Community
The README does not mention specific contributors, sponsorships, or community channels (like Discord/Slack). It acknowledges inspiration from nano-vllm and other CosyVoice-related projects.
Licensing & Compatibility
The license type is not specified in the README. Compatibility for commercial use or closed-source linking cannot be determined without a license.
Limitations & Caveats
4 months ago
Inactive
GeeeekExplorer