A fine-tuned version of
Qwen3-8B specialized for solving
IIT JEE Advanced problems in Physics, Chemistry, and Mathematics with detailed chain-of-thought reasoning.
This model was trained via
supervised fine-tuning (SFT) using QLoRA on Apple Silicon with
MLX.
Evaluated on 200 held-out questions from
JEEBench covering Physics, Chemistry, and Mathematics. All models used greedy decoding with max 2,048 tokens.
1pip install mlx-lm
2
3mlx_lm.generate \
4 --model vipsehgal/qwen3-8b-jee-sft \
5 --prompt "Solve: Find the number of real solutions of x^3 - 3x + 1 = 0"
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("vipsehgal/qwen3-8b-jee-sft", torch_dtype="auto", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("vipsehgal/qwen3-8b-jee-sft")
5
6messages = [
7 {"role": "system", "content": "You are an expert IIT JEE tutor. Solve problems step-by-step using LaTeX notation. Show all work clearly and arrive at the final answer."},
8 {"role": "user", "content": "A particle of mass 2 kg is projected vertically upward with velocity 20 m/s. Find the maximum height reached. (Take g = 10 m/s^2)"}
9]
10
11text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12inputs = tokenizer(text, return_tensors="pt").to(model.device)
13output = model.generate(**inputs, max_new_tokens=1024)
14print(tokenizer.decode(output[0], skip_special_tokens=True))
Apache 2.0 (following the
base Qwen3-8B license)