Darija LLM Lab β proof of concept
This repository contains an experimental, decoder-only Darija language model trained from random initialization. It is a small educational proof of concept, not a production-ready language model.
Illustrations
The following figures are simplified illustrations for orientation. They explain the POC architecture, data flow, and observed training trace; they are not deployment diagrams or claims of language quality.
Illustrative architecture: a compact GPT-style decoder with learned token and position embeddings, two Transformer blocks, and a next-token output head.
Illustrative workflow: the Darija-only corpus is split before tokenizer training, converted to context windows, and used for a small from-scratch training run.
Illustrative plot of the saved validation measurements through step 500. The plotted values are from this POC run; the chart is not an external benchmark.
Model
- Architecture: GPT-style decoder with 2 Transformer blocks
- Embedding width: 64
- Attention heads: 4
- Context length: 64 tokens
- Tokenizer: ByteLevel BPE, 2,000-token vocabulary
- Training checkpoint: step 500
The model weights are in model.safetensors; the tokenizer is in tokenizer.json; config.json records the architecture settings.
Training data and evaluation
Training used the darija column from AtlasIA's darija_english dataset, pinned to revision c6468fe948155c935c7a8ce59db7df895ad1296a. The project created its own split: 900 training documents and 100 validation documents. No dataset files are included in this repository.
At step 500, validation cross-entropy was 6.6795 and perplexity was 795.94 for this tokenizer and split. These values are useful as a POC training trace, not as a general benchmark. The generated samples remain repetitive and are not reliable fluent Darija.
The source dataset declares CC BY-NC 4.0. This model card does not assign a separate license to the derived checkpoint; review the source terms and any applicable rights before reuse or redistribution.
Code
The model class and training pipeline are in the Darija LLM Lab GitHub repository, especially notebook 08. This checkpoint uses that custom PyTorch architecture and is not directly loadable as a Transformers AutoModel.
Files
model.safetensorsβ model parameters only; optimizer state is excludedtokenizer.jsonβ project BPE tokenizerconfig.jsonβ model dimensionsevaluation_summary.jsonβ dataset provenance and held-out metrics without corpus text
- Downloads last month
- 35