Add llama.cpp GPU offload option (#2060)

This commit is contained in:
AlphaAtlas 2023-05-14 21:58:11 -04:00 committed by GitHub
parent eee986348c
commit 071f0776ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 5 deletions

View file

@ -230,6 +230,7 @@ Optionally, you can use the following command-line flags:
| `--n_batch` | Maximum number of prompt tokens to batch together when calling llama_eval. |
| `--no-mmap` | Prevent mmap from being used. |
| `--mlock` | Force the system to keep the model in RAM. |
| `--n-gpu-layers N_GPU_LAYERS` | Number of layers to offload to the GPU. Only works if llama-cpp-python was compiled with BLAS. Set this to 1000000000 to offload all layers to the GPU. |
#### GPTQ