Starting the book.

This commit is contained in:
Nicolas Patry
2023-07-27 12:41:15 +02:00
parent 75e0448114
commit 6242a1470e
8 changed files with 96 additions and 4 deletions

View File

@ -1 +1,24 @@
# Installation
Start by creating a new app:
```bash
cargo new myapp
cd myapp
cargo add --git https://github.com/LaurentMazare/candle.git candle
```
At this point, candle will be built **without** CUDA support.
To get CUDA support use the feature `cuda`
```bash
cargo add --git https://github.com/LaurentMazare/candle.git candle --features cuda
```
You can check everything works properly:
```bash
cargo build
```
You can also see feature `mkl` which could be interesting to get faster inference on CPU. [Using mkl](./advanced/mkl.md)