Instructions to use HEART77/TIR-Qwen3.5-9B-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HEART77/TIR-Qwen3.5-9B-Thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HEART77/TIR-Qwen3.5-9B-Thinking") 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("HEART77/TIR-Qwen3.5-9B-Thinking") model = AutoModelForMultimodalLM.from_pretrained("HEART77/TIR-Qwen3.5-9B-Thinking", 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 HEART77/TIR-Qwen3.5-9B-Thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HEART77/TIR-Qwen3.5-9B-Thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HEART77/TIR-Qwen3.5-9B-Thinking", "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/HEART77/TIR-Qwen3.5-9B-Thinking
- SGLang
How to use HEART77/TIR-Qwen3.5-9B-Thinking 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 "HEART77/TIR-Qwen3.5-9B-Thinking" \ --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": "HEART77/TIR-Qwen3.5-9B-Thinking", "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 "HEART77/TIR-Qwen3.5-9B-Thinking" \ --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": "HEART77/TIR-Qwen3.5-9B-Thinking", "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 HEART77/TIR-Qwen3.5-9B-Thinking with Docker Model Runner:
docker model run hf.co/HEART77/TIR-Qwen3.5-9B-Thinking
TIR-Qwen3.5-9B-Thinking
Full-parameter SFT of Qwen/Qwen3.5-9B on the cleaned TIR mixture (HEART77/TIR-Training-Data, config thinking_clean, 26,515 rows). One contiguous epoch at a strict 32,768-token maximum length, trained 2026-09-02/03 on 4xA100 80GB with ms-swift 4.5.2 and Megatron Core 0.16.1.
This is the first 9B thinking checkpoint trained after the 2026-09-02 data audit. Compared with the legacy thinking mixture it drops the 2,200-row Cotrain attachment (260 images reused 10x each, fabricated "Simulated output" tool traces, 540 rows leaking the answer inside the reasoning) and corrects the synthetic color / refcoco chain-of-thought numerics by re-executing each shown code block on the real image. See the dataset card for the full audit.
Training data
| Component | Rows |
|---|---|
AgenticData original tasks (2,007 with <think>) |
6,007 |
CodeDance SFT (multi-turn <code> tool use, no <think>) |
13,828 |
TIR synthetic thinking attachment (all with <think>) |
6,680 |
Total (8,687 rows with <think>) |
26,515 |
Known limitations of this mixture for thinking-mode training, carried over from the legacy recipe: only 33% of rows contain a <think> block, the reasoning is short (median 141 characters for AgenticData, 525 for the synthetic set), and 4,000 AgenticData rows are bare single-answer responses without reasoning or code.
Training configuration
- Base model:
Qwen/Qwen3.5-9B; full-parameter SFT, vision tower and aligner frozen - Recipe: thinking (
add_non_thinking_prefix=false,loss_scale=default+ignore_empty_think,truncation_strategy=left,max_pixels=2408448) - Learning rate 1e-5, min 1e-6, cosine decay, warmup fraction 0.05, weight decay 0.1, clip grad 1.0
- Maximum length 32,768; global batch 64; micro batch 1; TP=2, PP=1, sequence parallel; bf16; flash attention
- One epoch = 414/414 optimizer steps, elapsed 5h 29m 6s, final training loss 0.14426088
- Full arguments:
training/args.json; per-step log:training/logging.jsonl
Evaluation
Not yet evaluated at publication time. Results on TIR-Bench and the huawei_benchmark suite (FVQA, SimpleVQA, MMBrowseComp, GAIA) will be added alongside the legacy checkpoint for comparison.
Inference
vllm serve HEART77/TIR-Qwen3.5-9B-Thinking --port 8000 --max-model-len 32768 --reasoning-parser qwen3
The model uses the TIR agent format: assistant turns may open with <think>...</think>, emit Python in <code> blocks, receive results as a user turn beginning with Code execution result:, and finish with <answer>...</answer>.
- Downloads last month
- 11