Text Generation
Transformers
Safetensors
English
qwen3_5_text
reasoning
efficient-reasoning
concise-reasoning
qwen3.5
conversational
Instructions to use Boesgaard/Concise-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Boesgaard/Concise-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Boesgaard/Concise-9B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Boesgaard/Concise-9B") model = AutoModelForCausalLM.from_pretrained("Boesgaard/Concise-9B", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Boesgaard/Concise-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Boesgaard/Concise-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Boesgaard/Concise-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Boesgaard/Concise-9B
- SGLang
How to use Boesgaard/Concise-9B 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 "Boesgaard/Concise-9B" \ --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": "Boesgaard/Concise-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Boesgaard/Concise-9B" \ --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": "Boesgaard/Concise-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Boesgaard/Concise-9B with Docker Model Runner:
docker model run hf.co/Boesgaard/Concise-9B
Initial private upload
Browse filesFiles changed (8)
- .gitattributes+1
- README.mdAdded+98
- chat_template.jinjaAdded+154
- config.jsonAdded+83
- generation_config.jsonAdded+9
- model.safetensorsAdded+3
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+31
32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798---license: apache-2.0base_model: Qwen/Qwen3.5-9Bbase_model_relation: finetunelibrary_name: transformerspipeline_tag: text-generationlanguage:- entags:- reasoning- efficient-reasoning- concise-reasoning- qwen3.5---

# Concise-9B
Concise-9B is [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) after two rounds of **concise self-training**. Each round is on-policy rejection-sampling fine-tuning that keeps the two shortest correct samples per problem, plus a small share of answer-synthesis targets. It generates about two thirds of the parent's tokens at matched accuracy, mostly by no longer reopening answers it has already settled.
It is a text-only checkpoint (`Qwen3_5ForCausalLM`, 32 layers, BF16). The parent's vision encoder is not included.
## Results
From the Concise-9B paper:
| | Qwen3.5-9B | Concise-9B ||---|---|---|| Generated tokens, 8,983 held-out problems at a 32K thinking budget | 1.00× | **0.66×** || Accuracy difference (95% CI) | — | −0.20 [−0.77, +0.36] points, equivalent within ±1 || Share of thinking after the answer is fixed (hard / confirmation sets) | 54% / 64% | 41% / 48% |

*Development suite (498 problems): accuracy against generated tokens per problem. Lines are majorities of k = 1–4 traces (numbers mark k; k = 1 is the eight-draw single-sample mean), and stars mark escalation from 2 to 4 traces. Concise-9B reaches the parent's accuracy at far fewer tokens.*
**What the saving is made of:** 86% [83, 90] of the thinking tokens Concise-9B saves come *after* its answer has already formed. Answers are tracked with forced readouts every 2,048 thinking tokens.
The held-out problems cover competition and hard mathematics, SuperGPQA, a five-area confirmation set and MMLU-Pro.

