How to use from
MLX LM
# Install MLX LM
uv tool install mlx-lm
# Generate some text
mlx_lm.generate --model "Ailiance-fr/gemma-4-E4B-mascarade-lora" --prompt "Once upon a time"
Quick Links

Ailiance โ€” Gemma 4 E4B mascarade LoRA

LoRA adapter fine-tuned on lmstudio-community/gemma-4-E4B-it-MLX-4bit for the mascarade domain (electronics, embedded, KiCad, SPICE).

Maintained by Ailiance โ€” French AI org publishing EU AI Act aligned LoRA adapters and datasets.

Quick start (MLX)

from mlx_lm import load, generate

model, tokenizer = load(
    "lmstudio-community/gemma-4-E4B-it-MLX-4bit",
    adapter_path="Ailiance-fr/gemma-4-E4B-mascarade-lora",
)

print(generate(model, tokenizer, prompt="..."))

Benchmark on production tasks

Gemma extraction champion โ€” evaluated through the electron-bench functional pipeline (Phases P1 โ†’ P6, base vs LoRA).

Task Result
P3 extraction +48 pts

Full base-vs-LoRA matrix (all phases, all adapters): compare_base_vs_lora.md.

License chain

Component License
Base model weights (lmstudio-community/gemma-4-E4B-it-MLX-4bit) Gemma Terms of Use
Training data (Ailiance-fr/mascarade-stm32-dataset) cc-by-sa-4.0
LoRA adapter (this repo) CC-BY-SA-4.0

Rationale: weights of the base model inherit from the Gemma Terms of Use, but the LoRA adapter is a derivative of CC-BY-SA-4.0 training data and is therefore released under CC-BY-SA-4.0 (share-alike propagates). Downstream users who load this adapter against the Gemma base must comply with both licenses simultaneously.

Training data lineage

Primary corpus: Ailiance-fr/mascarade-stm32-dataset (cc-by-sa-4.0). See the Ailiance-fr catalog for related cards.

EU AI Act compliance

  • Article 53(1)(c): training data licenses preserved upstream.
  • Article 53(1)(d): training data summary โ€” see dataset cards on Ailiance-fr.
  • GPAI Code of Practice (July 2025): base model Gemma (Google is a signatory).
  • No web scraping by Ailiance, no licensed data, no PII.

License

LoRA weights: CC-BY-SA-4.0 (training-data share-alike). Base model weights remain under Gemma Terms of Use.

Citation

@misc{ailiance_gemma_4_E4B_mascarade_lora_2026,
  author    = {Ailiance},
  title     = {Ailiance โ€” Gemma 4 E4B mascarade LoRA},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/Ailiance-fr/gemma-4-E4B-mascarade-lora}
}

Related

See the full Ailiance-fr LoRA collection.

Downloads last month
4
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Ailiance-fr/gemma-4-E4B-mascarade-lora

Adapter
(4)
this model