readme : add example for main
This commit is contained in:
parent
e33002d42e
commit
324e823afd
1 changed files with 5 additions and 1 deletions
|
@ -255,7 +255,11 @@ Using Metal allows the computation to be executed on the GPU for Apple devices:
|
|||
```
|
||||
|
||||
When built with Metal support, you can enable GPU inference with the `--gpu-layers|-ngl` command-line argument.
|
||||
Any value larger than 0 will offload the computation to the GPU.
|
||||
Any value larger than 0 will offload the computation to the GPU. For example:
|
||||
|
||||
```bash
|
||||
./main -m ./models/7B/ggml-model-q4_0.bin -n 128 -ngl 1
|
||||
```
|
||||
|
||||
### BLAS Build
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue