Instructions to use unsloth/grok-2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/grok-2-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/grok-2-GGUF", device_map="auto") - Grok
How to use unsloth/grok-2-GGUF with Grok:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/grok-2-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 unsloth/grok-2-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/grok-2-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/grok-2-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/grok-2-GGUF:UD-Q4_K_XL
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 unsloth/grok-2-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/grok-2-GGUF:UD-Q4_K_XL
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 unsloth/grok-2-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/grok-2-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/grok-2-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use unsloth/grok-2-GGUF with Ollama:
ollama run hf.co/unsloth/grok-2-GGUF:UD-Q4_K_XL
- Unsloth Desktop
- Docker Model Runner
How to use unsloth/grok-2-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/grok-2-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/grok-2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/grok-2-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.grok-2-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files
.gitattributes
CHANGED
|
@@ -105,3 +105,7 @@ UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00002-of-00005.gguf filter=lfs diff=lfs merge=lfs -
|
|
| 105 |
UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00003-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 106 |
UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00004-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 107 |
UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00003-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 106 |
UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00004-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 107 |
UD-Q6_K_XL/grok-2-UD-Q6_K_XL-00005-of-00005.gguf filter=lfs diff=lfs merge=lfs -text
|
| 108 |
+
Q5_K_S/grok-2-Q5_K_S-00001-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
| 109 |
+
Q5_K_S/grok-2-Q5_K_S-00002-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
| 110 |
+
Q5_K_S/grok-2-Q5_K_S-00003-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
| 111 |
+
Q5_K_S/grok-2-Q5_K_S-00004-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
Q5_K_S/grok-2-Q5_K_S-00001-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2f0942532f233c94164251363958becaa81eaf4f7892c94b91a5eca03842ce5
|
| 3 |
+
size 49827160384
|
Q5_K_S/grok-2-Q5_K_S-00002-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a275fa04e998d0a7ec1cacfb3d28466310bbd6a5ed95176fa6044106b8082f56
|
| 3 |
+
size 49971446176
|
Q5_K_S/grok-2-Q5_K_S-00003-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db380a678d2c33e5e36d20c213c37dbd591c15f179f9fef95b1f3721b08b9498
|
| 3 |
+
size 49861246976
|
Q5_K_S/grok-2-Q5_K_S-00004-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eab8c5f46be7ef8bb9f07828d3367892d7b8c62368871d5ee0eb733ac3ec18d8
|
| 3 |
+
size 36206095968
|