Skip to content

Commit

Permalink
Update TORCH_CUDA_VERSION usage (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui authored Feb 10, 2024
1 parent 88f5a3e commit 8f753b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion burn-tensor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Therefore, creating the tape only requires a simple and efficient graph traversa

## Cuda

To run with CUDA set `TORCH_CUDA_VERSION=cu113`.
To run with CUDA set `TORCH_CUDA_VERSION=cu121`.

## Notes

Expand Down
2 changes: 1 addition & 1 deletion examples/mnist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cargo run --example mnist --release --features ndarray # CPU NdAr
cargo run --example mnist --release --features ndarray-blas-openblas # CPU NdArray Backend - f32 - blas with openblas
cargo run --example mnist --release --features ndarray-blas-netlib # CPU NdArray Backend - f32 - blas with netlib
echo "Using tch backend"
export TORCH_CUDA_VERSION=cu113 # Set the cuda version
export TORCH_CUDA_VERSION=cu121 # Set the cuda version
cargo run --example mnist --release --features tch-gpu # GPU Tch Backend - f32
cargo run --example mnist --release --features tch-cpu # CPU Tch Backend - f32
echo "Using wgpu backend"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-regression/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cargo run --example regression --release --features ndarray # CPU
cargo run --example regression --release --features ndarray-blas-openblas # CPU NdArray Backend - f32 - blas with openblas
cargo run --example regression --release --features ndarray-blas-netlib # CPU NdArray Backend - f32 - blas with netlib
echo "Using tch backend"
export TORCH_CUDA_VERSION=cu113 # Set the cuda version
export TORCH_CUDA_VERSION=cu121 # Set the cuda version
cargo run --example regression --release --features tch-gpu # GPU Tch Backend - f32
cargo run --example regression --release --features tch-cpu # CPU Tch Backend - f32
echo "Using wgpu backend"
Expand Down
2 changes: 1 addition & 1 deletion examples/text-classification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd burn
# Use the --release flag to really speed up training.
# Use the f16 feature if your CUDA device supports FP16 (half precision) operations. May not work well on every device.

export TORCH_CUDA_VERSION=cu117 # Set the cuda version (CUDA users)
export TORCH_CUDA_VERSION=cu121 # Set the cuda version (CUDA users)

# AG News
cargo run --example ag-news-train --release --features tch-gpu # Train on the ag news dataset
Expand Down
2 changes: 1 addition & 1 deletion examples/text-generation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ git clone https://github.com/tracel-ai/burn.git
cd burn

# Use the --release flag to really speed up training.
export TORCH_CUDA_VERSION=cu113
export TORCH_CUDA_VERSION=cu121
cargo run --example text-generation --release
```

Expand Down

0 comments on commit 8f753b3

Please sign in to comment.