AdaGuard-4B
Copyright 2026 AdaGuard contributors

Based on Qwen/Qwen3Guard-Gen-4B.
Upstream license notice: Copyright 2024 Alibaba Cloud.
https://huggingface.co/Qwen/Qwen3Guard-Gen-4B

AdaGuard modifications: supervised fine-tuning for user-defined policies,
SafePO training, policy-conditioned ChatML prompting, and inference examples.
The release retains the trained checkpoint values without precision conversion.
Inference configuration enables caching, removes a fixed attention backend,
aligns tokenizer limits with the model, and sets explicit generation limits.

The upstream Apache License is reproduced in LICENSE. The new example code
and documentation are distributed under Apache-2.0.
