burn/examples/text-generation
Guillaume Lagrange b422a65a3c
Fix default device (#2432)
2024-10-28 14:40:22 -04:00
..
examples Fix default device (#2432) 2024-10-28 14:40:22 -04:00
src Repeat operation (#2090) 2024-08-02 20:33:47 -04:00
Cargo.toml Combined PRs (#2370) 2024-10-15 09:17:29 -04:00
README.md Update TORCH_CUDA_VERSION usage (#1284) 2024-02-10 12:01:45 -05:00

README.md

Text Generation

Note
This example makes use of the HuggingFace datasets library 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=cu121
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