clemsail commited on
Commit
a1bad60
·
verified ·
1 Parent(s): 6a4bbae

Refresh model card: license chain + DISCLOSURE bandeau v2

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