clemsail commited on
Commit
169a508
·
verified ·
1 Parent(s): ab20012

Refresh model card: license chain + DISCLOSURE bandeau v2

Browse files
Files changed (1) hide show
  1. README.md +105 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ base_model: mistralai/Devstral-Small-2-24B-Instruct-2512
4
+ library_name: peft
5
+ tags:
6
+ - mlx
7
+ - lora
8
+ - peft
9
+ - ailiance
10
+ - devstral
11
+ - kicad-pcb
12
+ language:
13
+ - en
14
+ - fr
15
+ pipeline_tag: text-generation
16
+ ---
17
+
18
+ # Ailiance — Devstral-Small-2-24B-BF16 kicad-pcb LoRA
19
+
20
+ LoRA adapter fine-tuned on `mistralai/Devstral-Small-2-24B-Instruct-2512` for **kicad-pcb** tasks.
21
+
22
+ > Maintained by **Ailiance** — French AI org publishing EU AI Act aligned LoRA adapters and datasets.
23
+
24
+ > ## ATTRIBUTION AUDIT COMPLETED
25
+ >
26
+ > The training dataset
27
+ > [`Ailiance-fr/mascarade-kicad-dataset`](https://huggingface.co/datasets/Ailiance-fr/mascarade-kicad-dataset)
28
+ > went through a full Stack Exchange attribution audit (2026-05-11):
29
+ > 61 samples (~2.3%) carry per-sample URL+author+post_id attribution;
30
+ > 169 samples flagged `not_found_on_se` (likely synthetic);
31
+ > 2 413 samples (~91%) are LLM-synthetic.
32
+ > Audit report: `docs/audit_mascarade_se_attribution.md` in `electron-bench`.
33
+
34
+ ## Quick start (MLX)
35
+
36
+ ```python
37
+ from mlx_lm import load, generate
38
+
39
+ model, tokenizer = load(
40
+ "mistralai/Devstral-Small-2-24B-Instruct-2512",
41
+ adapter_path="Ailiance-fr/devstral-kicad-pcb-lora",
42
+ )
43
+
44
+ print(generate(model, tokenizer, prompt="..."))
45
+ ```
46
+
47
+ ## Training
48
+
49
+ | Hyperparameter | Value |
50
+ |------------------|------------------------|
51
+ | Base model | `mistralai/Devstral-Small-2-24B-Instruct-2512` |
52
+ | Method | LoRA via `mlx-lm` |
53
+ | Rank | 16 |
54
+ | Scale | 2.0 |
55
+ | Alpha | 32 |
56
+ | Max seq length | 2048 |
57
+ | Iterations | 1000 |
58
+ | Optimizer | Adam, LR 1e-5 |
59
+ | Hardware | Apple M3 Ultra 512 GB |
60
+
61
+ ## Training data lineage
62
+
63
+ | Role | Dataset | License |
64
+ |-----------------|--------------------------------------------------------------------------------------------------|----------------|
65
+ | Primary corpus | [`Ailiance-fr/mascarade-kicad-dataset`](https://huggingface.co/datasets/Ailiance-fr/mascarade-kicad-dataset) | cc-by-sa-4.0 |
66
+
67
+ For per-sample provenance and attribution status, consult the dataset card.
68
+
69
+ ## License chain
70
+
71
+ | Component | License |
72
+ |-----------------------------------|-------------------|
73
+ | Base model (`mistralai/Devstral-Small-2-24B-Instruct-2512`) | apache-2.0 |
74
+ | Training data ([`Ailiance-fr/mascarade-kicad-dataset`](https://huggingface.co/datasets/Ailiance-fr/mascarade-kicad-dataset)) | cc-by-sa-4.0 |
75
+ | **LoRA adapter (this repo)** | **cc-by-sa-4.0**|
76
+
77
+ _Most restrictive license in the chain (CC-BY-SA-4.0 share-alike) propagates to derivatives._
78
+
79
+ ## EU AI Act compliance
80
+
81
+ - **Article 53(1)(c)**: training data licenses preserved (per-dataset cards declare upstream licenses).
82
+ - **Article 53(1)(d)**: training data summary — see upstream dataset cards on Ailiance-fr.
83
+ - **GPAI Code of Practice (July 2025)**: base `mistralai/Devstral-Small-2-24B-Instruct-2512` released under apache-2.0.
84
+ - **No web scraping by Ailiance**, **no licensed data**, **no PII**.
85
+ - Upstream Stack Exchange content (where applicable) is CC-BY-SA-4.0 and propagates to this adapter.
86
+
87
+ ## License
88
+
89
+ LoRA weights: **cc-by-sa-4.0** — see License chain table above for derivation rationale.
90
+
91
+ ## Citation
92
+
93
+ ```bibtex
94
+ @misc{ailiance_devstral_kicad_pcb_2026,
95
+ author = {Ailiance},
96
+ title = {Ailiance — Devstral-Small-2-24B-BF16 kicad-pcb LoRA},
97
+ year = {2026},
98
+ publisher = {Hugging Face},
99
+ url = {https://huggingface.co/Ailiance-fr/devstral-kicad-pcb-lora}
100
+ }
101
+ ```
102
+
103
+ ## Related
104
+
105
+ See the full [Ailiance-fr LoRA collection](https://huggingface.co/Ailiance-fr).