mirror of https://github.com/tracel-ai/burn.git
f7639bd35a
* renaming repeat to repeat_dim * implementing repeat function * renaming repeat files to repeat_dim * renaming part 2 * renaming part 3 * renaming part 4 * renaming part 5 * adding test file * adding unit test * adding rust book documentation * adding function args doc * fixing tests * changing repeat api to match pytorch equivalent * fixing clippy error |
||
---|---|---|
.. | ||
examples | ||
src | ||
Cargo.toml | ||
README.md |
README.md
Text Generation
Note
This example makes use of the HuggingFacedatasets
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