Instructions to use knoveleng/Concord-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use knoveleng/Concord-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="knoveleng/Concord-2B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("knoveleng/Concord-2B") model = AutoModelForMultimodalLM.from_pretrained("knoveleng/Concord-2B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use knoveleng/Concord-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "knoveleng/Concord-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "knoveleng/Concord-2B", "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/knoveleng/Concord-2B
- SGLang
How to use knoveleng/Concord-2B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "knoveleng/Concord-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "knoveleng/Concord-2B", "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 images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "knoveleng/Concord-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "knoveleng/Concord-2B", "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" } } ] } ] }' - Docker Model Runner
How to use knoveleng/Concord-2B with Docker Model Runner:
docker model run hf.co/knoveleng/Concord-2B
Concord-2B
A 2B decision model: one forward pass, one answer.
Concord /หkษล.kษหd/ (US /หkษหล.kษหrd/), said "KONG-kord": agreement
At a glance ยท Results ยท Quick start ยท The paper behind the recipe ยท Limitations ยท Citation
At a glance
Concord-2B answers multiple-choice decision questions (classification, NLI, routing, question answering with options) by reading the probability of each option letter at the first answer position. It generates no text.
| Base | Qwen/Qwen3.5-2B |
| Built from | KnowLine-2B-Gen1 (Apache-2.0) and joey-1 (MIT) |
| Recipe | KnowLine-2B-Gen1 in all layers + 0.5 ร joey-1 in the MLP matrices of layers 0โ11, then a rank-16 LoRA, merged into the weights |
| Training | One pass of a rank-16 LoRA on 8,000 selected public items; the merge itself needs no training |
| Parameters | 2.3B (text model 1.9B; vision encoder unchanged) |
| Input โ output | Record, question and lettered options โ one probability per option |
| License | Apache-2.0 |
Why use it
- Highest Decision Index average of the ten 2B models in the table below: 69.6, against 68.0 for joey-1 and 65.5 for KnowLine-2B-Gen1.
- Above both ingredients on JevBench: 84.9, against 82.8 and 82.6.
- Keeps KnowLine's accuracy on our private two-task set, which joey-1 loses: 78.8, against 78.9 for KnowLine-2B-Gen1 and 57.1 for joey-1 (see
results.md).
Results
| Model | CLINC150 | JevBench | DI avg (39) |
|---|---|---|---|
| Qwen3.5-2B (base) | 75.8 | 70.3 | 44.0 |
| unee-2b | 81.7 | 77.9 | 52.2 |
| fort-1-2b | 95.0 | 75.5 | 53.3 |
| Jeff-Qwen3.5-2B | 96.7 | 81.4 | 53.3 |
| d3-nano | 99.2 | 80.4 | 59.1 |
| KnowLine-2B-Gen1 | 93.3 | 82.8 | 65.5 |
| karpo-decision-2B | 95.0 | 81.7 | 66.0 |
| joey-1 | 93.3 | 82.6 | 68.0 |
| StartLux-2B-Instantโ | 99.2 | 88.0 | 68.5 |
| Concord-2B | 98.3 | 84.9 | 69.6 |
Accuracy (%). Every model is run with the same prompt and the same option-letter readout, on up to 120 items per
benchmark. The columns shown are the benchmarks where Concord-2B is best or within 1 point of the best; DI avg
always covers all 39 Decision Index benchmarks. Bold = best per column. โ Non-commercial license, so not usable as a merge ingredient. Complete table:
results.md.
Quick start
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
repo = "knoveleng/Concord-2B"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForImageTextToText.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto").eval()
def decide(record, question, options):
letters = [chr(65 + i) for i in range(len(options))]
opts = "\n".join(f"{l}. {o}" for l, o in zip(letters, options))
text = f"{record}\n\nQuestion: {question}\n\nOptions:\n{opts}\n\nAnswer with the label of the best option."
prompt = tok.apply_chat_template([{"role": "user", "content": text}], tokenize=False,
add_generation_prompt=True, enable_thinking=False)
ids = tok(prompt, return_tensors="pt", add_special_tokens=False).to(model.device)
with torch.no_grad():
logits = model(**ids).logits[0, -1]
label_ids = [tok.encode(l, add_special_tokens=False)[0] for l in letters]
probs = torch.softmax(logits[label_ids].float(), -1)
return dict(zip(options, probs.tolist()))
print(decide("Invoice #4411: 3 laptops, shipped to Hanoi, paid by bank transfer.",
"Which department should handle this record?", ["Sales", "IT procurement", "HR", "Legal"]))
{'Sales': 0.060, 'IT procurement': 0.939, 'HR': 0.001, 'Legal': 0.000} # rounded to three decimals
This is the setup every number on this card was measured with. Up to 62 options are supported (the labels AโZ, aโz and 0โ9 are single tokens).
The paper behind the recipe
Concord-2B was built with what we learned in our paper "One Offset, Many Models: A Weight-Space Audit of Decision Models". The paper takes released decision models apart in weight space and measures which part of each release produces its gain. Three of its findings shaped this model:
- Releases of one base share a common part. Much of what decision tuning adds does not depend on the input and is nearly the same from release to release. One strong release already carries it, so averaging many releases is not needed to get it.
- What a release adds beyond the common part is its own, and these gains do not add up. In the paper's audit on Qwen3.5-2B, averaging joey-1 and KnowLine-2B gains 1.8 points over joey-1 alone on the Decision Index, a small part of what either release adds over the base, and it loses KnowLine's accuracy on our private tasks; the average of five releases is 1.8 points below joey-1. So Concord-2B keeps one release at full weight instead of averaging.
- Where a second release helps depends on the layers. Adding joey-1 at half weight to KnowLine-2B-Gen1 raises the Decision Index average by 4.2 points when it enters layers 0โ11 and leaves it unchanged in layers 12โ23, where it instead damages KnowLine's accuracy on our private tasks. So joey-1 enters only the first half, and there only the MLP matrices.
layers 0 โ 11 โ 12 โ 23
KnowLine-2B-Gen1 โโโโโโโ 1.0 โโโโโโโโ โ โโโโโโโ 1.0 โโโโโโโโ all matrices
joey-1 โโโโโโโ 0.5 โโโโโโโโ โ MLP matrices only
rank-16 LoRA polish โโโโโโ merged โโโโโโ โ โโโโโโ merged โโโโโโ
The exact merge is in merge_recipe.json. A last step, one pass of a rank-16 LoRA on 8,000 public items whose label at least half of the ingredient models support, restores the accuracy on one private task that the merge had lowered.
Limitations
- Built for multiple-choice decisions with lettered options. Free-text generation was not evaluated.
- The vision encoder and the multi-token prediction head are the base model's, unchanged and not evaluated.
- All scores come from our own harness with one prompt format; other prompts can give other numbers.
- On our private topic task, Concord-2B is up to 4 points below KnowLine-2B-Gen1 alone.
License and attribution
Apache-2.0. Built from Qwen3.5-2B (Apache-2.0), KnowLine-2B-Gen1 (Apache-2.0) and joey-1 (MIT; terms in LICENSE-joey-1). We thank the authors of these models for releasing them under permissive
licenses.
Citation
The paper is in preparation; this entry will be updated when it is public.
@misc{concord2026,
title = {One Offset, Many Models: A Weight-Space Audit of Decision Models},
author = {{Knovel Engineering}},
year = {2026},
note = {In preparation. Models: https://huggingface.co/knoveleng/Concord-2B, https://huggingface.co/knoveleng/Concord-4B}
}
- Downloads last month
- 13