CoolFace
Modelpublic

ahmed-3m/qwen25-1.5b-gsm8k-reinforce-step425

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes8downloads
Model Card

Best GSM8K checkpoint: step 425

LoRA adapter for Qwen/Qwen2.5-1.5B-Instruct trained in a self-training math reasoning experiment on GSM8K using a LaSeR-lite REINFORCE setup.

Results

True reproducible exact-match evaluation with deterministic greedy decoding and required #### <integer> answer extraction:

  • —20% GSM8K / 8% SVAMP
  • —Evaluation subsets: GSM8K test first 100 examples, SVAMP first 50 examples
  • —Decoding: greedy, maxnewtokens=256

Training-time metrics from the original run used non-reseeded random subsets and should not be used as final accuracy claims.

Intended Use

Use when GSM8K in-distribution accuracy matters most. This is a research checkpoint, not a production math solver.

Loading

python
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch

base_id = "Qwen/Qwen2.5-1.5B-Instruct"
adapter_id = "ahmed-3m/qwen25-1.5b-gsm8k-reinforce-step425"

tok = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(
    base_id,
    torch_dtype=torch.float32,
    attn_implementation="sdpa",
    device_map="auto",
)
model = PeftModel.from_pretrained(base, adapter_id)
model.eval()

Training Context

  • —Base model: Qwen2.5-1.5B-Instruct
  • —Adapter: LoRA r=16 over projection modules
  • —Task: GSM8K math reasoning
  • —Hardware used: Tesla P40; fp16 + SDPA constraints