Quantum-ToT is a fine-tuned variant of Qwen3-1.7B, optimized for Chain-of-Thought (CoT) reasoning in quantum mechanics and quantum computing contexts.
This model was trained using the
moremilk/CoT_Reasoning_Quantum_Physics_And_Computing dataset — a curated collection of question–answer pairs that go beyond surface-level definitions to show the logical reasoning process behind quantum concepts.
Use the code below to get started with the model.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("khazarai/Quantum-ToT")
4model = AutoModelForCausalLM.from_pretrained(
5 "khazarai/Quantum-ToT",
6 device_map={"": 0}
7)
8
9question = """
10Explain the Heisenberg Uncertainty Principle in detail, including its mathematical formulation, physical implications, and common misconceptions.
11"""
12
13messages = [
14 {"role" : "user", "content" : question}
15]
16text = tokenizer.apply_chat_template(
17 messages,
18 tokenize = False,
19 add_generation_prompt = True,
20 enable_thinking = True,
21)
22
23from transformers import TextStreamer
24_ = model.generate(
25 **tokenizer(text, return_tensors = "pt").to("cuda"),
26 max_new_tokens = 3000,
27 temperature = 0.6,
28 top_p = 0.95,
29 top_k = 20,
30 streamer = TextStreamer(tokenizer, skip_prompt = True),
31)
The dataset focuses on conceptual understanding rather than heavy mathematical derivations or complex quantum hardware design.