AI-MO/NuminaMath-CoT
Viewer • Updated • 860k • 64.2k • 594
How to use vipsehgal/qwen3-8b-jee-sft with MLX:
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm
# Generate text with mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("vipsehgal/qwen3-8b-jee-sft")
prompt = "Write a story about Einstein"
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
text = generate(model, tokenizer, prompt=prompt, verbose=True)How to use vipsehgal/qwen3-8b-jee-sft with Pi:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vipsehgal/qwen3-8b-jee-sft"
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"mlx-lm": {
"baseUrl": "http://localhost:8080/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "vipsehgal/qwen3-8b-jee-sft"
}
]
}
}
}# Start Pi in your project directory: pi
How to use vipsehgal/qwen3-8b-jee-sft with Hermes Agent:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vipsehgal/qwen3-8b-jee-sft"
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default vipsehgal/qwen3-8b-jee-sft
hermes
How to use vipsehgal/qwen3-8b-jee-sft with OpenClaw:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vipsehgal/qwen3-8b-jee-sft"
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "vipsehgal/qwen3-8b-jee-sft" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
How to use vipsehgal/qwen3-8b-jee-sft with MLX LM:
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "vipsehgal/qwen3-8b-jee-sft"
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "vipsehgal/qwen3-8b-jee-sft"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "vipsehgal/qwen3-8b-jee-sft",
"messages": [
{"role": "user", "content": "Hello"}
]
}'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.
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-8B-MLX-4bit |
| Method | QLoRA (4-bit) supervised fine-tuning |
| Format | Full-precision safetensors (bfloat16) |
| Size | ~16.4 GB |
| Architecture | Qwen3ForCausalLM, 36 layers, 32 heads, 4096 hidden |
| Parameter | Value |
|---|---|
| Learning rate | 1e-5 |
| Iterations | 3,500 |
| Batch size | 1 |
| Gradient accumulation steps | 4 |
| LoRA rank | 8 |
| LoRA scale (alpha/rank) | 20.0 |
| LoRA dropout | 0.0 |
| LoRA layers | 8 (top layers) |
| Max sequence length | 2,048 |
| Optimizer | Adam |
| Gradient checkpointing | Enabled |
Evaluated on 200 held-out questions from JEEBench covering Physics, Chemistry, and Mathematics. All models used greedy decoding with max 2,048 tokens.
| Subject | Base Qwen3-8B | SFT (this model) | Delta |
|---|---|---|---|
| Overall | 78/200 (39.0%) | 90/200 (45.0%) | +6.0% |
| Mathematics | 24/66 (36.4%) | 36/66 (54.5%) | +18.2% |
| Chemistry | 32/70 (45.7%) | 35/70 (50.0%) | +4.3% |
| Physics | 22/64 (34.4%) | 19/64 (29.7%) | -4.7% |
Key takeaways:
pip install mlx-lm
mlx_lm.generate \
--model vipsehgal/qwen3-8b-jee-sft \
--prompt "Solve: Find the number of real solutions of x^3 - 3x + 1 = 0"
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("vipsehgal/qwen3-8b-jee-sft", torch_dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("vipsehgal/qwen3-8b-jee-sft")
messages = [
{"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."},
{"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)"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(output[0], skip_special_tokens=True))
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.
| Model | Size | Description |
|---|---|---|
| vipsehgal/qwen3-8b-jee-sft | 16.4 GB | SFT model (bf16) — this model |
Apache 2.0 (following the base Qwen3-8B license)
Quantized