Instructions to use Hanish/lq-decide-0.6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hanish/lq-decide-0.6b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hanish/lq-decide-0.6b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Hanish/lq-decide-0.6b") model = AutoModelForCausalLM.from_pretrained("Hanish/lq-decide-0.6b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Hanish/lq-decide-0.6b 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 Hanish/lq-decide-0.6b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Hanish/lq-decide-0.6b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Hanish/lq-decide-0.6b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Hanish/lq-decide-0.6b:Q4_K_M
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 Hanish/lq-decide-0.6b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Hanish/lq-decide-0.6b:Q4_K_M
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 Hanish/lq-decide-0.6b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Hanish/lq-decide-0.6b:Q4_K_M
Use Docker
docker model run hf.co/Hanish/lq-decide-0.6b:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Hanish/lq-decide-0.6b with Ollama:
ollama run hf.co/Hanish/lq-decide-0.6b:Q4_K_M
- Unsloth Desktop
- Pi
How to use Hanish/lq-decide-0.6b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hanish/lq-decide-0.6b: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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Hanish/lq-decide-0.6b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Hanish/lq-decide-0.6b with Docker Model Runner:
docker model run hf.co/Hanish/lq-decide-0.6b:Q4_K_M
- Lemonade
How to use Hanish/lq-decide-0.6b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Hanish/lq-decide-0.6b:Q4_K_M
Run and chat with the model
lemonade run user.lq-decide-0.6b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Hanish/lq-decide-0.6b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hanish/lq-decide-0.6b: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:8080/v1 hermes config set model.default Hanish/lq-decide-0.6b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Hanish/lq-decide-0.6b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Hanish/lq-decide-0.6b: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:8080/v1 \ --custom-model-id "Hanish/lq-decide-0.6b: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"
Run and chat with the model
lemonade run user.lq-decide-0.6b-Q4_K_MList all available models
lemonade listLQ-Decide 0.6B
A small model that answers typed decisions instead of generating text. You give it a state and a question with a fixed set of options; it returns a probability over those options from a single forward pass. No tokens are sampled, so the output cannot be malformed and there is nothing to parse or repair.
Built by Hanish Keloth for LocalQuill, a private on-device AI
keyboard and offline chat app. It is trained from Qwen/Qwen3-0.6B and is small enough to run on a phone.
This is a v1 and it is not state of the art. The numbers below are measured on public held-out fixtures and are printed in full, including the family it is bad at. Read them before you use it.
Results
Evaluated on the two labelled fixtures from the SemIf project, which were never seen in training. Balanced accuracy, three options per item, chance is 0.333.
| authored144 | perturbations108 | |
|---|---|---|
| LQ-Decide 0.6B (bf16) | 0.757 | 0.557 |
| LQ-Decide 0.6B (Q8_0 GGUF) | 0.750 | 0.586 |
| LQ-Decide 0.6B (Q4_K_M GGUF) | 0.703 | — |
| Untrained Qwen3-0.6B, same prompt | 0.512 | — |
| SemIf, Qwen3.5-4B, published | 0.813 | — |
| Jev (TypeSafe, closed), published | 0.883 | — |
Per family, Q8_0:
| family | authored144 | perturbations108 |
|---|---|---|
| rule application | 0.812 | 0.722 |
| evidence interpretation | 0.792 | 0.639 |
| candidate selection | 0.646 | 0.389 |
Known weakness
Candidate selection is weak, and on the perturbation set it is close to chance. That set contains modified variants of the same items, so the gap between 0.646 and 0.389 means the model is leaning on surface wording rather than the distinction being asked about. If your task is "pick which of these two statements satisfies X", this model is not reliable yet. Rule application and evidence interpretation are considerably better.
The model is also below the open 4B alternative on the same fixture. Use LQ-Decide if size and latency matter to you; use a larger model if accuracy matters more.
Calibration
Probabilities are temperature-scaled with a single constant fitted on a held-out split, shipped in calibration.json.
| expected calibration error | |
|---|---|
| raw | 0.172 |
| after T = 2.05 | 0.049 |
Averaging the logits over all option orderings costs nothing in accuracy and improves calibration further on some splits. Apply the temperature before reading the probabilities as confidence.
Latency
Measured with llama.cpp on an Apple M5 Max, 147-token prompts, one decision per request:
| quant | median | p95 | file size |
|---|---|---|---|
| Q4_K_M | 36 ms | 47 ms | 378 MB |
| Q8_0 | 37 ms | 49 ms | 610 MB |
Phone numbers are not published yet. Every latency figure in this space, including this one, comes from a desktop. Do not assume it transfers to a handset.
Use
import torch, json
from transformers import AutoTokenizer, AutoModelForCausalLM
LETTERS = "ABCDEFGHIJKLMNOP"
SYSTEM = ("Apply the supplied criterion to the supplied evidence. Choose exactly one listed option. "
"Respond with only its uppercase letter, with no explanation or reasoning.")
tok = AutoTokenizer.from_pretrained("Hanish/lq-decide-0.6b")
model = AutoModelForCausalLM.from_pretrained("Hanish/lq-decide-0.6b", dtype=torch.bfloat16).eval()
T = json.load(open("calibration.json"))["temperature"] # 2.05
def decide(state, question, options):
payload = {"evidence": state, "criterion": question,
"options": [{"letter": LETTERS[i], "description": d} for i, d in enumerate(options)]}
msgs = [{"role": "system", "content": SYSTEM},
{"role": "user", "content": json.dumps(payload, ensure_ascii=False)}]
text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True, enable_thinking=False)
ids = tok(text, return_tensors="pt")
with torch.no_grad():
logits = model(**ids).logits[0, -1]
sel = torch.tensor([logits[tok.encode(LETTERS[i], add_special_tokens=False)[0]]
for i in range(len(options))]).float()
return torch.softmax(sel / T, -1).tolist()
print(decide(
"The optician ordered replacement lenses. The workshop confirms they have not yet been fitted.",
"Assess the claim: the replacement lenses have been fitted.",
["The evidence establishes the claim",
"The evidence does not establish either",
"The evidence establishes the opposite"]))
The prompt format matters. The model was trained on exactly this template, with options shuffled and the answer letter re-based during training so it reads descriptions rather than positions.
GGUF builds are in this repository. With llama-server, request one token with logprobs and read the probability mass
on the option letters; nothing is generated.
Training
LoRA rank 32 on all projections, merged. Loss on the single answer-letter token only. Options were permuted and the letter set re-based every epoch. 117,096 rows, two epochs, about two hours on one L40S.
Data, all licence-checked, non-commercial sources excluded:
| source | rows | licence |
|---|---|---|
| MNLI, SNLI, WANLI | 60,000 | CC-BY / CC-BY-SA |
| CLINC150, MASSIVE, Banking77 | 36,757 | CC-BY 3.0 / 4.0 |
| BoolQ | 9,427 | CC-BY-SA 3.0 |
| SMS Spam | 5,574 | CC-BY 4.0 (UCI) |
| Synthetic decision families | 29,280 | generated with Ornith-1.5-35B-A3B (MIT) |
The synthetic portion covers three families with fifteen mechanisms each. The intended answer was fixed before generation and the teacher only wrote the surface text, so there is no teacher-labelling noise. The evaluation fixtures were never generated from, trained on, or shown to the teacher.
Limitations
- English only.
- Three to sixteen options; not tested beyond that.
- Weak on candidate selection, as shown above.
- Below larger open models on the same fixture.
- Not compared against Laya or other recent decision models, because those publish on their own benchmarks and this one has not been run on them. Do not read the table above as a ranking against anything not in it.
Credits
Base model Qwen/Qwen3-0.6B (Apache-2.0, Alibaba). Evaluation fixtures from the SemIf project (MIT). Synthetic data
generated with Ornith-1.5-35B-A3B (MIT). The interface pattern follows TypeSafe's Jev, which is a separate closed
product; this model is not affiliated with or endorsed by it.
- Downloads last month
- 70
Pull the model
# Download Lemonade from https://lemonade-server.ai/lemonade pull Hanish/lq-decide-0.6b:Q4_K_M