import torchfrom unsloth import FastVisionModel model, processor = FastVisionModel.from_pretrained( "colesmcintosh/Qwen3.6-35B-A3B-SystemOne", load_in_4bit=False, dtype=torch.bfloat16,)FastVisionModel.for_inference(model) tokenizer = processor.tokenizer# Exact system prompt used during calibration trainingSYSTEM_PROMPT = ( "You are Qwen3.6-SystemOne, a calibrated System One decision engine. " "Output ONLY the requested decision token or compact coordinate tuple with zero prose.") messages = [ {"role": "system", "content": [{"type": "text", "text": SYSTEM_PROMPT}]}, { "role": "user", "content": [ { "type": "text", "text": ( "[TASK: CHOICE]\n\n" "Tool output: grep returned 0 matches in docs/conf.py.\n\n" "Options:\nA: KEEP\nB: TRUNCATE\nC: DROP\n\n" "Respond with a single letter (A/B/C)." ), } ], },] prompt_text = processor.apply_chat_template( messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)inputs = processor(text=[prompt_text], return_tensors="pt").to(model.device) with torch.inference_mode(): logits = model(**inputs, use_cache=False).logits[0, -1, :].float() opt_ids = torch.tensor( [tokenizer.encode(tok, add_special_tokens=False)[0] for tok in ("A", "B", "C")], device=logits.device,)probs = torch.softmax(logits.index_select(0, opt_ids), dim=-1).tolist()print(dict(zip(("KEEP", "TRUNCATE", "DROP"), [round(p, 4) for p in probs])))