Skip to content
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

upd llama.cpp docs #1580

Merged
merged 3 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
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
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/hub/gguf-llamacpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ Once installed, you can use the `llama-cli` or `llama-server` as follows:

```bash
llama-cli
--hf-repo lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF \
--hf-file Meta-Llama-3-8B-Instruct-Q8_0.gguf \
-hf bartowski/Llama-3.2-3B-Instruct-GGUF:Q8_0 \
Vaibhavs10 marked this conversation as resolved.
Show resolved Hide resolved
-p "You are a helpful assistant" -cnv
```

Expand All @@ -42,8 +41,7 @@ Additionally, you can invoke an OpenAI spec chat completions endpoint directly u

```bash
llama-server \
--hf-repo lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF \
--hf-file Meta-Llama-3-8B-Instruct-Q8_0.gguf
-hf bartowski/Llama-3.2-3B-Instruct-GGUF:Q8_0
```

After running the server you can simply utilise the endpoint as below:
Expand All @@ -66,6 +64,6 @@ curl http://localhost:8080/v1/chat/completions \
}'
```

Replace `--hf-repo` with any valid Hugging Face hub repo name and `--hf-file` with the GGUF file name in the hub repo - off you go! 🦙
Replace `-hf` with any valid Hugging Face hub repo name - off you go! 🦙

Note: Remember to `build` llama.cpp with `LLAMA_CURL=1` :)
Loading