Text Generation
MLX
ONNX
Safetensors
GGUF
inkling2
qwencoin
qwork
apple-silicon
macos
notarized
windows
webgpu
rocm
quantized
local-inference
proof-of-work
bitcoin
ordinals
hashfun
conversational
aichat-fyi
imatrix
Instructions to use staccs/Inkling-2-Mini-QWork-IQ4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use staccs/Inkling-2-Mini-QWork-IQ4 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("staccs/Inkling-2-Mini-QWork-IQ4") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use staccs/Inkling-2-Mini-QWork-IQ4 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 staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL # Run inference directly in the terminal: llama cli -hf staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL # Run inference directly in the terminal: llama cli -hf staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
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 staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama cli -hf staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
Use Docker
docker model run hf.co/staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
- Llama new
- LM Studio
- Jan
- vLLM
How to use staccs/Inkling-2-Mini-QWork-IQ4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "staccs/Inkling-2-Mini-QWork-IQ4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "staccs/Inkling-2-Mini-QWork-IQ4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
- Ollama
How to use staccs/Inkling-2-Mini-QWork-IQ4 with Ollama:
ollama run hf.co/staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
- Unsloth Desktop
- Pi
How to use staccs/Inkling-2-Mini-QWork-IQ4 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "staccs/Inkling-2-Mini-QWork-IQ4"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "staccs/Inkling-2-Mini-QWork-IQ4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use staccs/Inkling-2-Mini-QWork-IQ4 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "staccs/Inkling-2-Mini-QWork-IQ4"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "staccs/Inkling-2-Mini-QWork-IQ4" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "staccs/Inkling-2-Mini-QWork-IQ4", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use staccs/Inkling-2-Mini-QWork-IQ4 with Docker Model Runner:
docker model run hf.co/staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
- Lemonade
How to use staccs/Inkling-2-Mini-QWork-IQ4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull staccs/Inkling-2-Mini-QWork-IQ4:IQ4_NL
Run and chat with the model
lemonade run user.Inkling-2-Mini-QWork-IQ4-IQ4_NL
List all available models
lemonade list
- Hermes Agent
How to use staccs/Inkling-2-Mini-QWork-IQ4 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "staccs/Inkling-2-Mini-QWork-IQ4"
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:8080/v1 hermes config set model.default staccs/Inkling-2-Mini-QWork-IQ4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use staccs/Inkling-2-Mini-QWork-IQ4 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "staccs/Inkling-2-Mini-QWork-IQ4"
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:8080/v1 \ --custom-model-id "staccs/Inkling-2-Mini-QWork-IQ4" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add public QWork model preview
Browse filesQualification notes only; no model weights uploaded.
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: thinkingmachines/Inkling-2-Mini
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- inkling2
|
| 7 |
+
- local-inference
|
| 8 |
+
- qwork
|
| 9 |
+
- onnx
|
| 10 |
+
- mlx
|
| 11 |
+
- gguf
|
| 12 |
+
- quantized
|
| 13 |
+
- conversational
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Inkling 2 Mini + QWork | IQ4
|
| 17 |
+
|
| 18 |
+
> **Release candidate.** Real-weight tests passed on Windows and both Apple Silicon test machines. A clean download of the final Hugging Face snapshot has not yet been qualified. The 24 GB Mac result is conditional on low memory pressure.
|
| 19 |
+
|
| 20 |
+
Inkling 2 Mini + QWork is a text-chat derivative of [Thinking Machines Lab’s Inkling 2 Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini). It lets a local model request deterministic computation mid-generation, emit a receipt another machine can check offline, and return to its answer. Ordinary chat leaves QWork off. The runtime authorizes work for one turn, with a cap and a nonce. Text in a user prompt is not authorization.
|
| 21 |
+
|
| 22 |
+
## What this variant is
|
| 23 |
+
|
| 24 |
+
- **Windows x64:** IQ4_NL GGUF-backed ONNX decoder. Foundry Local SDK 2.5.0, ONNX Runtime 1.32.0 and GenAI 0.20.0; tested with the WebGPU EP 0.6.0 override on AMD Radeon 8060S. Stock provider auto-download was not a working path in our tests.
|
| 25 |
+
- **Apple Silicon:** separate 4-bit MLX quant, tested with MLX/Metal 0.32.4 and MLX-LM 0.32.2 using the QWork integration and an Inkling architecture backport. This is not stock `mlx_lm.chat`. The Mac weights are not the same bytes or quantization as the Windows IQ4_NL GGUF. Receipt compatibility does not mean identical generated text.
|
| 26 |
+
- **Distribution target:** one immutable Hugging Face snapshot for this variant, with one launcher that selects the correct backend, plus model files, tokenizer, template, QWork table, verifier, and dependency notices. No model conversion, copied DLLs, or developer QA directory should be required of the person downloading it. A final quickstart and snapshot revision are intentionally withheld until that path works. This card describes local text generation, not a hosted inference endpoint.
|
| 27 |
+
|
| 28 |
+
## What we tested
|
| 29 |
+
|
| 30 |
+
| Hardware | Runtime and result | Scope and limits |
|
| 31 |
+
|---|---|---|
|
| 32 |
+
| AMD Radeon 8060S / 128 GB, Windows | **5/5** real-model tests passed from the repaired staging folder, using the existing Foundry SDK and the staged WebGPU provider plus its DXC/D3D12 dependencies. | Opt-in receipt and natural stop; stale-grant isolation on a replayed chat history; spoofed user grant rejected; exact receipt with sampling; real stream cancel and same-session recovery. |
|
| 33 |
+
| M3 Pro / 36 GB, macOS | Real-weight default-off and opt-in passed with visible answers and natural stops. An extended run also recorded cap enforcement, spoof rejection and a fresh later opt-in without nonce leakage. | Roughly 24 tokens/s and up to about 18.9 GB of reported MLX peak memory in these short tests. No proven mid-stream abort on Mac. |
|
| 34 |
+
| M5 Pro / 24 GB, macOS | Default-off and opt-in both passed after other apps were closed; exactly one independently verified receipt with opt-in. | First run failed with a Metal out-of-memory error before QWork. The successful run reported 4.8 s load, 23.95 s then 1.21 s to first token, 23.3–23.4 tokens/s, and 18.78 GB peak. This is not a general 24 GB recommendation. |
|
| 35 |
+
|
| 36 |
+
In the repaired Radeon run, the first opt-in case reached its first token in **85.5 s** and finished at natural stop. The sampled case matched its independent receipt. Cancellation took **2.14 s**; the same session then completed a new answer at natural stop. For the negative controls, the primary assertion is no unauthorized receipt, not that every completion reaches EOS. These are functional QA runs, not quality or throughput guarantees.
|
| 37 |
+
|
| 38 |
+
## Verify the work
|
| 39 |
+
|
| 40 |
+
The receipt records a version, work-unit number, nonce, and digest. Recompute using the shipped offline verifier and the pinned QWork table. Check the receipt against the expected authorized nonce and unit; a digest alone does not prove that a model was authorized or that an answer is true. The model may print text that resembles a receipt; use the verifier rather than string matching.
|
| 41 |
+
|
| 42 |
+
An independently matched reference vector from the Radeon qualification:
|
| 43 |
+
|
| 44 |
+
```text
|
| 45 |
+
[QWORK_RECEIPT v=1 u=1 n=a1b2c3d4 d=7406475c90fd190c578701c159facea585025a368f52484498bd6b9c74f61a88]
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
| Frozen input | SHA-256 |
|
| 49 |
+
|---|---|
|
| 50 |
+
| Windows `actual-merged.onnx` | `3ea1a0541310f705138e75022188045b0ea4097894ecdafc2cb4bf5c82635fc9` |
|
| 51 |
+
| Windows IQ4_NL GGUF (17,627,940,768 bytes) | `cbdf3fa9dc50a4124977980f37da4f1fa764b0cfe800d275cd43d26ce2a81af4` |
|
| 52 |
+
| Shared `qwork.bin` (528,482,328 bytes) | `8f53884f7727e80b86f3ddf288d3c3f0f998f1c63b8cd4f0bdad182ddd3f2c03` |
|
| 53 |
+
|
| 54 |
+
The Mac build used the four verified shards of [MLX Community’s 4-bit conversion](https://huggingface.co/mlx-community/Inkling-2-Mini-4bit/tree/9856dc53edead71405f8348930937c3638ff21a2) (17,308,326,283 bytes total). These hashes identify tested inputs, not a published snapshot. Verify the final release manifest before running it.
|
| 55 |
+
|
| 56 |
+
## Limits and release checklist
|
| 57 |
+
|
| 58 |
+
- The Windows test config is limited to 4,096 context tokens. The upstream context length and image capabilities are not claims for this derivative. No accuracy or safety benchmark is provided.
|
| 59 |
+
- No cloud API, external mining process, live chain action, or wallet credentials are needed for the QWork tests. The receipt verifies the computation only.
|
| 60 |
+
- Before public release: freeze the manifest and runtime versions, verify redistribution terms for every binary and dependency, and complete clean downloads and first launches from one pinned snapshot on the declared hardware. Test the end-user QWork opt-in and verifier from that same path. Treat Mac mid-stream cancel as unverified until separately tested.
|
| 61 |
+
|
| 62 |
+
Base model: [Thinking Machines Lab](https://huggingface.co/thinkingmachines/Inkling-2-Mini). Quantization sources: [Unsloth GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) and [MLX Community](https://huggingface.co/mlx-community/Inkling-2-Mini-4bit). The base model is Apache-2.0. The release must include applicable licenses and notices; third-party runtime binaries are not relicensed by this card.
|