Views
No views yet
4-class text classification — identifies the Article 3 actor role of an organisation relative to an AI system
[!NOTE] Part of KlarKI — a local-first EU AI Act + GDPR compliance auditor for German SMEs. All inference runs on-device. No data leaves your machine.
| Property | Value |
|---|---|
| Base model | deepset/gbert-base |
| Architecture | Transformers — BertForSequenceClassification |
| Parameters | ~110M parameters |
| Languages | German (primary), English |
| Training samples | 2767 train / 491 validation |
| License | MIT |
| Part of | KlarKI audit pipeline |
[!TIP] Use this if you want the full audit pipeline. The download script places all 5 models exactly where KlarKI expects them.
1git clone https://github.com/s4nkar/KlarKI-EU-AI-Act-compliance-auditor.git
2cd KlarKI-EU-AI-Act-compliance-auditor
3pip install huggingface-hub>=0.26.0
4python scripts/download_pretrained.py --model actor
5./run.sh up1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="s4nkar/klarki-actor-classifier")
4result = classifier("We developed and placed the AI system on the market under our own name and brand.")
5# Output: [{'label': 'provider', 'score': 0.99}]| Label | Description |
|---|---|
provider | Developed / placed the AI system on the market (Art. 3(3)) |
deployer | Uses the AI system under its authority (Art. 3(4)) |
importer | Places a third-country AI system on the EU market (Art. 3(6)) |
distributor | Makes the AI system available without modifying it (Art. 3(7)) |
| Macro F1 | Val samples |
|---|---|
| 1.0000 | 491 |
| Class | Precision | Recall | F1 | Support |
|---|---|---|---|---|
provider | 1.0000 | 1.0000 | 1.0000 | 125 |
deployer | 1.0000 | 1.0000 | 1.0000 | 122 |
importer | 1.0000 | 1.0000 | 1.0000 | 122 |
distributor | 1.0000 | 1.0000 | 1.0000 | 122 |
| Property | Value |
|---|---|
| Base model | deepset/gbert-base |
| Training epochs | 5 (AdamW, early stopping) |
| Batch size | 16 |
| Data split | 85% train / 15% validation, stratified, seed=42 |
| Data generation | Async Ollama-grounded synthesis (phi3:mini) + real regulatory text |
| Optimiser | AdamW |
| Training framework | Docker container (Python 3.11, isolated from host) |
[!WARNING] This model is a decision-support tool, not a substitute for qualified legal advice. EU AI Act compliance determinations should always be reviewed by a legal professional.
1@software{klarki2026,
2 author = {Sankar},
3 title = {KlarKI: Local-First EU AI Act and GDPR Compliance Auditor},
4 year = {2026},
5 url = {https://github.com/s4nkar/KlarKI-EU-AI-Act-compliance-auditor},
6 note = {Open-source compliance tooling for German SMEs}
7}