Skip to content

Commit

Permalink
readme : add example for main
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jun 4, 2023
1 parent e33002d commit 324e823
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 324e823

Please sign in to comment.