tdm-aiact-v1
preliminary AI system assessment for the EU AI Act
2 min read
The model performs a preliminary rapid audit of companies and their artificial intelligence systems for compliance with the European EU AI Act (Regulation (EU) 2024/1689). Based on a simple text description of the business and the AI system, the tool answers 16 standardized questions, including determining the risk level, operator role, and necessary control measures. Note that the tool is based on the ModernBERT encoder and provides probabilistic screening rather than legal advice. The model runs locally, allowing confidential descriptions of internal company systems to be processed without transmitting data externally.
Key features
- Base model: built on
tasksource/ModernBERT-large-nliwith a special decision head (DecidaBERT-large). - Context window: supports sequences up to 8,192 tokens.
- Performance: processes a single request with all 16 questions on a CPU in approximately 2.31 seconds (on Apple M3 Ultra).
- Security: runs completely locally, protecting internal company data from leaks.
What you can do
- Check an AI system: run a local service to quickly evaluate a developing AI solution against EU AI Act criteria.
- Integrate into a pipeline: use the ready-made Python Predictor class and API service to automate preliminary compliance checks.
- Analyze probabilities: examine the model's output probabilities and low-confidence flags for further expert review.
Example
from pathlib import Path
from huggingface_hub import snapshot_download
from tdm.api.service import Service
from tdm.models.predict import Predictor
model = Predictor(Path(snapshot_download("lalangan/tdm-aiact-v1")), name="tdm-aiact-v1")
result = Service(model).triage("A bank scores loan applicants with a credit model it bought from a vendor.")
tier = result["answers"]["risk_tier"]
print(tier["choice"], round(tier["confidence"], 3), result["flags"])Read more
DetailsBenchmarks: core accuracy on the test split reaches 0.988, and risk tier accuracy (tier acc) is 0.972.
Hardware requirements: the model size on disk is 1.57 GB, and peak CPU memory usage is around 10.89 GB.
Limitations: the model is trained on synthetic descriptions, does not replace full legal expertise, and may err on fundamentally new types of systems.










Comments