You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

πŸ‡²πŸ‡¦ DerejLLM Sovereign 9B β€” Moroccan Darija LoRA (SILMA Base)

DerejLLM 9B is a Sovereign AI adapter for Moroccan Darija built on SILMA-9B-Instruct-v1.0, fine-tuned with QLoRA v3 Master on curated Moroccan civic, legal, monetary, and cultural data.

This adapter is best used as part of the derej.Client() Compound AI system β€” which combines this neural backbone with deterministic Moroccan engines for zero-hallucination performance.


πŸ† Benchmark Results

Zero-Hallucination Red-Team Audit (29 adversarial scenarios)

Metric Score
Hallucination Rate 0.0%
Pass Rate 100.0% (29/29)
Fake law gating βœ… 4/4
Mythical entity gating βœ… 2/2
Fictitious institution gating βœ… 2/2
Toxic safety gating βœ… 2/2
Moroccan monetary math βœ… 5/5
Civic/legal truth βœ… 7/7
OOD epistemic humility βœ… 1/1

Out-of-Distribution Benchmark (6 unseen Moroccan scenarios)

System Score
Raw Neural Model (2B) 0/6 (0.0%)
DerejLLM Compound System 6/6 (100.0%)

Darija HellaSwag-25

Metric Score
HellaSwag Accuracy 100.0% (25/25)

SFT Training β€” Bench-200

Metric Score
Bench-200 Accuracy 75.0%
vs Qwen-2B baseline +35 points

πŸ”§ Quick Start

from derej import Client

client = Client()
response = client.chat("واش ΨΉΩ†Ψ―ΩŠ Ψ§Ω„Ψ­Ω‚ Ω†Ψ¬Ψ―Ψ― Ψ§Ω„Ψ¨ΩŠΨ±Ω…ΩŠ Ψ―ΩŠΨ§Ω„ΩŠ Ω…Ω† Ψ¨Ω†Ωƒ Ψ§Ω„Ψ¨Ψ±ΩŠΨ―ΨŸ")
print(response)

Raw adapter (without Compound AI system)

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel

base = AutoModelForCausalLM.from_pretrained("silma-ai/SILMA-9B-Instruct-v1.0")
tokenizer = AutoTokenizer.from_pretrained("silma-ai/SILMA-9B-Instruct-v1.0")
model = PeftModel.from_pretrained(base, "vext-ma/silma-darija-9b-lora")
model = model.merge_and_unload()

πŸ—οΈ Architecture β€” Compound AI System

derej.Client.chat(prompt)
    β”‚
    β”œβ”€β”€ Step 0: Sovereign Epistemic Shield
    β”‚     β”œβ”€β”€ Fake law detection (19 verified laws only)
    β”‚     β”œβ”€β”€ Mythical entity gating
    β”‚     β”œβ”€β”€ Fictitious institution gating
    β”‚     └── Hazardous practice interception
    β”‚
    β”œβ”€β”€ Step 1: Tool Routing (ONCF, BAM, CNSS)
    β”œβ”€β”€ Step 2: Moroccan Monetary Engine (MAD/Ryal/Centimes)
    β”œβ”€β”€ Step 3: Domain Handlers (civic, legal, tech, culinary, automotive)
    └── Step 4: Graph-RAG + ColBERT Fallback
          β”œβ”€β”€ Knowledge Graph (18 legal entities, multi-hop BFS)
          └── Speculative Semantic Cache (cosine threshold 0.85)

πŸ“Š Training Details β€” Sovereign v3 Master

Parameter Value
Base model silma-ai/SILMA-9B-Instruct-v1.0
Method QLoRA (4-bit NF4)
LoRA rank 32
LoRA alpha 64
Training data Moroccan Darija Sovereign v3 Master + v4 Frontier
Dataset size ~45,000+ curated examples
Training steps ~2,900
Training platform Kaggle GPU (T4 x2)

πŸ”’ Privacy

  • No personal audio, voices, or biometric data in this repository
  • No private training optimizer states (checkpoint optimizer.pt / rng_state removed)
  • Community users bring their own voices for zero-shot TTS cloning
  • Only model weights (adapter_model.safetensors) and tokenizer config are published

πŸ“œ Citation

@misc{vext2026silma,
  title={DerejLLM: A Sovereign Compound AI System for Moroccan Darija},
  author={Vext Research Team},
  year={2026},
  publisher={HuggingFace},
  url={https://huggingface.co/vext-ma/silma-darija-9b-lora}
}
Downloads last month
4
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for vext-ma/silma-darija-9b-lora

Adapter
(2)
this model

Dataset used to train vext-ma/silma-darija-9b-lora

Space using vext-ma/silma-darija-9b-lora 1