Downloads · 30 days
19
20% of all-time downloads
ruby2022/NYCU-IAlI-DL2026-LLM3-GRPO
NYCU-IAlI-DL2026-LLM3-GRPO is a reinforcement learning model from ruby2022. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This repository contains: - LoRA adapter fine-tuned from Qwen/Qwen3-14B via GRPO reinforcement learning - Training data (train-reasoning-v2.csv) used for GRPO training
Downloads · 30 days
19
20% of all-time downloads
All-time downloads
93
Public
Repo size
268 MB
Likes
0
Public
Click a slice to open those files.
.safetensors257 MB · 94%
From the Hugging Face model README
This repository contains:
Qwen/Qwen3-14B via GRPO reinforcement learningtrain-reasoning-v2.csv) used for GRPO training| Submission | Inference | Public | Private |
|---|---|---|---|
| Qwen3-14B + GRPO | Majority Vote N=8 | 0.694 | 0.698 |
| Qwen3-14B + GRPO | Greedy (N=1) | 0.687 | 0.685 |
Kaggle: nycu-i-al-i-dl-2026-llm-3-grpo
Task: Fine-tune a Chinese-released LLM using GRPO so that it correctly answers Traditional Chinese single-choice questions (A/B/C/D).
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen3-14B |
| Rank (r) | 16 |
| Alpha | 16 |
| Dropout | 0.0 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Trainable params | ~1.5% |
| Training method | GRPO (Group Relative Policy Optimization) |
| File | Description |
|---|---|
adapter_config.json | LoRA adapter configuration |
adapter_model.safetensors | LoRA adapter weights (~245 MB) |
tokenizer.json | Tokenizer |
tokenizer_config.json | Tokenizer configuration |
chat_template.jinja | Qwen3 chat template with thinking enabled |
train-reasoning-v2.csv | Training dataset (3,199 samples) |
kaggle_test_set_792.csv | Test set (792 questions, no labels) |
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
base_model_name = "Qwen/Qwen3-14B"
adapter_name = "ruby2022/NYCU-IAlI-DL2026-LLM3-GRPO"
tokenizer = AutoTokenizer.from_pretrained(adapter_name)
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_name)
model = model.merge_and_unload()
correctness_reward (+2.0/−1.0) + format_reward (+0.5)<think>...</think> enabled throughoutSee the GitHub repository for full source code, training scripts, and logs.