coqui-trainer-0.0.5
توضیحات
General purpose model trainer for PyTorch that is more flexible than it should be, by 🐸Coqui.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | coqui-trainer-0.0.5 |
| نام | coqui-trainer |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Eren Gölge |
| ایمیل نویسنده | egolge@coqui.ai |
| آدرس صفحه اصلی | https://github.com/coqui-ai/Trainer |
| آدرس اینترنتی | https://pypi.org/project/coqui-trainer/ |
| مجوز | Apache2 |
<p align="center"><img src="https://user-images.githubusercontent.com/1402048/151947958-0bcadf38-3a82-4b4e-96b4-a38d3721d737.png" align="right" height="255px" /></p>
# 👟 Trainer
An opinionated general purpose model trainer on PyTorch with a simple code base.
## Installation
From Github:
```console
git clone https://github.com/coqui-ai/Trainer
cd Trainer
make install
```
From PyPI:
```console
pip install coqui-trainer
```
Prefer installing from Github as it is more stable.
## Implementing a model
Subclass and overload the functions in the [```TrainerModel()```](trainer/model.py)
## Training a model
See the test script [here](tests/test_train_mnist.py) training a basic MNIST model.
## Training with DDP
```console
$ python -m trainer.distribute --script path/to/your/train.py --gpus "0,1"
```
We don't use ```.spawn()``` to initiate multi-gpu training since it causes certain limitations.
- Everything must the pickable.
- ```.spawn()``` trains the model in subprocesses and the model in the main process is not updated.
- DataLoader with N processes gets really slow when the N is large.
## Supported Experiment Loggers
- [Tensorboard](https://www.tensorflow.org/tensorboard) - actively maintained
- [ClearML](https://clear.ml/) - actively maintained
- [MLFlow](https://mlflow.org/)
- [Aim](https://aimstack.io/)
- [WandDB](https://wandb.ai/)
To add a new logger, you must subclass [BaseDashboardLogger](trainer/logging/base_dash_logger.py) and overload its functions.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0, <3.10 | Python |
نحوه نصب
نصب پکیج whl coqui-trainer-0.0.5:
pip install coqui-trainer-0.0.5.whl
نصب پکیج tar.gz coqui-trainer-0.0.5:
pip install coqui-trainer-0.0.5.tar.gz