*(a) Mean thinking tokens per trace before and after each trace's answer is fixed. (b) The share of traces whose answer is already fixed at each point of the thinking.*
**Limitation:** when traces are allowed to continue to 80K tokens, Concise-9B solves 25 fewer of 1,276 hard problems (−25 [−49, −1]), mostly in competition mathematics, where very long reasoning pays. For the hardest problems with unlimited budgets, the parent can be the better choice.
## Where the brevity lives
A companion study, *Delivered, Not Discovered*, transplants Concise-9B's feed-forward (MLP) weights into the parent. The transplant recovers 83% of the token saving with accuracy intact, and restoring the parent's MLPs inside Concise-9B undoes 77% of it. The study also finds that the trained model does not reach answers sooner. It stops reopening them, while keeping its verification rate.
The exact transplant is released as [Boesgaard/Concise-9B-MLP-patch](https://huggingface.co/Boesgaard/Concise-9B-MLP-patch), and the evaluation data as [Boesgaard/delivered-not-discovered](https://huggingface.co/datasets/Boesgaard/delivered-not-discovered).
## Usage
Requires `transformers >= 5.3.0`.
```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Boesgaard/Concise-9B"tok = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
messages = [{"role": "user", "content": "What is the sum of the first 50 odd numbers?"}]inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)out = model.generate(inputs, max_new_tokens=32768, do_sample=True, temperature=1.0, top_p=0.95, top_k=20)print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=False))```
**Recommended sampling:** the same settings as the parent's thinking mode, which were used for every reported result.- temperature 1.0, top-p 0.95, top-k 20;- presence penalty 1.5, in servers that support it (e.g. vLLM);- a 32,768-token budget.
Keep thinking mode on. The model was trained and evaluated with it.
## Training
- **Parent:** Qwen/Qwen3.5-9B, at revision `c202236235762e1c871ad0ccb60c8ee5ba337b9a`.- **Method:** two rounds of full-parameter supervised fine-tuning on the model's own correct, shortest reasoning traces (14.7M and 15.1M target tokens). Self-training for concise reasoning follows prior work (Munkhbat et al., 2025). The contribution here is the measurement and the 9B result.
## Citation
```bibtex@misc{lorup2026concise9b, author = {Lorup, Alexander Boesgaard}, title = {{Concise-9B}: Removing the Slack from a Reasoning Model's Thinking}, year = {2026}, eprint = {2611.02278}, archivePrefix = {arXiv}, url = {https://arxiv.org/abs/2611.02278}}```
## License
Apache-2.0, inherited from Qwen3.5-9B.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{%- set image_count = namespace(value=0) %}{%- set video_count = namespace(value=0) %}{%- macro render_content(content, do_vision_count, is_system_content=false) %} {%- if content is string %} {{- content }} {%- elif content is iterable and content is not mapping %} {%- for item in content %} {%- if 'image' in item or 'image_url' in item or item.type == 'image' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain images.') }} {%- endif %} {%- if do_vision_count %} {%- set image_count.value = image_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Picture ' ~ image_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|image_pad|><|vision_end|>' }} {%- elif 'video' in item or item.type == 'video' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain videos.') }} {%- endif %} {%- if do_vision_count %} {%- set video_count.value = video_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Video ' ~ video_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|video_pad|><|vision_end|>' }} {%- elif 'text' in item %} {{- item.text }} {%- else %} {{- raise_exception('Unexpected item type in content.') }} {%- endif %} {%- endfor %} {%- elif content is none or content is undefined %} {{- '' }} {%- else %} {{- raise_exception('Unexpected content type.') }} {%- endif %}{%- endmacro %}{%- if not messages %} {{- raise_exception('No messages provided.') }}{%- endif %}{%- if tools and tools is iterable and tools is not mapping %} {{- '<|im_start|>system\n' }} {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>" }} {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {%- if content %} {{- '\n\n' + content }} {%- endif %} {%- endif %} {{- '<|im_end|>\n' }}{%- else %} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" %} {%- set content = render_content(message.content, false)|trim %} {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %} {%- endif %}{%- endfor %}{%- if ns.multi_step_tool %} {{- raise_exception('No user query found in messages.') }}{%- endif %}{%- for message in messages %} {%- set content = render_content(message.content, true)|trim %} {%- if message.role == "system" %} {%- if not loop.first %} {{- raise_exception('System message must be at the beginning.') }} {%- endif %} {%- elif message.role == "user" %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- set reasoning_content = reasoning_content|trim %} {%- if loop.index0 > ns.last_query_index %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {%- if loop.first %} {%- if content|trim %} {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- else %} {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- else %} {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- if tool_call.arguments is defined %} {%- for args_name, args_value in tool_call.arguments|items %} {{- '<parameter=' + args_name + '>\n' }} {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %} {{- args_value }} {{- '\n</parameter>\n' }} {%- endfor %} {%- endif %} {{- '</function>\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.previtem and loop.previtem.role != "tool" %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if not loop.last and loop.nextitem.role != "tool" %} {{- '<|im_end|>\n' }} {%- elif loop.last %} {{- '<|im_end|>\n' }} {%- endif %} {%- else %} {{- raise_exception('Unexpected message role.') }} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- else %} {{- '<think>\n' }} {%- endif %}{%- endif %}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ "architectures": [ "Qwen3_5ForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "attn_output_gate": true, "bos_token_id": null, "dtype": "bfloat16", "eos_token_id": 248044, "full_attention_interval": 4, "head_dim": 256, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 12288, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 128, "linear_num_key_heads": 16, "linear_num_value_heads": 32, "linear_value_head_dim": 128, "mamba_ssm_dtype": "float32", "max_position_embeddings": 262144, "mlp_only_layers": [], "model_type": "qwen3_5_text", "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "num_attention_heads": 16, "num_hidden_layers": 32, "num_key_value_heads": 4, "pad_token_id": null, "partial_rotary_factor": 0.25, "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "partial_rotary_factor": 0.25, "rope_theta": 10000000, "rope_type": "default" }, "tie_word_embeddings": false, "transformers_version": "5.3.0", "use_cache": false, "vocab_size": 248320}123456789{ "do_sample": true, "eos_token_id": 248044, "temperature": 1.0, "top_k": 20, "top_p": 0.95, "transformers_version": "5.3.0", "use_cache": true}123version https://git-lfs.github.com/spec/v1oid sha256:b2d28c61708cf5b06444132b4f5f0b88cfdf7133a5d0f49b169049159c8768e0size 17907663008123version https://git-lfs.github.com/spec/v1oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4size 1998934312345678910111213141516171819202122232425262728293031{ "add_prefix_space": false, "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "image_token": "<|image_pad|>", "is_local": true, "model_max_length": 262144, "model_specific_special_tokens": { "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "image_token": "<|image_pad|>", "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>" }, "pad_token": "<|endoftext|>", "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+", "split_special_tokens": false, "tokenizer_class": "TokenizersBackend", "unk_token": null, "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>"}.gitattributes+1
README.mdAdded+98
chat_template.jinjaAdded+154
config.jsonAdded+83
generation_config.jsonAdded+9
model.safetensorsAdded+3
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+31