Poutyne is compatible with the latest version of PyTorch and Python >= 3.10.
Cite
@misc{Paradis_Poutyne_A_Simplified_2020,
author = {Paradis, Frédérik and Beauchemin, David and Godbout, Mathieu and Alain, Mathieu and Garneau, Nicolas and Otte, Stefan and Tremblay, Alexis and Bélanger, Marc-Antoine and Laviolette, François},
title = {{Poutyne: A Simplified Framework for Deep Learning}},
year = {2020},
url = {https://poutyne.org}
}
Getting started: few seconds to Poutyne
The core data structure of Poutyne is a Model, a way to train your own PyTorch neural networks.
How Poutyne works is that you create your module (neural network) as usual but when comes the time to train it you feed it into the Poutyne Model, which handles all the steps, stats and callbacks, similar to what does.
One of the strengths Poutyne are callbacks. They allow you to save checkpoints, log training statistics and more. See this notebook for an introduction to callbacks. In that vein, Poutyne also offers an ModelBundle class that offers automatic checkpointing, logging and more using callbacks under the hood. Here is an example of usage.
from poutyne import ModelBundle
# Everything is saved in ./saves/my_classification_network
model_bundle = ModelBundle.from_network(
'./saves/my_classification_network', network, optimizer='sgd', task='classif', device=device
)
model_bundle.train_data(train_x, train_y, validation_data=(valid_x, valid_y), epochs=5)
model_bundle.test_data(test_x, test_y)
We welcome user input, whether it is regarding bugs found in the library or feature propositions ! Make sure to have a look at our contributing guidelines for more details on this matter.
Poutyne is LGPLv3 licensed, as found in the LICENSE file.
Why this name, Poutyne?
Poutyne's name comes from poutine, the well-known dish from Quebec. It is usually composed of French fries, squeaky cheese curds and brown gravy. However, in Quebec, poutine also has the meaning of something that is an "ordinary or common subject or activity". Thus, Poutyne will get rid of the ordinary boilerplate code that plain PyTorch training usually entails.