Instructions to use Ailiance-fr/devstral-cpp-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ailiance-fr/devstral-cpp-lora with PEFT:
Task type is invalid.
- MLX
How to use Ailiance-fr/devstral-cpp-lora with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Ailiance-fr/devstral-cpp-lora") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use Ailiance-fr/devstral-cpp-lora with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "Ailiance-fr/devstral-cpp-lora" --prompt "Once upon a time"
- Atomic Chat
docs: EU AI Act self-contained model card v0.4.1
Browse files6 unmodified lines7891011122 unmodified lines151617181920212223242526278 unmodified lines363738394041423 unmodified lines46474849505152535455565758596061626364656667686970717273747576777879808182834 unmodified lines8889906 unmodified lines- mlx- eu-kiki- eu-ai-actlanguage:- fr- en2 unmodified lines# eu-kiki-devstral-cpp-loraLoRA adapter for **mistralai/Devstral-Small-2-24B-Instruct-2512**, part of the [eu-kiki](https://github.com/L-electron-Rare/eu-kiki) project — a 100 % EU-sovereign multi-model LLM serving pipeline. EU AI Act Article 52/53 compliant.## Performance**HumanEval (custom Studio scorer, EvalPlus extra-tests not run):** base 87.20 → +cpp 85.98 = −1.22 pts.## Usage```pythonfrom mlx_lm import load8 unmodified linesmodel.load_weights(f"{adapter_path}/adapters.safetensors", strict=False)```Or, simpler, fuse and serve via `mlx_lm fuse`:```bashpython -m mlx_lm fuse \3 unmodified lines--dequantize```## Training configuration| Parameter | Value ||---|---|| Method | LoRA || Rank | 16 || Alpha | 32 || Dropout | 0.05 || Target modules | q_proj, k_proj, v_proj, o_proj || Precision | BF16 || Optimiser | AdamW || Learning rate | 1e-5 || Framework | MLX (`mlx_lm` fork on Apple Silicon) || Hardware | Mac Studio M3 Ultra 512 GB unified memory |## Provenance & EU AI Act complianceDatasets used to train this adapter are HF-traceable. Per-source SPDX licenses, download dates, source row counts, and used row counts are documented in:- [`docs/eu-ai-act-transparency.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/docs/eu-ai-act-transparency.md) — system-level transparency record (Art. 52/53)- [`MODEL_CARD.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/MODEL_CARD.md) — full evaluation summary across HumanEval+, MT-Bench, GSM8K, KIKI-DSL v3- [`eval/results/SUMMARY.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/eval/results/SUMMARY.md) — per-bench reproducible results## Risk classification**Limited risk** (EU AI Act Art. 52). General-purpose AI; not deployed in safety-critical contexts.## LicenseApache 2.0, matching the base model.## Citation```bibtex@misc{eu-kiki-2026,4 unmodified linesnote = {Live demo: https://ml.saillant.cc}}```6 unmodified lines78910111213142 unmodified lines17181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061078 unmodified lines1161171181191201211223 unmodified lines1261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651664 unmodified lines1711721731741751761771781796 unmodified lines- mlx- eu-kiki- eu-ai-act- art-52- art-53language:- fr- en2 unmodified lines# eu-kiki-devstral-cpp-loraLoRA adapter for **mistralai/Devstral-Small-2-24B-Instruct-2512**, part of the [eu-kiki](https://github.com/L-electron-Rare/eu-kiki) project — a 100 % EU-sovereign multi-model LLM serving pipeline. **EU AI Act Article 52 / 53 compliant** (limited risk, GPAI fine-tune).## 1. Model identity| Field | Value ||---|---|| **Adapter name** | `eu-kiki-devstral-cpp-lora` || **Base model** | [`mistralai/Devstral-Small-2-24B-Instruct-2512`](https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512) || **Adapter method** | LoRA (rank 16, alpha 32, dropout 0.05) || **Target modules** | `q_proj`, `k_proj`, `v_proj`, `o_proj` (attention only) || **Precision** | BF16 || **Domain** | `cpp` || **Training records** | 2,850 (curated, deduplicated) || **License** | Apache-2.0 (matches base model) || **Risk class** | **Limited risk** (Art. 52). Not safety-critical. || **System operator** | L'Électron Rare (clemsail), Saillant Clément || **Live demo** | https://ml.saillant.cc || **Source repo** | https://github.com/L-electron-Rare/eu-kiki |## 2. Performance evaluation (Art. 53(1)(d))**HumanEval** (custom Studio scorer, EvalPlus extra-tests not run — Linux-only sandbox): base 87.20 → +cpp 85.98 = **−1.22 pts**. For rigorous HumanEval+ Δ, sample re-scoring on Linux is required.Full bench results, methodology, env.json, and rerun.sh per measurement:[`eval/results/SUMMARY.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/eval/results/SUMMARY.md) · [`MODEL_CARD.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/MODEL_CARD.md).## 3. Training data (Art. 53(1)(b)+(d))The following sources were used to fine-tune **this specific adapter**.Per-record `_provenance` fields (source, SPDX license, record_idx,access_date) are present in the source dataset; see system-leveltransparency record for full audit trail.| Source | HF / URL | SPDX License | Records used ||---|---|---|---:|| CommitPackFT | `bigcode/commitpackft` | `MIT` | 1,500 || ESP-IDF examples | `espressif/esp-idf` | `Apache-2.0` | 700 || STM32Cube examples | `STMicroelectronics/STM32CubeF4` | `BSD-3-Clause` | 450 || Arduino examples | `arduino/Arduino` | `CC0-1.0` | 200 |**Total records used for this LoRA:** 2,850.System-level inventory (all 35+ domains, full SPDX, scraping manifests,PDF pipeline DSM Art. 4 TDM compliance):[`docs/eu-ai-act-transparency.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/docs/eu-ai-act-transparency.md).### 3.1 Copyright policy (Art. 53(1)(c))- All HF-traced datasets carry permissive licenses (Apache-2.0, MIT,CC-BY-*, BSD); copyleft compatibility verified via SPDX matrix.- PDF datasheets (when used) processed under EU DSM DirectiveArticle 4 TDM exception: robots.txt respected, SHA-256 manifests,dedicated audit at[`docs/pdf-compliance-report.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/docs/pdf-compliance-report.md).- Opt-out / removal requests: open an issue on the source repo oremail the system operator (see §5).### 3.2 PII statement (Art. 10 + Art. 53(1)(d))Training data scanned with **Microsoft Presidio + en_core_web_lg**(2026-04-28) across all 35+ domain directories. **One** email addressdetected in the unrelated `traduction-tech` corpus was redacted beforetraining. No high-signal PII (email, phone, credit card, SSN, IBAN)remains. Low-signal detections (PERSON, LOCATION, DATE_TIME) arecommon false positives in technical text and were left in place.Full report: `data/pii-scan-report.json` in the source repo.## 4. Training configuration| Parameter | Value ||---|---|| Method | LoRA || Rank | 16 || Alpha | 32 || Dropout | 0.05 || Target modules | `q_proj`, `k_proj`, `v_proj`, `o_proj` || Precision | BF16 || Optimiser | AdamW || Learning rate | 1e-5 || Batch size × grad-accum | 1 × 4–8 || Framework | MLX (`mlx_lm` fork on Apple Silicon) || Hardware | Mac Studio M3 Ultra 512 GB unified memory || Energy footprint | ≪ training a foundation model from scratch (LoRA is parameter-efficient by design) |## 5. Usage```pythonfrom mlx_lm import load8 unmodified linesmodel.load_weights(f"{adapter_path}/adapters.safetensors", strict=False)```Or fuse and serve as a self-contained checkpoint:```bashpython -m mlx_lm fuse \3 unmodified lines--dequantize```## 6. Limitations & out-of-scope use- **Not for safety-critical decisions** (medical, legal, structural,life-safety, biometric).- **Not for high-stakes individual decisions** (hiring, credit, lawenforcement) — that would re-classify under EU AI Act Art. 6high-risk and require additional obligations.- **Hallucination present** at typical instruction-tuned LLM levels;pair with a verifier or human-in-the-loop for factual outputs.- **LoRA is a fine-tune of the base model**: it inherits all base-modellimitations and biases (training data cutoff, language coverage,refusal patterns).## 7. Contact (Art. 53(1)(d))| Subject | Contact ||---|---|| Operator | clemsail (`L-electron-Rare` on GitHub) || Issues / audit requests | https://github.com/L-electron-Rare/eu-kiki/issues || Base model PII / copyright | See base model card on Hugging Face || Apertus PII / copyright | `llm-privacy-requests@swiss-ai.org`, `llm-copyright-requests@swiss-ai.org` |## 8. EU AI Act compliance summary| Article | Coverage ||---|---|| Art. 52 (transparency to users) | Adapter publishes its purpose, base, fine-tune nature, and limitations in this card || Art. 53(1)(a) (technical doc) | This card + system-level [`MODEL_CARD.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/MODEL_CARD.md) || Art. 53(1)(b) (training data summary) | §3 above + system-level [`transparency.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/docs/eu-ai-act-transparency.md) §4 || Art. 53(1)(c) (copyright policy) | §3.1 above + DSM Art. 4 TDM compliance for PDF-derived corpora || Art. 53(1)(d) (evaluation summary) | §2 above + per-bench reproducible results in [`eval/results/SUMMARY.md`](https://github.com/L-electron-Rare/eu-kiki/blob/main/eval/results/SUMMARY.md) || Art. 53(2) (open-source exemption) | All weights Apache-2.0, datasets traceable, no proprietary teacher used in deployed inference || Art. 55 (systemic risk) | **Not applicable** — no foundation model > 10²⁵ FLOPs trained here; this is a LoRA fine-tune |## 9. Citation```bibtex@misc{eu-kiki-2026,4 unmodified linesnote = {Live demo: https://ml.saillant.cc}}```## 10. Changelog| Date | Change ||---|---|| 2026-05-06 | First HF release — Apache-2.0, EU AI Act self-contained model card v0.4.1 |
README.md+120-31