jsl5710/Shield-Qwen3-4B-SafeRL-FT-PEFT-CE
0
Shield-Qwen3-4B-SafeRL-FT-PEFT-CE
LoRA (QLoRA r=64) fine-tuned version of Qwen/Qwen3-4B-SafeRL on DIA-GUARD for use as a knowledge-distillation teacher. Trained with CE loss on the full 836K train split via 2 × A100-40GB DDP. EarlyStopping triggered at step ~1600.
This repo contains the LoRA adapter merged into the base model (full standalone model, ready for inference and KD).
Test Set Results (DIA-GUARD holdout, 181,874 samples)
Per-class
Confusion matrix
How to use
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("jsl5710/Shield-Qwen3-4B-SafeRL-FT-PEFT-CE")
model = AutoModelForCausalLM.from_pretrained("jsl5710/Shield-Qwen3-4B-SafeRL-FT-PEFT-CE", torch_dtype="bfloat16")