coqui-tts-trainer
General purpose model trainer for PyTorch that is more flexible than it should be, by 🐸Coqui.
What it is and what it does
Coqui-tts-trainer is a PyTorch training framework that abstracts away boilerplate training loop code while preserving flexibility for custom optimization logic. It provides opinionated defaults for common tasks—auto-optimization, mixed precision, gradient accumulation, and distributed training via DDP or Hugging Face Accelerate—but allows you to override the optimization cycle entirely when needed. The framework integrates with multiple experiment loggers (TensorBoard, ClearML, MLflow, Aim, WandB) and includes utilities like batch size finder and profiling support.
You define your model by subclassing TrainerModel and overloading its methods, then pass it to a Trainer instance with configuration. The trainer handles the training loop, checkpointing, logging, and device management. It supports both simple auto-optimized training (useful for standard supervised learning) and fully custom optimization loops (useful for GANs and other adversarial setups), making it suitable for researchers and practitioners who want structure without sacrificing control.
Use it for:
- Train standard supervised models with auto-optimization and minimal configuration overhead.
- Implement GAN or multi-network training with custom per-step optimization logic and gradient accumulation.
- Automatically find the largest batch size that fits on your hardware without manual tuning.
- Distribute training across multiple GPUs using DDP or Accelerate without rewriting your model code.
- Profile training performance and memory usage with integrated PyTorch profiler and TensorBoard visualization.
- Log metrics and checkpoints to multiple experiment tracking platforms simultaneously.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A PyTorch model trainer framework that handles training loops, optimization, mixed precision, distributed training, and experiment logging with minimal boilerplate.
Yes. The package is actively maintained, has low install friction, carries a permissive Apache-2.0 license, and solves a real problem—reducing boilerplate in PyTorch training loops while preserving flexibility. It is suitable for both simple supervised learning and advanced custom training scenarios. No known security vulnerabilities. Best for teams already committed to PyTorch who want a structured but not rigid training abstraction.
Install
coqui-tts-trainer on PyPI
pip
pip install coqui-tts-traineruv
uv add coqui-tts-trainerpoetry
poetry add coqui-tts-trainerInstalling coqui-tts-trainer
Before you install
Low install friction with a pure-Python wheel and five lightweight runtime dependencies. Actively maintained as of April 2026 with recent commits.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install coqui-tts-trainer
from trainer import Trainer, TrainerModel
class MyModel(TrainerModel):
def forward(self, batch):
return self.model(batch)
trainer = Trainer(model=MyModel(), ...)
trainer.fit()
Requires PyTorch (not listed as explicit runtime dep but essential for the framework to function).
Verify before relying
- Whether PyTorch is an implicit dependency or must be installed separately.
- Performance characteristics and scalability limits for large-scale distributed training.
- Compatibility with recent PyTorch versions beyond what the classifiers indicate.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — coqpit-config, fsspec, packaging, psutil, tensorboard |
| Maintenance | actively maintained — 126 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 146,934/month — #11,087 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: coqui_tts_trainer-0.4.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
trainerTrainer is a PyTorch model training framework…
permissive · top 15,000 on PyPI
pytorch-lightningPyTorch Lightning wraps PyTorch training code…
permissive · top 5,000 on PyPI
lightningLightning is a framework that organizes PyTorch…
permissive · top 5,000 on PyPI
mmengineMMEngine is a foundational PyTorch training…
permissive · top 5,000 on PyPI
trlTRL provides trainer classes for post-training…
permissive · top 5,000 on PyPI
pytorch-ignitePyTorch Ignite provides a high-level training…
permissive · top 15,000 on PyPI
accelerateAccelerate abstracts away distributed training…
permissive · top 1,000 on PyPI
fairscaleFairScale extends PyTorch with distributed…
permissive · top 15,000 on PyPI
torchtntTNT provides training utilities and tools for…
permissive · top 15,000 on PyPI
setfitSetFit fine-tunes Sentence Transformers for…
permissive · top 15,000 on PyPI