Downloads · 30 days
7
25% of all-time downloads
simpissa/qwen3-4b-leetcode-medhard-baseline
qwen3-4b-leetcode-medhard-baseline is a text generation model from simpissa. Use it when you need the model to write or continue text. It is set up for peft.
This repository contains the final LoRA adapter from a 100-step GRPO run based on Qwen/Qwen3-4B.
Downloads · 30 days
7
25% of all-time downloads
All-time downloads
28
Public
Repo size
276 MB
Likes
0
Public
Click a slice to open those files.
.safetensors264 MB · 94%
From the Hugging Face model README
This repository contains the final LoRA adapter from a 100-step GRPO run based on Qwen/Qwen3-4B.
The model was trained on the LeetCode medium/hard filtered environment using hidden-test correctness rewards and the simple_overwrite_tests hint configuration. The adapter uses rank 32 and targets the attention and MLP projection layers.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = "Qwen/Qwen3-4B"
adapter = "simpissa/qwen3-4b-leetcode-medhard-baseline"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(base_model, torch_dtype="auto")
model = PeftModel.from_pretrained(model, adapter)
The tokenizer files are included for reproducibility and are unchanged from the base model.