From 324e823afda77da0caf03203f793d115b3927189 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 4 Jun 2023 18:50:09 +0300 Subject: [PATCH] readme : add example for main --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4628e0cb9..5b71968fa 100644 --- a/README.md +++ b/README.md @@ -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