nvidia/OpenMathReasoning
Viewer • Updated • 5.68M • 14k • 467
How to use RexTRO111/Qwen3-4B-MegaR3ASONER-LoRA-v1 with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Thinking-2507")
model = PeftModel.from_pretrained(base_model, "RexTRO111/Qwen3-4B-MegaR3ASONER-LoRA-v1")Reasoning-focused PEFT LoRA adapter for
Qwen/Qwen3-4B-Thinking-2507.
This repository contains LoRA adapter weights only. Load it on the exact base checkpoint:
Qwen/Qwen3-4B-Thinking-2507
Do not attach it to Qwen/Qwen3-4B-Instruct-2507 or another base model.
HuggingFaceH4/Bespoke-Stratos-17knvidia/OpenMathReasoningnvidia/OpenCodeReasoningnvidia/OpenScienceReasoning-2lordx64/reasoning-distill-opus-4-7-max-sftOn the first 100 examples selected by EleutherAI's gsm8k_cot task:
This was a limited 100-question run, not the complete GSM8K test set and not a controlled base-versus-adapter comparison.
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "Qwen/Qwen3-4B-Thinking-2507"
adapter_id = "RexTRO111/Qwen3-4B-MegaR3ASONER-LoRA-v1"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(
base_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(
base,
adapter_id,
is_trainable=False,
)
model.eval()
The base model and each training dataset retain their own licenses and upstream terms. Review all of them before redistribution or commercial use.
Base model
Qwen/Qwen3-4B-Thinking-2507