Views
No views yet
⚠️ CRITICAL: Ollama Inference Flag Required
If you serve this model via Ollama with the qwen3.5 RENDERER (the standard recommended setup), you MUST pass"think": falsein the/api/chatrequest body for chat / instruction following / tool use.bash1curl -X POST http://localhost:11434/api/chat \ 2 -d '{"model": "...", "think": false, "messages": [...], "stream": false}'Without this flag, the renderer auto-injects<think>tags into every chat completion. On longer prompts the model can stay inside the<think>block past the response budget, never emit</think>, and produce zero answer tokens on 25-46% of requests.Setthink: true(or omit) only when you DO want chain-of-thought reasoning (math, planning, complex multi-step). This is Qwen3 dual-mode operation per https://qwenlm.github.io/blog/qwen3/.See the datasetcudabenchmarktest/r9-research-framework_OLLAMA_INFERENCE_WARNING.mdfor the full explanation.
<think> blocks| Benchmark | Score |
|---|---|
| Diverse stochastic eval (38 tests, 9 categories) | 86.8% |
| Base qwen3.5:9b on same eval | 79.0% |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "cudabenchmarktest/qwen3.5-9b-r7-research",
5 torch_dtype="auto",
6 trust_remote_code=True,
7)
8tokenizer = AutoTokenizer.from_pretrained("cudabenchmarktest/qwen3.5-9b-r7-research")
9
10messages = [{"role": "user", "content": "What is the capital of France?"}]
11text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12inputs = tokenizer(text, return_tensors="pt").to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=512)
14print(tokenizer.decode(outputs[0], skip_special_tokens=True))