mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
correct
This commit is contained in:
@ -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**
|
||||||
|
Reference in New Issue
Block a user