Instructions to use MaziyarPanahi/Llama-Guard-3-8B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MaziyarPanahi/Llama-Guard-3-8B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/Llama-Guard-3-8B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/Llama-Guard-3-8B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Llama-Guard-3-8B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
- Ollama
How to use MaziyarPanahi/Llama-Guard-3-8B-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
- Unsloth Desktop
- Docker Model Runner
How to use MaziyarPanahi/Llama-Guard-3-8B-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
- Lemonade
How to use MaziyarPanahi/Llama-Guard-3-8B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/Llama-Guard-3-8B-GGUF:Q5_K_M
Run and chat with the model
lemonade run user.Llama-Guard-3-8B-GGUF-Q5_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub (#1)
Browse files- 6e266846efe088efba7f1fd6ea4c0a81031973d4cc23b143ad9a08f4a5844c0b (c64af4d015b0a45d58244a07d7380e69368764fb)
- 1633efbdea5486cf31f7e339f4d208c611884d1874082b8cc78e07df879176a5 (dc1eb154b38bcfaaa5202e7564823643761e0cb9)
- e7de449585348f130ab82798d8a3aec53aaa190e0a47955ad6e4892be264a5e1 (71924804b19d6e73ce9697012bd074567ee00163)
- 6d4ce5265430ac9a19c6f9e6c1515a319f553ae36f4db3d44eca7350069a6bf1 (6dfd3c7af2fe9af670b50c51f5f728eee6152e92)
- f60dd8a7787c3bd99ef654dd7cdb8476dcb27863c9ee5b7d725566f76a51bee0 (239bde34811531416ab590be43b15b71cec6c6fb)
- d6ca50a1c4c17080a8b507cf9b5e0410338793ca280bfd64e1b3373024110b35 (03590daa1c9a6d848028d2834741a948c5c3741d)
- .gitattributes +6 -0
- Llama-Guard-3-8B-GGUF_imatrix.dat +3 -0
- Llama-Guard-3-8B.Q5_K_M.gguf +3 -0
- Llama-Guard-3-8B.Q5_K_S.gguf +3 -0
- Llama-Guard-3-8B.Q6_K.gguf +3 -0
- Llama-Guard-3-8B.Q8_0.gguf +3 -0
- Llama-Guard-3-8B.fp16.gguf +3 -0
- README.md +46 -0
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Llama-Guard-3-8B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Llama-Guard-3-8B.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Llama-Guard-3-8B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Llama-Guard-3-8B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Llama-Guard-3-8B.fp16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Llama-Guard-3-8B-GGUF_imatrix.dat filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91dd71b8b2f16fb7f44445a8cab51ab37c3b6a0f236a63f3f5e101f377ab8d21
|
| 3 |
+
size 4988146
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43da7dec3012bf0f5161a9ffdb5ec9d8423d7704cdc162e755ac410d0f0fac8a
|
| 3 |
+
size 5732989312
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40d00ff58188b314a0689f77318ccab461a679ad4bb33d8f26594a22a4dceb51
|
| 3 |
+
size 5599295872
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10be62a2a0c8f431b4ab48c913f9333450033420cc66a84692774dae05d369c5
|
| 3 |
+
size 6596008320
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c422eca5a0b8205627e360ae4e177222edc82541e0877624fb76edf1be1e4fb
|
| 3 |
+
size 8540772736
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d3a6a54ecf6059473c8cafd5aa5f6b69a5dadccf8163300503d5e5def86c057
|
| 3 |
+
size 16068892832
|
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- quantized
|
| 4 |
+
- 2-bit
|
| 5 |
+
- 3-bit
|
| 6 |
+
- 4-bit
|
| 7 |
+
- 5-bit
|
| 8 |
+
- 6-bit
|
| 9 |
+
- 8-bit
|
| 10 |
+
- GGUF
|
| 11 |
+
- text-generation
|
| 12 |
+
- text-generation
|
| 13 |
+
model_name: Llama-Guard-3-8B-GGUF
|
| 14 |
+
base_model: meta-llama/Llama-Guard-3-8B
|
| 15 |
+
inference: false
|
| 16 |
+
model_creator: meta-llama
|
| 17 |
+
pipeline_tag: text-generation
|
| 18 |
+
quantized_by: MaziyarPanahi
|
| 19 |
+
---
|
| 20 |
+
# [MaziyarPanahi/Llama-Guard-3-8B-GGUF](https://huggingface.co/MaziyarPanahi/Llama-Guard-3-8B-GGUF)
|
| 21 |
+
- Model creator: [meta-llama](https://huggingface.co/meta-llama)
|
| 22 |
+
- Original model: [meta-llama/Llama-Guard-3-8B](https://huggingface.co/meta-llama/Llama-Guard-3-8B)
|
| 23 |
+
|
| 24 |
+
## Description
|
| 25 |
+
[MaziyarPanahi/Llama-Guard-3-8B-GGUF](https://huggingface.co/MaziyarPanahi/Llama-Guard-3-8B-GGUF) contains GGUF format model files for [meta-llama/Llama-Guard-3-8B](https://huggingface.co/meta-llama/Llama-Guard-3-8B).
|
| 26 |
+
|
| 27 |
+
### About GGUF
|
| 28 |
+
|
| 29 |
+
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
|
| 30 |
+
|
| 31 |
+
Here is an incomplete list of clients and libraries that are known to support GGUF:
|
| 32 |
+
|
| 33 |
+
* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
|
| 34 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
| 35 |
+
* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
|
| 36 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
|
| 37 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
|
| 38 |
+
* [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
|
| 39 |
+
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
|
| 40 |
+
* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
|
| 41 |
+
* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
| 42 |
+
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
|
| 43 |
+
|
| 44 |
+
## Special thanks
|
| 45 |
+
|
| 46 |
+
🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|