Instructions to use unsloth/Inkling-2-Mini-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 unsloth/Inkling-2-Mini-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/Inkling-2-Mini-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
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 unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Use Docker
docker model run hf.co/unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use unsloth/Inkling-2-Mini-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/Inkling-2-Mini-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": "unsloth/Inkling-2-Mini-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
- Ollama
How to use unsloth/Inkling-2-Mini-GGUF with Ollama:
ollama run hf.co/unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
- Unsloth Desktop
- Pi
How to use unsloth/Inkling-2-Mini-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use unsloth/Inkling-2-Mini-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
- Lemonade
How to use unsloth/Inkling-2-Mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Run and chat with the model
lemonade run user.Inkling-2-Mini-GGUF-UD-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use unsloth/Inkling-2-Mini-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use unsloth/Inkling-2-Mini-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
[Fix] Inkling 2 Mini blank output / "!!!" loop on Intel Arc B580 (llama.cpp Vulkan Windows)
Posting this to save other Intel Arc Battlemage (B580/B60/B70) users hours of debugging.
The Problem
Running Inkling-2-Mini-UD-Q2_K_XL.gguf on Windows + Intel Arc B580 (12 GB) using mainline llama.cpp (b12777, Vulkan):
- At
temperature: 1.0,/v1/chat/completionsand the web UI generated tokens until the entire context window was full, returning completely blankcontent: ""and noreasoning_content. - At
temperature: 0.0, it repeated!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(NaN logits picking token ID0). - Running the exact same GGUF on CPU (
-ngl 0) worked immediately and returned normal output.
The Fix
Disable Vulkan Cooperative Matrix (COOPMAT) before launching llama-server.exe:
set GGML_VK_DISABLE_COOPMAT=1
set GGML_VK_DISABLE_COOPMAT2=1
Decode speed stayed identical (~35 tok/s on 12 GB Arc B580 alongside other GPU apps), and leaving FP16 enabled keeps prompt prefill fast.
Working 12 GB VRAM / 32K Context .bat Script
A few extra flags that helped fit 32K context cleanly on 12 GB VRAM:
- Make sure you have the post-Nov-23 mainline-compatible GGUF from this repo.
- Use
--fit offsollama.cppnever silently splits layers to CPU. - Use
-ub 128+-ctk q8_0 -ctv q8_0 -fa onto keep the compute buffer and 48-loop KV cache inside 12 GB VRAM. - Use
--no-reasoning-preservefor long agentic/MCP sessions so old thinking blocks don't fill up context.
@echo off
cd /d "C:\path\to\LOCALLLM"
set GGML_VK_DISABLE_COOPMAT=1
set GGML_VK_DISABLE_COOPMAT2=1
.\llama-server.exe ^
-m .\Inkling-2-Mini-UD-Q2_K_XL.gguf ^
-ngl 99 ^
--fit off ^
-np 1 ^
-c 32768 ^
-ub 128 ^
-ctk q8_0 ^
-ctv q8_0 ^
-fa on ^
--jinja ^
--reasoning-effort low ^
--no-reasoning-preserve ^
--temp 1.0 ^
--top-p 1.0 ^
--top-k 0 ^
--min-p 0.0 ^
--host 127.0.0.1 ^
--port 8080 ^
--alias inkling-2-mini
pause
Hope this helps anyone else running Inkling 2 Mini on an Intel Arc B580!
I don't understand why it didn't work on my 4GB AMD Polaris GPU. Although other models like CyberTiel and Mellum2.1 run smoothly on this system, I can only run Inkling 2 by disabling the GPU entirely and using CPU, which becomes extremely slow and unusable. Maybe it is time to upgrade π .
C:\Source\Models\Inkling-2-Mini-UD-Q4_K_XL>llama server --model Inkling-2-Mini-UD-Q4_K_XL.gguf --spec-type draft-mtp --spec-draft-n-max 1 -fa on --cache-type-k q8_0 --cache-type-v q8_0 -np 1 -lm dio --n-cpu-moe 40 --ctx-size 4096 -ub 128
0.00.005.640 I srv llama_server: initializing ...
0.00.113.989 I cmn common_param: common_params_print_info: verbosity = 3 (adjust with the -lv N CLI arg)
0.00.115.419 W srv server_setup: security: no API key is set and CORS allows all origins (see https://github.com/ggml-org/llama.cpp/pull/25655)
0.00.121.850 I srv load_model: loading model 'Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.01.890.856 W operator(): failed to measure the memory of the extra model, fitting without it: failed to create llama_context from model
0.01.890.920 W common_fit_params: failed to fit params to free device memory: model_params::tensor_buft_overrides already set by user, abort
0.02.314.947 W load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
0.04.245.707 W ggml_vulkan: Failed to allocate pinned memory
0.04.245.748 E ggml_backend_cpu_buffer_type_alloc_buffer: failed to allocate buffer of size 721944608
0.04.245.751 E ggml_backend_buft_alloc_buffer_n_default: failed to allocate Vulkan_Host buffer of size 721944576
0.05.895.728 E llama_model_load: error loading model: unable to allocate Vulkan_Host buffer
0.05.895.753 E llama_model_load_from_file_impl: failed to load model
0.05.895.757 E cmn common_init_: failed to load model 'Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.05.895.758 E srv load_model: failed to load model, 'Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.05.895.800 I srv operator(): operator(): cleaning up before exit...
0.05.896.573 E srv server_run_i: exiting due to model loading error
to luckre's issue :
Your crash is actually a RAM allocation error though, not the Intel Arc bug -lm dio forces the whole model into physical RAM instead of mmaping it, so both Vulkan pinned memory and the CPU fallback ran out of space. Try dropping -lm dio and --spec-type draft-mtp and adding --fit off (or testing Q2_K_XL) and it should at least boot.