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
Model card: links point at Sparset/Thinklite-27B
Browse files
README.md
CHANGED
|
@@ -62,9 +62,7 @@ points below the base model.
|
|
| 62 |
|
| 63 |
## Side-by-side comparison
|
| 64 |
|
| 65 |
-
<
|
| 66 |
-
but update it to https://huggingface.co/Sparset/thinklite-27B/resolve/main/thinklite-side-by-side.mp4 -->
|
| 67 |
-
<video src="https://huggingface.co/Mintzs/thinklite-27B-v5/resolve/main/thinklite-side-by-side.mp4" controls autoplay muted loop playsinline style="width:100%;height:auto;display:block;"></video>
|
| 68 |
|
| 69 |
Qwen3.8-27B and Thinklite-27B get the same debugging prompt (retry code plus two logs: find the duplicate charges to
|
| 70 |
refund and the fix) with the same seed, each model on one NVIDIA RTX PRO 6000 serving 20 requests at once. Both answer correctly; Thinklite-27B is done
|
|
@@ -174,14 +172,14 @@ tokenizer and `reasoning_effort` control.
|
|
| 174 |
**vLLM**
|
| 175 |
|
| 176 |
```bash
|
| 177 |
-
vllm serve Sparset/
|
| 178 |
```
|
| 179 |
|
| 180 |
```python
|
| 181 |
from openai import OpenAI
|
| 182 |
client = OpenAI(base_url="http://localhost:8000/v1", api_key="-")
|
| 183 |
reply = client.chat.completions.create(
|
| 184 |
-
model="Sparset/
|
| 185 |
messages=[{"role": "user", "content": "How many primes are there below 100?"}],
|
| 186 |
temperature=1.0, top_p=0.95,
|
| 187 |
extra_body={"top_k": 20, "chat_template_kwargs": {"enable_thinking": True, "reasoning_effort": "xhigh"}},
|
|
@@ -196,8 +194,8 @@ temperature 1.0, top_p 0.95 and top_k 20, as recommended for the base model.
|
|
| 196 |
|
| 197 |
```python
|
| 198 |
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 199 |
-
model = AutoModelForImageTextToText.from_pretrained("Sparset/
|
| 200 |
-
processor = AutoProcessor.from_pretrained("Sparset/
|
| 201 |
```
|
| 202 |
|
| 203 |
## Files
|
|
|
|
| 62 |
|
| 63 |
## Side-by-side comparison
|
| 64 |
|
| 65 |
+
<video src="https://huggingface.co/Sparset/Thinklite-27B/resolve/main/thinklite-side-by-side.mp4" controls autoplay muted loop playsinline style="width:100%;height:auto;display:block;"></video>
|
|
|
|
|
|
|
| 66 |
|
| 67 |
Qwen3.8-27B and Thinklite-27B get the same debugging prompt (retry code plus two logs: find the duplicate charges to
|
| 68 |
refund and the fix) with the same seed, each model on one NVIDIA RTX PRO 6000 serving 20 requests at once. Both answer correctly; Thinklite-27B is done
|
|
|
|
| 172 |
**vLLM**
|
| 173 |
|
| 174 |
```bash
|
| 175 |
+
vllm serve Sparset/Thinklite-27B --reasoning-parser qwen3 --max-model-len 135168 --kv-cache-dtype fp8
|
| 176 |
```
|
| 177 |
|
| 178 |
```python
|
| 179 |
from openai import OpenAI
|
| 180 |
client = OpenAI(base_url="http://localhost:8000/v1", api_key="-")
|
| 181 |
reply = client.chat.completions.create(
|
| 182 |
+
model="Sparset/Thinklite-27B",
|
| 183 |
messages=[{"role": "user", "content": "How many primes are there below 100?"}],
|
| 184 |
temperature=1.0, top_p=0.95,
|
| 185 |
extra_body={"top_k": 20, "chat_template_kwargs": {"enable_thinking": True, "reasoning_effort": "xhigh"}},
|
|
|
|
| 194 |
|
| 195 |
```python
|
| 196 |
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 197 |
+
model = AutoModelForImageTextToText.from_pretrained("Sparset/Thinklite-27B", dtype="auto", device_map="auto")
|
| 198 |
+
processor = AutoProcessor.from_pretrained("Sparset/Thinklite-27B")
|
| 199 |
```
|
| 200 |
|
| 201 |
## Files
|