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
|
@@ -85,3 +85,7 @@ Q3_K_M/grok-2-Q3_K_M-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 85 |
IQ4_XS/grok-2-IQ4_XS-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 86 |
IQ4_XS/grok-2-IQ4_XS-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 87 |
IQ4_XS/grok-2-IQ4_XS-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
IQ4_XS/grok-2-IQ4_XS-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 86 |
IQ4_XS/grok-2-IQ4_XS-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 87 |
IQ4_XS/grok-2-IQ4_XS-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
Q4_0/grok-2-Q4_0-00001-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
Q4_0/grok-2-Q4_0-00002-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
Q4_0/grok-2-Q4_0-00003-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
Q4_0/grok-2-Q4_0-00004-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
|
Q4_0/grok-2-Q4_0-00001-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bfa649feae30916414f2ddc349ce2538ba80e930821c4acff716e50c0cce029
|
| 3 |
+
size 49580977792
|
Q4_0/grok-2-Q4_0-00002-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6ff2a94c9f929ce6e8ddb67246bf8fd52016900bb593c906b8cd5943f329a30
|
| 3 |
+
size 49531473472
|
Q4_0/grok-2-Q4_0-00003-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fff64f300efd36af79e12ebd0f5744cdfa173ea4bc1abbc8cfbfbab255a63a7
|
| 3 |
+
size 49531473472
|
Q4_0/grok-2-Q4_0-00004-of-00004.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45d7041a2f392d2c294955af28f6135639994a519dfd1227fd9761a7074834b3
|
| 3 |
+
size 4472899136
|