Image-Text-to-Text
Transformers
Safetensors
qwen3_5
thinklite
reasoning
efficient-reasoning
qwen3.8
conversational
Instructions to use Sparset/Thinklite-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sparset/Thinklite-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Sparset/Thinklite-27B") 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("Sparset/Thinklite-27B") model = AutoModelForMultimodalLM.from_pretrained("Sparset/Thinklite-27B", 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 Sparset/Thinklite-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sparset/Thinklite-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sparset/Thinklite-27B", "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/Sparset/Thinklite-27B
- SGLang
How to use Sparset/Thinklite-27B 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 "Sparset/Thinklite-27B" \ --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": "Sparset/Thinklite-27B", "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 "Sparset/Thinklite-27B" \ --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": "Sparset/Thinklite-27B", "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 Sparset/Thinklite-27B with Docker Model Runner:
docker model run hf.co/Sparset/Thinklite-27B
Add accuracy retention to the opening and the benchmark tables
Browse files
README.md
CHANGED
|
@@ -12,11 +12,11 @@ tags:
|
|
| 12 |
|
| 13 |
<img src="thinklite-banner.png?v=2" alt="Thinklite-27B: Qwen 3.8 27B made efficient" style="width:100%;max-width:100%;height:auto;display:block;margin-bottom:1em;" />
|
| 14 |
|
| 15 |
-
**Qwen3.8-27B that thinks with half the tokens
|
| 16 |
`reasoning_effort="xhigh"`, Thinklite-27B uses 47% less reasoning than Qwen3.8-27B on average over six benchmarks and
|
| 17 |
-
writes half as many output tokens, so its time-to-final-output (TTFO) is about 2x shorter,
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
<style>
|
| 22 |
.tl-table { display:table !important; width:100% !important; table-layout:fixed !important; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid rgba(246,246,243,0.16); border-radius:0; background:#090909; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; font-size:13px; color:rgba(246,246,243,0.80); }
|
|
@@ -99,6 +99,8 @@ tokenizer and `reasoning_effort` control.
|
|
| 99 |
and [ukisai/Swift-1.5-Qwen3.8-27b](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-27b) (revision `b4c84d42`).
|
| 100 |
- vLLM 0.30.0, bf16 weights, FP8 KV cache, temperature 1.0, top_p 0.95, top_k 20, 64 concurrent requests, one NVIDIA
|
| 101 |
RTX PRO 6000 Blackwell (96 GB). All answers were scored together on one machine.
|
|
|
|
|
|
|
| 102 |
- One sample per question (two on AIME 2025). Answers that hit their cap were rerun once with a 131,072-token cap;
|
| 103 |
truncated or unparseable answers count as incorrect.
|
| 104 |
|
|
@@ -121,6 +123,10 @@ tokenizer and `reasoning_effort` control.
|
|
| 121 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td>97.0</td><td><strong>100.0</strong></td><td>86.5</td><td>90.9</td><td><strong>84.7</strong></td><td><strong>89.0</strong></td><td>91.37</td></tr>
|
| 122 |
<tr><td class="name">Swift-1.5-Qwen3.8-27b</td><td>96.9</td><td><strong>100.0</strong></td><td><strong>86.6</strong></td><td>90.9</td><td><strong>84.7</strong></td><td>87.6</td><td>91.12</td></tr>
|
| 123 |
<tr><td class="name">Qwen3.8-27B</td><td><strong>97.2</strong></td><td>93.3</td><td>86.3</td><td><strong>91.5</strong></td><td>84.0</td><td>88.7</td><td>90.17</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
<tr><td class="section" colspan="8">Reasoning tokens vs Qwen3.8-27B</td></tr>
|
| 125 |
<tr><td class="name tl">Thinklite-27B</td><td class="tl">↓ 63%</td><td class="tl"><strong>↓ 43%</strong></td><td class="tl"><strong>↓ 69%</strong></td><td class="tl">↓ 41%</td><td class="tl"><strong>↓ 38%</strong></td><td class="tl">↓ 28%</td><td class="tl">↓ 47.0%</td></tr>
|
| 126 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td><strong>↓ 68%</strong></td><td>↓ 33%</td><td>↓ 58%</td><td><strong>↓ 51%</strong></td><td>↓ 20%</td><td><strong>↓ 44%</strong></td><td>↓ 45.8%</td></tr>
|
|
@@ -156,6 +162,10 @@ tokenizer and `reasoning_effort` control.
|
|
| 156 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td>97.2</td><td>86.7</td><td><strong>84.8</strong></td><td>85.8</td><td>72.5</td><td><strong>91.5</strong></td><td>86.40</td></tr>
|
| 157 |
<tr><td class="name">Swift-1.5-Qwen3.8-27b</td><td>97.1</td><td><strong>90.0</strong></td><td>84.7</td><td>86.0</td><td><strong>73.3</strong></td><td>91.2</td><td>87.04</td></tr>
|
| 158 |
<tr><td class="name">Qwen3.8-27B</td><td><strong>97.4</strong></td><td><strong>90.0</strong></td><td>84.4</td><td><strong>86.1</strong></td><td>72.5</td><td>90.8</td><td>86.88</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
<tr><td class="section" colspan="8">Reasoning tokens vs Qwen3.8-27B</td></tr>
|
| 160 |
<tr><td class="name tl">Thinklite-27B</td><td class="tl"><strong>↓ 21%</strong></td><td class="tl"><strong>↓ 46%</strong></td><td class="tl"><strong>↓ 23%</strong></td><td class="tl"><strong>↓ 41%</strong></td><td class="tl"><strong>↓ 17%</strong></td><td class="tl"><strong>↓ 19%</strong></td><td class="tl">↓ 28.0%</td></tr>
|
| 161 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td>↓ 12%</td><td>↓ 23%</td><td>↓ 18%</td><td>↓ 19%</td><td>↓ 15%</td><td>↓ 12%</td><td>↓ 16.4%</td></tr>
|
|
|
|
| 12 |
|
| 13 |
<img src="thinklite-banner.png?v=2" alt="Thinklite-27B: Qwen 3.8 27B made efficient" style="width:100%;max-width:100%;height:auto;display:block;margin-bottom:1em;" />
|
| 14 |
|
| 15 |
+
**Qwen3.8-27B that thinks with half the tokens and keeps 99.6% of its accuracy.** At
|
| 16 |
`reasoning_effort="xhigh"`, Thinklite-27B uses 47% less reasoning than Qwen3.8-27B on average over six benchmarks and
|
| 17 |
+
writes half as many output tokens, so its time-to-final-output (TTFO) is about 2x shorter, while it keeps 99.6% of
|
| 18 |
+
the base model's average accuracy (89.8 against 90.2). At `reasoning_effort="low"` it uses 28% less reasoning and
|
| 19 |
+
keeps 97.5% of the base model's accuracy (2.2 points below).
|
| 20 |
|
| 21 |
<style>
|
| 22 |
.tl-table { display:table !important; width:100% !important; table-layout:fixed !important; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid rgba(246,246,243,0.16); border-radius:0; background:#090909; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; font-size:13px; color:rgba(246,246,243,0.80); }
|
|
|
|
| 99 |
and [ukisai/Swift-1.5-Qwen3.8-27b](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-27b) (revision `b4c84d42`).
|
| 100 |
- vLLM 0.30.0, bf16 weights, FP8 KV cache, temperature 1.0, top_p 0.95, top_k 20, 64 concurrent requests, one NVIDIA
|
| 101 |
RTX PRO 6000 Blackwell (96 GB). All answers were scored together on one machine.
|
| 102 |
+
- Accuracy retention is a model's accuracy divided by Qwen3.8-27B's on the same benchmark; its Average divides
|
| 103 |
+
the average accuracies. Values above 100% mean the model scored higher than the base model.
|
| 104 |
- One sample per question (two on AIME 2025). Answers that hit their cap were rerun once with a 131,072-token cap;
|
| 105 |
truncated or unparseable answers count as incorrect.
|
| 106 |
|
|
|
|
| 123 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td>97.0</td><td><strong>100.0</strong></td><td>86.5</td><td>90.9</td><td><strong>84.7</strong></td><td><strong>89.0</strong></td><td>91.37</td></tr>
|
| 124 |
<tr><td class="name">Swift-1.5-Qwen3.8-27b</td><td>96.9</td><td><strong>100.0</strong></td><td><strong>86.6</strong></td><td>90.9</td><td><strong>84.7</strong></td><td>87.6</td><td>91.12</td></tr>
|
| 125 |
<tr><td class="name">Qwen3.8-27B</td><td><strong>97.2</strong></td><td>93.3</td><td>86.3</td><td><strong>91.5</strong></td><td>84.0</td><td>88.7</td><td>90.17</td></tr>
|
| 126 |
+
<tr><td class="section" colspan="8">Accuracy retention vs Qwen3.8-27B</td></tr>
|
| 127 |
+
<tr><td class="name tl">Thinklite-27B</td><td class="tl">99.6%</td><td class="tl">101.8%</td><td class="tl">97.8%</td><td class="tl">97.4%</td><td class="tl"><strong>100.9%</strong></td><td class="tl">100.2%</td><td class="tl">99.6%</td></tr>
|
| 128 |
+
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td><strong>99.8%</strong></td><td><strong>107.1%</strong></td><td>100.2%</td><td><strong>99.4%</strong></td><td><strong>100.9%</strong></td><td><strong>100.4%</strong></td><td><strong>101.3%</strong></td></tr>
|
| 129 |
+
<tr><td class="name">Swift-1.5-Qwen3.8-27b</td><td>99.7%</td><td><strong>107.1%</strong></td><td><strong>100.3%</strong></td><td><strong>99.4%</strong></td><td><strong>100.9%</strong></td><td>98.7%</td><td>101.1%</td></tr>
|
| 130 |
<tr><td class="section" colspan="8">Reasoning tokens vs Qwen3.8-27B</td></tr>
|
| 131 |
<tr><td class="name tl">Thinklite-27B</td><td class="tl">↓ 63%</td><td class="tl"><strong>↓ 43%</strong></td><td class="tl"><strong>↓ 69%</strong></td><td class="tl">↓ 41%</td><td class="tl"><strong>↓ 38%</strong></td><td class="tl">↓ 28%</td><td class="tl">↓ 47.0%</td></tr>
|
| 132 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td><strong>↓ 68%</strong></td><td>↓ 33%</td><td>↓ 58%</td><td><strong>↓ 51%</strong></td><td>↓ 20%</td><td><strong>↓ 44%</strong></td><td>↓ 45.8%</td></tr>
|
|
|
|
| 162 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td>97.2</td><td>86.7</td><td><strong>84.8</strong></td><td>85.8</td><td>72.5</td><td><strong>91.5</strong></td><td>86.40</td></tr>
|
| 163 |
<tr><td class="name">Swift-1.5-Qwen3.8-27b</td><td>97.1</td><td><strong>90.0</strong></td><td>84.7</td><td>86.0</td><td><strong>73.3</strong></td><td>91.2</td><td>87.04</td></tr>
|
| 164 |
<tr><td class="name">Qwen3.8-27B</td><td><strong>97.4</strong></td><td><strong>90.0</strong></td><td>84.4</td><td><strong>86.1</strong></td><td>72.5</td><td>90.8</td><td>86.88</td></tr>
|
| 165 |
+
<tr><td class="section" colspan="8">Accuracy retention vs Qwen3.8-27B</td></tr>
|
| 166 |
+
<tr><td class="name tl">Thinklite-27B</td><td class="tl">99.3%</td><td class="tl">90.7%</td><td class="tl">98.7%</td><td class="tl">97.9%</td><td class="tl">97.9%</td><td class="tl">100.4%</td><td class="tl">97.5%</td></tr>
|
| 167 |
+
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td><strong>99.8%</strong></td><td>96.3%</td><td><strong>100.5%</strong></td><td>99.6%</td><td>100.0%</td><td><strong>100.7%</strong></td><td>99.4%</td></tr>
|
| 168 |
+
<tr><td class="name">Swift-1.5-Qwen3.8-27b</td><td>99.7%</td><td><strong>100.0%</strong></td><td>100.4%</td><td><strong>99.8%</strong></td><td><strong>101.0%</strong></td><td>100.4%</td><td><strong>100.2%</strong></td></tr>
|
| 169 |
<tr><td class="section" colspan="8">Reasoning tokens vs Qwen3.8-27B</td></tr>
|
| 170 |
<tr><td class="name tl">Thinklite-27B</td><td class="tl"><strong>↓ 21%</strong></td><td class="tl"><strong>↓ 46%</strong></td><td class="tl"><strong>↓ 23%</strong></td><td class="tl"><strong>↓ 41%</strong></td><td class="tl"><strong>↓ 17%</strong></td><td class="tl"><strong>↓ 19%</strong></td><td class="tl">↓ 28.0%</td></tr>
|
| 171 |
<tr><td class="name">ThinkingCap-Qwen3.8-27B</td><td>↓ 12%</td><td>↓ 23%</td><td>↓ 18%</td><td>↓ 19%</td><td>↓ 15%</td><td>↓ 12%</td><td>↓ 16.4%</td></tr>
|