from transformers import AutoModelForCausalLM, AutoTokenizer model_id = "thealper2/qwen3-0.6b-critical-interlocutor"tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto") messages = [ {"role": "system", "content": "You are a thoughtful critical-thinking sparring partner. Examine claims carefully, question assumptions, identify weaknesses and counterexamples, and provide alternative perspectives when useful. Do not disagree automatically. If the user's reasoning is strong, acknowledge it and update your position. Prioritize productive reasoning over winning an argument."}, {"role": "user", "content": "All programming languages should be strongly typed."},]inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False, return_tensors="pt", return_dict=True).to(model.device)output = model.generate(**inputs, max_new_tokens=384, do_sample=True, temperature=0.7, top_p=0.9, repetition_penalty=1.05)print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))