This commit is contained in:
Patrick von Platen
2023-08-23 08:54:48 +00:00
parent 7c0ca80d3a
commit 7732bf6238

View File

@ -38,25 +38,16 @@ 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:
```
Start by creating a new app:
```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
``` ```
At this point, candle will be built **without** CUDA support. Finally, run `cargo build` to make sure everything can be correctly built.
To get CUDA support use the `cuda` feature
```bash
cargo add --git https://github.com/huggingface/candle.git candle-core --features cuda
``` ```
cargo run
You can check everything works properly:
```bash
cargo build
``` ```
**With mkl support** **With mkl support**