Instructions to use bharatgenai/sooktam2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bharatgenai/sooktam2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="bharatgenai/sooktam2", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bharatgenai/sooktam2", trust_remote_code=True, device_map="auto") - F5-TTS
How to use bharatgenai/sooktam2 with F5-TTS:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Support for efficient Triton Server deployment (TensorRT-LLM / vLLM / ONNX) for Sooktam-2
Feature Request / Inquiry
I am looking to deploy the Sooktam-2 Indic TTS model in a production environment using NVIDIA Triton Inference Server, and I want to know if there is an officially supported, efficient way to do so.
Current Limitation
Right now, deploying Sooktam-2 on Triton requires using the Triton Python Backend (trust_remote_code=True) paired with Hugging Face pipelines. While this works as a quick Proof of Concept, it is highly inefficient for production due to:
- Python GIL Bottlenecks: Stalls GPU utilization when scaling concurrent requests.
- Lack of Continuous Batching: Standard PyTorch pipelines handle varying audio/text lengths sequentially rather than dynamically stacking them.
- ODE/SDE Solver Overhead: The underlying F5-TTS architecture relies on iterative flow-matching steps that introduce massive CPU-GPU data transfer overhead inside a standard Python wrapper.
Proposed Solution / Request
I would love to see guidance, scripts, or export pipelines to serve Sooktam-2 via a highly optimized C++ engine backend. Specifically:
- TensorRT / TensorRT-LLM Export: An official script to compile the custom F5-TTS transformer layers into an optimized
.engineformat. - vLLM Backend Compatibility: Configuration templates to utilize PagedAttention and continuous batching with Triton's vLLM backend.
- ONNX Graph Definitions: Standardized ONNX weights that natively export the custom remote code layers, bypassing the need for
trust_remote_code=True.
Are there any existing optimization paths, scripts, or benchmarks for low-latency serving of this model? Any help or direction would be greatly appreciated!