10000 Update instruction to download GGUF model in mac installation readme by johnccshen · Pull Request #783 · abetlen/llama-cpp-python · GitHub
[go: up one dir, main page]

Skip to content

Update instruction to download GGUF model in mac installation readme #783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
8000
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/install/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ llama-cpp-python         0.1.68

```

**(5) Download a v3 ggml model**
- **ggmlv3**
- file name ends with **q4_0.bin** - indicating it is 4bit quantized, with quantisation method 0
**(5) Download a v3 gguf v2 model**
- **ggufv2**
- file name ends with **Q4_0.gguf** - indicating it is 4bit quantized, with quantisation method 0

https://huggingface.co/TheBloke/open-llama-7b-open-instruct-GGML
https://huggingface.co/TheBloke/CodeLlama-7B-GGUF


**(6) run the llama-cpp-python API server with MacOS Metal GPU support**
```
# config your ggml model path
# make sure it is ggml v3
# make sure it is gguf v2
# make sure it is q4_0
export MODEL=[path to your llama.cpp ggml models]]/[ggml-model-name]]q4_0.bin
export MODEL=[path to your llama.cpp ggml models]]/[ggml-model-name]]Q4_0.gguf
python3 -m llama_cpp.server --model $MODEL --n_gpu_layers 1
```

Expand Down
0