mirror of
https://github.com/tracel-ai/burn.git
synced 2026-05-31 19:49:48 +09:00
* clean up types traits, remove paradigm trait, improve learner * code quality * book * doc * error in doc * revert TrainStep rename and remove paradigm components * trainstep refactor with assoc types * fix docs * fix warning * comment * remove evaluator step
Text Generation
Note
This example makes use of the HuggingFacedatasetslibrary to download the datasets. Make sure you have Python installed on your computer.
The example can be run like so:
CUDA users
git clone https://github.com/tracel-ai/burn.git
cd burn
# Use the --release flag to really speed up training.
export TORCH_CUDA_VERSION=cu128
cargo run --example text-generation --release
Mac users
git clone https://github.com/tracel-ai/burn.git
cd burn
# Use the --release flag to really speed up training.
cargo run --example text-generation --release