Text Generation
GGUF
code
granite
quantized
GGUF
quantization
imat
imatrix
static
16bit
8bit
6bit
5bit
4bit
3bit
2bit
1bit
Eval Results (legacy)
conversational
Instructions to use legraphista/granite-20b-code-instruct-IMat-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 legraphista/granite-20b-code-instruct-IMat-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 legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama cli -hf legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama cli -hf legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama cli -hf legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
Use Docker
docker model run hf.co/legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
- Llama new
- LM Studio
- Jan
- vLLM
How to use legraphista/granite-20b-code-instruct-IMat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "legraphista/granite-20b-code-instruct-IMat-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": "legraphista/granite-20b-code-instruct-IMat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
- Ollama
How to use legraphista/granite-20b-code-instruct-IMat-GGUF with Ollama:
ollama run hf.co/legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
- Unsloth Desktop
- Docker Model Runner
How to use legraphista/granite-20b-code-instruct-IMat-GGUF with Docker Model Runner:
docker model run hf.co/legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
- Lemonade
How to use legraphista/granite-20b-code-instruct-IMat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull legraphista/granite-20b-code-instruct-IMat-GGUF:Q4_K_S
Run and chat with the model
lemonade run user.granite-20b-code-instruct-IMat-GGUF-Q4_K_S
List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -284,7 +284,7 @@ Link: [here](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-G
|
|
| 284 |
| [granite-20b-code-instruct.IQ2_XS.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ2_XS.gguf) | IQ2_XS | 6.16GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 285 |
| [granite-20b-code-instruct.IQ2_XXS.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ2_XXS.gguf) | IQ2_XXS | 5.57GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 286 |
| [granite-20b-code-instruct.IQ1_M.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ1_M.gguf) | IQ1_M | 4.91GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 287 |
-
| granite-20b-code-instruct.IQ1_S | IQ1_S |
|
| 288 |
|
| 289 |
|
| 290 |
## Downloading using huggingface-cli
|
|
|
|
| 284 |
| [granite-20b-code-instruct.IQ2_XS.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ2_XS.gguf) | IQ2_XS | 6.16GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 285 |
| [granite-20b-code-instruct.IQ2_XXS.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ2_XXS.gguf) | IQ2_XXS | 5.57GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 286 |
| [granite-20b-code-instruct.IQ1_M.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ1_M.gguf) | IQ1_M | 4.91GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 287 |
+
| [granite-20b-code-instruct.IQ1_S.gguf](https://huggingface.co/legraphista/granite-20b-code-instruct-IMat-GGUF/blob/main/granite-20b-code-instruct.IQ1_S.gguf) | IQ1_S | 4.52GB | ✅ Available | 🟢 IMatrix | 📦 No
|
| 288 |
|
| 289 |
|
| 290 |
## Downloading using huggingface-cli
|