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 image understanding check below the benchmarks
Browse files
README.md
CHANGED
|
@@ -179,6 +179,37 @@ tokenizer and `reasoning_effort` control.
|
|
| 179 |
|
| 180 |
</details>
|
| 181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
## Usage
|
| 183 |
|
| 184 |
**vLLM**
|
|
@@ -222,7 +253,8 @@ Merged bf16 safetensors with the tokenizer, chat template and processor files of
|
|
| 222 |
- At low effort, the average accuracy is 2.2 points below the base model, mostly from AIME 2025 (81.7 vs 90.0).
|
| 223 |
- Long single-answer code was less reliable than the base model's: in the game test above, 1 of 5 games fully worked
|
| 224 |
against 3 of 5.
|
| 225 |
-
- The vision encoder is unchanged from Qwen3.8-27B
|
|
|
|
| 226 |
- No safety tuning beyond the base model's. Check the model on your own tasks before relying on it.
|
| 227 |
|
| 228 |
## License
|
|
|
|
| 179 |
|
| 180 |
</details>
|
| 181 |
|
| 182 |
+
## Image understanding
|
| 183 |
+
|
| 184 |
+
Thinklite-27B accepts images like Qwen3.8-27B. Its training data was text only and its vision encoder is
|
| 185 |
+
byte-for-byte the base model's, so we checked that the fine-tuned language model still reads what it sees: 88 questions
|
| 186 |
+
from six public image datasets, each answerable only from the picture (a chart, a scanned document, an infographic, a
|
| 187 |
+
math figure, an exam diagram or a photo). Both models got the same image and question at `reasoning_effort="low"`,
|
| 188 |
+
with the same seeds and sampling as the benchmarks above.
|
| 189 |
+
|
| 190 |
+
<table class="tl-table">
|
| 191 |
+
<thead>
|
| 192 |
+
<tr><th style="width:26%;text-align:left;padding-left:16px;">Model</th><th>ChartQA</th><th>DocVQA</th><th>InfoVQA</th><th>MathVista</th><th>MMMU</th><th>A-OKVQA</th><th>Average</th></tr>
|
| 193 |
+
</thead>
|
| 194 |
+
<tbody>
|
| 195 |
+
<tr><td class="section" colspan="8">Score (%)</td></tr>
|
| 196 |
+
<tr><td class="name tl">Thinklite-27B</td><td class="tl">100.0</td><td class="tl">100.0</td><td class="tl"><strong>91.1</strong></td><td class="tl">87.5</td><td class="tl">100.0</td><td class="tl">87.5</td><td class="tl"><strong>94.35</strong></td></tr>
|
| 197 |
+
<tr><td class="name">Qwen3.8-27B</td><td>100.0</td><td>100.0</td><td>88.1</td><td>87.5</td><td>100.0</td><td>87.5</td><td>93.85</td></tr>
|
| 198 |
+
<tr><td class="section" colspan="8">Reasoning tokens vs Qwen3.8-27B</td></tr>
|
| 199 |
+
<tr><td class="name tl">Thinklite-27B</td><td class="tl">↓ 15%</td><td class="tl">↓ 15%</td><td class="tl">↓ 32%</td><td class="tl">↓ 37%</td><td class="tl">↓ 30%</td><td class="tl">↓ 15%</td><td class="tl">↓ 24.0%</td></tr>
|
| 200 |
+
</tbody>
|
| 201 |
+
</table>
|
| 202 |
+
|
| 203 |
+
- 16 questions per dataset (12 for InfographicVQA and MMMU), a seeded random sample of each validation or testmini
|
| 204 |
+
split. Scores: ChartQA relaxed accuracy (numbers within 5%), DocVQA and InfographicVQA ANLS, multiple-choice or exact
|
| 205 |
+
accuracy for MathVista, MMMU and A-OKVQA. No answer was cut off or unparseable.
|
| 206 |
+
- Both models answered the same 83 of 88 questions correctly; the only score difference is partial ANLS credit on one
|
| 207 |
+
InfographicVQA answer.
|
| 208 |
+
- 18 of the questions (3 per dataset) also ran at `reasoning_effort="xhigh"`: Thinklite-27B answered 17 correctly
|
| 209 |
+
and Qwen3.8-27B 16, with 52% less reasoning per answer (758 vs 1,565 tokens).
|
| 210 |
+
- This is a check, not a full benchmark: one question moves a dataset's score by 6 to 8 points. It shows that image
|
| 211 |
+
understanding is kept, not that it improved.
|
| 212 |
+
|
| 213 |
## Usage
|
| 214 |
|
| 215 |
**vLLM**
|
|
|
|
| 253 |
- At low effort, the average accuracy is 2.2 points below the base model, mostly from AIME 2025 (81.7 vs 90.0).
|
| 254 |
- Long single-answer code was less reliable than the base model's: in the game test above, 1 of 5 games fully worked
|
| 255 |
against 3 of 5.
|
| 256 |
+
- The vision encoder is unchanged from Qwen3.8-27B and training data was text only; image understanding was checked
|
| 257 |
+
on 88 questions, not a full vision benchmark.
|
| 258 |
- No safety tuning beyond the base model's. Check the model on your own tasks before relying on it.
|
| 259 |
|
| 260 |
## License
|