Downloads · 30 days
3
19% of all-time downloads
TuanAnhHoangBui/qwen3guard-gen-4b-vi-en-p-pr-lora
qwen3guard-gen-4b-vi-en-p-pr-lora is a machine learning model from TuanAnhHoangBui. Use it for the machine 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.
Adapter-only release candidate for the project's final Q2 decoder run. Users must obtain Qwen/Qwen3Guard-Gen-4B separately.
Downloads · 30 days
3
19% of all-time downloads
All-time downloads
16
Public
Repo size
11.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors11.8 MB · 100%
From the Hugging Face model README
Adapter-only release candidate for the project's final Q2 decoder run. Users
must obtain Qwen/Qwen3Guard-Gen-4B separately.
q_proj, v_proj.On the immutable 11,736-example P/PR decoder intersection, Q2 reached 87.83% accuracy and 87.82% macro-F1, with 87.79% safe recall and 87.87% unsafe recall. These are local subset results, not official Qwen benchmark numbers.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "Qwen/Qwen3Guard-Gen-4B"
adapter_id = "REPLACE_WITH_HUB_REPO"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto")
model = PeftModel.from_pretrained(base, adapter_id)
This repository contains only the PEFT adapter and public adapter config; base weights and tokenizer files are not redistributed.
Adapter SHA-256: 86e80a47c77c70480c4caa840c5e08d69695f99d287fe29a739caf2c28b5b972.