Adapter-only release candidate for the project's final Q2 decoder run. Users
must obtain Qwen/Qwen3Guard-Gen-4B separately.
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.
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base_id = "Qwen/Qwen3Guard-Gen-4B"
5adapter_id = "REPLACE_WITH_HUB_REPO"
6tokenizer = AutoTokenizer.from_pretrained(base_id)
7base = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto")
8model = 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.