Downloads · 30 days
12
19% of all-time downloads
deyucao/qwen3-4b-sql-grpo_202602221210_fin
qwen3-4b-sql-grpo_202602221210_fin is a text generation model from deyucao. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides a merged model (base + LoRA) fine-tuned from deyucao/qwen3-4b-agent-trajectory-lora2026021805 using GRPO (Group Relative Policy Optimization) + Unsloth.
Downloads · 30 days
12
19% of all-time downloads
All-time downloads
63
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This repository provides a merged model (base + LoRA) fine-tuned from deyucao/qwen3-4b-agent-trajectory-lora_2026021805 using GRPO (Group Relative Policy Optimization) + Unsloth.
This is the fully merged model — no separate adapter loading is required.
This model is trained via GRPO to improve text-to-SQL generation accuracy. Reward signals are derived from:
| Parameter | Value |
|---|---|
| Base model | deyucao/qwen3-4b-agent-trajectory-lora_2026021805 |
| Method | GRPO (LoRA, merged) |
| Loss type | dr_grpo |
| Max sequence length | 1536 |
| Epochs | 1 |
| Learning rate | 1e-06 |
| LoRA r | 64 |
| LoRA alpha | 128 |
| Num generations (per prompt) | 4 |
| Sampling temperature | 0.7 |
deyucao/dbbench-description-rewritesfrom transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "your_id/qwen3-4b-sql-grpo_202602221210_fin"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
deyucao/dbbench-description-rewrites