GPAI obblighi: modelli General Purpose 2027
The European Union's AI Act enters into force on February 2, 2025, but the real obligations for General Purpose AI (GPAI) model providers begin in January 2027. If you develop, deploy, or use general-purpose AI systems with high impact, you must prepare now: requirements for risk assessment, transparency, testing, and monitoring are rigorous, and non-compliance carries penalties up to 6% of global annual revenue.
Short answer: Any AI model capable of performing a wide range of distinct tasks with autonomous output generation (LLMs, vision-language models, etc.) falls into the GPAI category. Obligations cover: complete technical documentation, risk assessment before deployment, continuous monitoring, and fallback strategy in case of malfunction. If your infrastructure uses Ollama on-prem or external APIs, you must demonstrate compliance on both fronts.
Definition of GPAI according to the AI Act
Article 3 of the AI Act defines a General Purpose AI model as:
- Capable of producing generative output: creates text, images, audio, code, new data
- Functions for a wide range of tasks: not specialized in a single domain; can be adapted to distinct downstream tasks
- Can be used by downstream providers: the GPAI provider is not the end-user (e.g., Ollama distributes LLaMA; frameworks distribute base models)
Models falling under GPAI: LLMs like LLaMA 3.1, Llama 2, Mistral, Qwen (but NOT closed proprietary models from certain commercial providers); vision models like CLIP, DINOv2; multimodal models. Models NOT GPAI: task-specific classifiers (sentiment analysis trained on single dataset), specialized forecasting models, small language models ≤1B parameters (discouraged but not mandatory).
Technical obligations for GPAI providers
If you are a GPAI provider (i.e., you distribute the model to others), you must comply with 5 categories of obligations:
1. Complete technical documentation
You must maintain and provide documentation describing:
- Model capabilities and limitations (accuracy, public benchmarks)
- Training data (sources, size, languages, known biases)
- Architecture and training procedures
- Refusal threshold (when the model declines to respond, if implemented)
- Testing and monitoring mechanisms
- Guide for responsible use
This documentation must be maintained throughout the model's lifecycle and made available to supervisory authorities upon request.
2. Risk assessment and mitigation
Before any deployment or major release, you must conduct a formal risk assessment that identifies:
- Security risks: jailbreak, prompt injection, safety measures bypass
- Bias risks: discrimination toward protected groups, stereotyping
- Privacy risks: data leakage, PII memorization in parameters
- Abuse risks: use for deepfakes, spam, disinformation
- Environmental impact risks: energy consumption of training
For each risk, you must document probability, severity, and implemented countermeasures. Simply saying "risk identified" is insufficient; you must demonstrate concrete action (e.g., red-teaming, safety fine-tuning, recursive testing).
3. Transparency and notifications
You must:
- Clearly communicate when output is generated by GPAI
- Immediately notify authorities of any serious security incidents (e.g., mass jailbreak, data breach)
- Maintain a public model card (standard format) with key metadata
- Provide APIs for content flagging (where applicable, e.g., CSAM detection)
Transparency does not mean "saying it's an LLM"; it means describing capabilities, limitations, and risks in a verifiable manner.
4. Testing and continuous monitoring
You must implement:
- Pre-deployment testing: benchmarks on safety, bias, jailbreak resistance (>1000 test cases); red-teaming by third-party providers
- Runtime monitoring: track usage metrics (e.g., % of prompts refused, latency); anomaly detection
- Post-incident analysis: each abuse report must be investigated, categorized, and used to improve training
- Periodic re-evaluation: at least annually, re-run risk assessment on new data
Monitoring is not optional; you cannot simply release and disappear. You must maintain dashboards, alerts, and a team ready to respond.
Practical compliance: common scenarios
Scenario 1: Ollama on-prem (infrastructure provider)
If you use Ollama on-prem on your VPS (e.g., llama3.1:8b), you are formally both GPAI provider and GPAI user:
- As provider: if you distribute Ollama as a tool to downstream users (e.g., clients, internal team), you must comply with documentation and risk assessment obligations
- As user: the base model (llama3.1) is maintained by Meta/Ollama project; you are responsible for deployment architecture, fallback strategy, and monitoring
In practice: document your Ollama architecture, perform red-testing of the model, implement fallback (e.g., degraded mode with fixed response if Ollama is down), and track accesses/outputs for compliance audit.
Scenario 2: External API (downstream user/provider)
If you integrate a commercial GPAI API into your service:
- Responsibility split: the API provider is responsible for the model; you are responsible for correct integration, fallback, and disclosure to end-users
- You must: document which GPAI you use, how you call it, what outputs you give to users, and how you verify correctness
- Liability: if the API causes harm (e.g., discrimination), both (provider + downstream) may be held responsible if downstream (you) did not implement mitigations
Scenario 3: Fine-tuning and domain adaptation
If you fine-tune a GPAI on a proprietary dataset (e.g., fine-tuning LLaMA on medical dataset), you become GPAI provider for that variant:
- You must repeat risk assessment on the fine-tuned model (fine-tuning can introduce new biases)
- You must document fine-tuning dataset (source, filtering, which PII removed)
- You must monitor the fine-tuned model as if it were "new" (even though it's technically an adaptation)
Obligations roadmap 2026-2027
Timeline of deadlines according to AI Act:
- Feb 02, 2025: AI Act enters into force (prohibits high-risk AI systems, but GPAI obligations not yet active)
- Q2 2025: EU publishes detailed guidance for GPAI compliance (European Commission)
- Q3 2025 - Q4 2026: "Soft enforcement" period: compliance encouraged but not sanctioned; many companies will launch internal audits
- Jan 01, 2027: GPAI obligations fully active; enforcement begins by national authorities (AGCOM, CNIL, BfDI, etc.)
- 2027-2028: First sanctions on non-compliant providers (likely: administrative notices, then possible fines)
Recommended action: by Q3 2026, complete your risk assessment and documentation. Do not wait until Jan 01, 2027.
Non-compliance risks
AI Act penalties are severe:
- Violation of GPAI obligations: up to 30 million EUR or 6% of annual global revenue (whichever is higher)
- Non-disclosure of security incidents: up to 20 million EUR or 4% revenue
- Lack of risk assessment: up to 40 million EUR or 8% revenue (if categorized as "high-risk")
- Prohibition from operating in the EU: for grave recidivism, authorities can prohibit provider from operating in EU territory
Beyond fines, there are reputational risks: media coverage of non-compliance, loss of customer trust, exclusion from public tenders.
Implementation best practices
1. Internal governance
Establish an "AI Governance Board" with responsibility for:
- Approval of new GPAI models (risk assessment sign-off)
- Incident response (breach, abuse report, anomaly detection)
- Periodic audits (at least annual) on compliance
- Team training on AI safety and responsible use
2. Complete technical documentation
Maintain a "Model Card" for every GPAI you use/distribute:
{
"model_id": "llama3.1-8b",
"provider": "Meta",
"version": "3.1",
"release_date": "2024-07-23",
"capabilities": {
"tasks": ["text-generation", "instruction-following", "summarization"],
"languages": ["English", "Italian", "German", "French", "+70"],
"max_input_tokens": 8192,
"output_modality": "text"
},
"training": {
"data_sources": "Public web data, research papers, code repositories",
"training_compute": "~1-2M GPU-hours (estimated)",
"fine_tuning": false,
"known_limitations": [
"Lack of real-time knowledge (training cutoff Sept 2024)",
"Potential hallucinations on niche topics",
"Bias toward English-centric perspectives"
]
},
"risk_assessment": {
"last_updated": "2026-06-15T10:30:00Z",
"security_score": 7.2,
"bias_score": 5.8,
"safety_measures": [
"Post-training safety alignment",
"Instruction following with refusal patterns",
"Rate limiting (120 req/min per user)",
"Content filtering for prohibited uses"
]
},
"monitoring": {
"enabled": true,
"metrics_tracked": ["response_latency", "error_rate", "abuse_reports", "user_satisfaction"],
"incident_response_sla": "24 hours for critical, 72 hours for medium"
}
}
3. Risk assessment and mitigation
Conduct formal red-teaming at least once a year. Here is a checklist template:
# GPAI Risk Assessment Checklist
## Security Risks
- [ ] Tested jailbreak resistance (>100 known jailbreak techniques)
- [ ] Prompt injection vulnerability assessment
- [ ] Model inversion attack testing
- [ ] Denial of service (rate limiting, timeout configured)
- [ ] Data leakage from training set (memorization testing)
## Bias and Fairness
- [ ] Tested on demographic fairness benchmarks (BOLD, WinoBias)
- [ ] Assessed stereotyping risk (gender, race, religion)
- [ ] Reviewed for hate speech/discrimination potential
- [ ] Documented known limitations for protected groups
## Privacy
- [ ] Scanned training data for PII (SSN, email, phone)
- [ ] Tested for direct memorization of training examples
- [ ] Compliance with GDPR right-to-be-forgotten
- [ ] Data minimization: only necessary data retained
## Transparency
- [ ] Clear disclosure: "This is AI-generated"
- [ ] Limitations communicated to users
- [ ] Model card publicly available
- [ ] User can provide feedback on outputs
## Operational
- [ ] Fallback strategy documented (what if AI down?)
- [ ] Monitoring and alerting in production
- [ ] Incident response procedure documented
- [ ] Team trained on responsible use
4. Audit trail and logging
Maintain a complete audit log of all GPAI accesses and outputs:
CREATE TABLE gpai_audit_log (
id BIGINT PRIMARY KEY,
timestamp TIMESTAMP NOT NULL,
user_id VARCHAR(255) NOT NULL,
model_id VARCHAR(255) NOT NULL,
prompt_hash VARCHAR(64) NOT NULL, -- Hash for privacy
response_length INT NOT NULL,
latency_ms INT NOT NULL,
error_code VARCHAR(50),
flagged_as_abuse BOOLEAN DEFAULT false,
investigation_status VARCHAR(50), -- null, open, resolved
investigator_notes TEXT
);
CREATE INDEX idx_user_timestamp ON gpai_audit_log(user_id, timestamp);
CREATE INDEX idx_model_timestamp ON gpai_audit_log(model_id, timestamp);
CREATE INDEX idx_flagged ON gpai_audit_log(flagged_as_abuse, timestamp);
5. Training data provenance
For every fine-tuning or domain adaptation, document data provenance:
{
"fine_tuning_session": {
"id": "ft_20260614_001",
"base_model": "llama3.1-8b",
"training_data": {
"source": "Internal support tickets 2024-2025",
"num_examples": 5000,
"preprocessing": [
"Removed PII (emails, phone numbers)",
"Anonymized customer names",
"Filtered offensive language",
"Removed duplicate conversations"
],
"distribution": {
"bug_reports": 45,
"feature_requests": 30,
"billing_inquiries": 15,
"other": 10
}
},
"quality_checks": [
{
"check": "PII detection",
"passed": 4992,
"failed": 8,
"resolution": "Manually reviewed and redacted"
},
{
"check": "Bias assessment",
"metric": "Demographic parity difference",
"threshold": 0.1,
"result": 0.06,
"status": "PASS"
}
]
}
}
6. Fallback strategy
Implement explicit failover if GPAI is unavailable:
class GPAIService:
def __init__(self, ollama_url, fallback_response):
self.ollama_url = ollama_url
self.fallback_response = fallback_response
self.health_check_interval = 30 # seconds
self.max_retries = 3
def query_with_fallback(self, prompt, user_id):
try:
# Check service health
if not self.is_healthy():
return self.fallback_response, "FALLBACK_DEGRADED_MODE"
# Primary: Ollama local
response = self.query_ollama(prompt)
return response, "SUCCESS"
except TimeoutError:
# Log incident for compliance audit
self.log_incident("TIMEOUT", user_id, prompt)
return self.fallback_response, "FALLBACK_TIMEOUT"
except Exception as e:
# Any other error: fallback + alert
self.log_incident("ERROR", user_id, str(e))
self.alert_team(f"GPAI service error: {e}")
return self.fallback_response, f"FALLBACK_{type(e).__name__}"
def is_healthy(self):
try:
response = requests.get(f"{self.ollama_url}/api/tags", timeout=2)
return response.status_code == 200
except:
return False
7. Monitoring and alerting
Configure dashboards to track critical metrics:
{
"monitoring_config": {
"metrics": [
{
"name": "gpai_response_latency_ms",
"alert_threshold": 5000,
"alert_type": "warning"
},
{
"name": "gpai_error_rate_percent",
"alert_threshold": 5,
"alert_type": "critical"
},
{
"name": "gpai_abuse_reports_per_hour",
"alert_threshold": 10,
"alert_type": "critical"
},
{
"name": "gpai_prompt_rejection_rate",
"alert_threshold": 20,
"alert_type": "warning"
}
],
"dashboards": [
{
"name": "GPAI Compliance",
"refresh_interval": "5m",
"widgets": [
"Error trend (24h)",
"User satisfaction (avg rating)",
"Abuse reports (open investigations)",
"Service uptime (SLA tracking)"
]
}
]
}
}
8. Response handling and versioning
Every GPAI response must be versioned and tracked:
CREATE TABLE gpai_responses (
id UUID PRIMARY KEY,
user_id VARCHAR(255) NOT NULL,
model_id VARCHAR(255) NOT NULL,
model_version VARCHAR(50) NOT NULL,
prompt TEXT NOT NULL,
response TEXT NOT NULL,
generated_at TIMESTAMP NOT NULL,
confidence_score FLOAT,
-- Compliance tracking
flagged_for_review BOOLEAN DEFAULT false,
compliance_check_passed BOOLEAN,
compliance_check_timestamp TIMESTAMP,
FOREIGN KEY (model_id) REFERENCES gpai_models(id)
);
-- Index for compliance audits
CREATE INDEX idx_compliance_review ON gpai_responses(flagged_for_review, generated_at);
CREATE INDEX idx_model_version ON gpai_responses(model_id, model_version);
Ollama configuration for GPAI compliance
If you use Ollama on-prem, here is an example configuration that implements some GPAI requirements:
{
"ollama_instance": {
"host": "127.0.0.1",
"port": 11434,
"model": "llama3.1:8b",
"compliance_mode": true,
"settings": {
"num_predict": 512,
"top_k": 40,
"top_p": 0.9,
"temperature": 0.7,
"repeat_penalty": 1.1,
"num_gqa": 8
},
"safety_features": {
"rate_limit": {
"enabled": true,
"requests_per_minute": 120,
"per_user": true
},
"content_filtering": {
"enabled": true,
"filter_harmful_content": true,
"filter_pii": true
},
"prompt_logging": {
"enabled": true,
"log_path": "/var/log/ollama/compliance.log",
"retention_days": 365
},
"response_validation": {
"max_response_length": 4096,
"timeout_seconds": 30,
"fallback_response": "I'm unable to respond to that request right now. Please try again later."
}
},
"monitoring": {
"health_check_interval": 30,
"metrics_export": true,
"prometheus_port": 9090
}
}
}
FAQ
Q: My model has only 500M parameters. Is it still GPAI?
A: Generally no. Models <1B parameters are considered small language models (SLM) and excluded from GPAI obligations. However, if your SLM is capable of performing a wide range of tasks and has autonomous generation, it could still fall under GPAI at the discretion of the authority. It's not a rigid rule; you must conduct documented self-assessment.
Q: If I use a proprietary model (external API), am I responsible for compliance?
A: It depends. The model provider is responsible for the model's compliance. You are responsible for: (1) using it correctly (not for abuses), (2) implementing fallback if unavailable, (3) clearly communicating to end-users that it's AI-generated, (4) having contracts declaring provider's compliance. If the provider is not EU-based, your obligations still apply if you offer service to EU citizens.
Q: Can I use fine-tuning to avoid GPAI obligations?
A: No. Fine-tuning does not change the fact that the model is GPAI. In fact, fine-tuning introduces new responsibilities: you must repeat risk assessment, document training data, monitor the fine-tuned model. Fine-tuning requires MORE compliance work, not less.
Q: Which national authorities will enforce the AI Act in Italy?
A: In Italy: Privacy Guarantor (for GDPR aspects), AGCOM (Authority for Communications Guarantees), and MISE (Ministry of Economic Development) share responsibility. At EU level: 27 national authorities + European Artificial Intelligence Board. If you operate in the EU, you may be subject to inspection by any national authority.
Q: Do I have to pay for third-party compliance audit for GPAI?
A: Not mandatory, but highly recommended. If you self-audit and authorities discover gaps, responsibility is yours. A third-party audit by certified body provides legal protection (demonstrated due diligence). Typical cost: 5K-50K EUR depending on complexity and number of models.

Commenti
Caricamento commenti...
Sign in to comment