fix code snippets

This commit is contained in:
Patrick von Platen
2023-08-23 09:04:08 +00:00
parent 7732bf6238
commit c8211fc474

View File

@ -6,7 +6,8 @@
- `nvcc --version` should print your information about your Cuda compiler driver. - `nvcc --version` should print your information about your Cuda compiler driver.
- `nvidia-smi --query-gpu=compute_cap --format=csv` should print your GPUs compute capability, e.g. something - `nvidia-smi --query-gpu=compute_cap --format=csv` should print your GPUs compute capability, e.g. something
like: like:
```
```bash
compute_cap compute_cap
8.9 8.9
``` ```
@ -30,7 +31,7 @@ cargo add --git https://github.com/huggingface/candle.git candle-core --features
Run `cargo build` to make sure everything can be correctly built. Run `cargo build` to make sure everything can be correctly built.
``` ```bash
cargo run cargo run
``` ```
@ -38,7 +39,7 @@ cargo run
Create a new app and add [`candle-core`](https://github.com/huggingface/candle/tree/main/candle-core) as follows: Create a new app and add [`candle-core`](https://github.com/huggingface/candle/tree/main/candle-core) as follows:
``` ```bash
cargo new myapp cargo new myapp
cd myapp cd myapp
cargo add --git https://github.com/huggingface/candle.git candle-core cargo add --git https://github.com/huggingface/candle.git candle-core