Author: Bhaskar Tallamraju and Vishal Saxena, Privify Inc. · Code and benchmark: github.com/Privify-Inc/aiact-tier · Fine-tuned from: Qwen3-4B (Alibaba Cloud / Qwen Team, Apache 2.0) · License: Apache 2.0. The base model's capabilities come from the Qwen team's work; please cite the Qwen3 Technical Report alongside this model.
Status: v0.1, an early release. Results below come from a small test set (109 items) whose labels were cross-checked by AI models and adjudicated by the author, not reviewed by a lawyer. Treat the numbers as indicative, not definitive.
A 4B-parameter model, fine-tuned from Qwen3-4B with LoRA (Low-Rank Adaptation, a lightweight fine-tuning method), that classifies a described AI system under the EU AI Act (Regulation (EU) 2024/1689). It returns a risk tier and the provisions that apply, as JSON.
{"tier": "high_risk", "provisions": ["Annex III(4)(a)", "Art. 50(1)"]}
Provided as is, with no warranty and no liability (Apache 2.0, sections 7 and 8). Not legal advice, not a compliance certification, not a substitute for a lawyer. Use is entirely at your own risk.
This is a decision aid, not legal advice. It can be wrong. A qualified person must review any compliance decision.
# git clone https://github.com/Privify-Inc/aiact-tier (the Classifier class lives in the code repo)
from aiact_tier.predict import Classifier
clf = Classifier("Qwen/Qwen3-4B", adapter="Privify-Inc/aiact-tier-4b-v0.1") # LoRA adapter on the base model
print(clf.classify("A chatbot that screens job applicants and ranks them for recruiters."))
No quantized (GGUF) files are provided in v0.1. Use the prompt in aiact_tier/schema.py (SYSTEM_SHORT).
Greedy decoding is recommended.
Four tiers (most to least severe): prohibited (Art. 5(1)(a) to (h)), high_risk (Annex III
categories and Art. 6(1)), limited_transparency (Art. 50), minimal. The tier is the most severe
that applies; provisions list every applicable one. The full list is in aiact_tier/taxonomy.py.
minimal), plus 4 multi-provision examples. Drafted with AI assistance (Anthropic's Claude) from
the public text of the Act, then not reviewed by a lawyer.4-bit QLoRA (NF4 base weights, fp16 compute) on all linear layers, rank 16, alpha 32, dropout 0.05,
learning rate 2e-4 (cosine), 2 epochs, effective batch 16, max length 512, loss on the answer tokens only.
Hardware: one NVIDIA Tesla T4 (16 GB) on Kaggle, roughly 3 hours. Library versions: torch 2.11, transformers 5.16,
peft 0.20 (eval/train_meta.json has the exact settings and a hash of the training file).
Exact command, seed, data hash and library versions are saved in train_meta.json.
Gold set: 109 hand-written system descriptions (93 standard cases plus 16 harder, vaguer ones). Labels were
drafted by Claude, then labeled blind by ChatGPT and Microsoft Copilot (tier agreement between the two:
Cohen's kappa 0.96), and disagreements were adjudicated by the author (eval/REVIEW_PROVENANCE.md).
No lawyer reviewed them. The base model and the baselines receive the long prompt that lists every allowed
provision; the fine-tuned model uses the short prompt.
| Model | Tier accuracy (95% CI) | Macro-F1 | Exact match | Hallucinated provisions | Critical errors |
|---|---|---|---|---|---|
| Majority class | 50.5% (42.2 to 59.6) | 16.8% | 0.0% | 0.0% | 0.0% |
| Keyword rules | 59.6% (49.5 to 68.8) | 59.6% | 44.0% | 0.0% | 24.8% |
| Qwen3-4B, zero-shot | 69.7% (61.5 to 78.9) | 54.4% | 41.3% | 4.9% | 2.8% |
| This model (QLoRA 4-bit adapter) | 80.7% (73.4 to 88.1) | 74.8% | 68.8% | 2.1% | 0.9% |
Quantized GGUF versions and other base models were not evaluated in v0.1.
Critical error = a prohibited or high-risk system classified as limited or minimal.
What the numbers show, and do not show
docs/LABELING_GUIDE.md.See docs/RISK_ASSESSMENT.md. Main risks: over-reliance on the output, misuse as compliance
evidence, and under-classifying a risky system. Mitigations: the closed provision list, a reported
critical-error rate, a conservative bias toward the more severe tier, and the disclaimers above.
About 3 hours on one Tesla T4 (70 W maximum), so roughly 0.2 kWh. Region not recorded.
Author: Bhaskar Tallamraju, Privify Inc. Issues and label disputes: GitHub issues on the repository. If you use this model, please cite it via CITATION.cff and cite the Qwen3 Technical Report.
Built on Qwen3-4B (Apache 2.0, Alibaba Cloud / Qwen Team). See NOTICE.
Qwen/Qwen3-4B