EUAIAct-Qwen2.5-0.5B-Edge
A compact, offline-first Language Model specialized in EU AI Act & GDPR
Runs on mobile browsers · laptops · edge servers — no cloud, no API, no data transfer
1import { pipeline } from '@xenova/transformers';
2
3const ai = await pipeline(
4 'text-generation',
5 'sallani/EUAIAct-Qwen2.5-0.5B-Edge',
6 { device: 'webgpu' }
7);
8
9const response = await ai(
10 "What are the obligations for high-risk AI system providers under Article 16?",
11 { max_new_tokens: 400 }
12);
13
14console.log(response[0].generated_text);
1from mlx_lm import load, generate
2
3model, tokenizer = load("sallani/EUAIAct-Qwen2.5-0.5B-Edge")
4
5messages = [
6 {"role": "system", "content": "Tu es un expert EU AI Act et RGPD."},
7 {"role": "user", "content": "Qu'est-ce qu'un système IA à haut risque selon l'Article 6 ?"}
8]
9
10prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
11print(generate(model, tokenizer, prompt=prompt, max_tokens=512))
1llama-cli \
2 -m euaiact-qwen2.5-0.5b-q4_k_m.gguf \
3 --chat-template qwen \
4 -p "Explain the EU AI Act conformity assessment procedure." \
5 -n 512
1@misc{allani2026euaiactedge,
2 author = {Allani, Sabri},
3 title = {EUAIAct-Qwen2.5-0.5B-Edge: A Sovereign Edge SLM for EU AI Act and GDPR Compliance},
4 year = {2026},
5 url = {https://huggingface.co/sallani/EUAIAct-Qwen2.5-0.5B-Edge},
6 note = {LoRA fine-tune of Qwen2.5-0.5B-Instruct on EU AI Act and GDPR corpus. Apache 2.0.}
7}
EU AI Act · GDPR · Edge · Mobile · Offline · Open Weights
Apache 2.0 — Free to use, modify, and distribute