daichira/structured-3k-mix-sft
Viewer • Updated • 3k • 830
How to use zerg2187/GRPO_structeval_t_qwen3_v1 with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("zerg2187/GRPO_structeval_t_qwen3_v1")
model = AutoModelForCausalLM.from_pretrained("zerg2187/GRPO_structeval_t_qwen3_v1")This repository contains a full model (merged weights) trained using GRPO (Group Relative Policy Optimization). The model is a result of a two-stage training process:
Qwen/Qwen3-4B-Instruct-2507.Qwen/Qwen3-4B-Instruct-2507./outputs/lora_structeval_t_qwen3_4b_additional_prompt_5e-6 (Combined into base before GRPO)This model is optimized for structured reasoning and output, rewarding:
daichira/structured-3k-mix-sftSince this is a full merged model, you can load it directly with Transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "zerg2187/GRPO_structeval_t_qwen3_v1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.float16, # or bfloat16
device_map="auto"
)
prompt = "Generate a JSON object describing a book."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
outputs = model.generate(
**tokenizer(text, return_tensors="pt").to(model.device),
max_new_tokens=512
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Compliance: This model must be used in compliance with the original Qwen/Qwen3-4B-Instruct-2507 license and the dataset license.
Base model
Qwen/Qwen3-4B-Instruct-2507