Model Details
Table with columns: Property, Value| Property | Value |
|---|
| Base model | Qwen/Qwen3-4B-Base |
| Model size | ~4B parameters |
| Architecture | Qwen3 |
| Model type | Causal language model |
| Primary language | Algerian Darja / Algerian Arabic |
| Training approach | Continued pretraining / language-model adaptation |
| Training data | DarjaCore Algerian Darja Dataset |
| Dataset fraction | ~5–10% |
| Repository | DarjaCore/Qwen3-4B-Algerian-Darja |
Training Data
The source dataset contains approximately:
- 3,209,157 conversational samples
- 1.193B estimated tokens
- 371.83 tokens per sample on average
The dataset is structured as conversational message pairs containing user and assistant roles.
Example:
{
"messages": [
{
"role": "user",
"content": "واش راك اليوم؟"
},
{
"role": "assistant",
"content": "راني مليح الحمد لله، ونتا؟"
}
]
}
The dataset contains natural Algerian online language, including:
- Algerian Darja written in Arabic script
- Latin-script Darja
- Arabizi / Franco-Arabic
- French expressions
- English expressions
- Code-switching
- Informal vocabulary
- Internet abbreviations
- Emojis
- Non-standard spelling
Dataset:
https://huggingface.co/datasets/DarjaCore/algerian-darja-forum-posts
Training
The purpose of this training run was to investigate how effectively a relatively small portion of Algerian Darja data can adapt a general-purpose language model toward Algerian linguistic patterns.
The model was not trained on the complete DarjaCore corpus. Approximately 5–10% of the available dataset was used for this experiment.
Dataset Scale
Full dataset:
Samples: 3,209,157
Estimated tokens: 1,193,257,847
Approx. tokens: 1.193B
Training subset:
Approximately 5–10% of the full dataset
The exact number of samples and tokens used in the training run may differ depending on dataset selection, preprocessing, filtering, and tokenization.
Token counts are tokenizer-dependent.
Intended Use
This model is primarily intended for research and experimentation involving Algerian Darja and Algerian Arabic NLP.
Potential use cases include:
- Algerian Darja text generation
- Algerian Darja language modeling
- Dialect adaptation research
- Continued pretraining experiments
- Algerian Arabic NLP research
- Language-model evaluation
- Research into dialect-specific language modeling
- Experimental conversational applications
What This Model Is Not
This release should not be considered:
- A fully trained Algerian Darja foundation model
- A model trained on the complete DarjaCore corpus
- A production-ready conversational assistant
- A benchmark representing the maximum capability of Qwen3-4B on Algerian Darja
- A replacement for the original Qwen3-4B-Base model
This is an experimental language adaptation release based on a subset of the available training data.
Limitations
Because only a subset of the available corpus was used, the model may have limited coverage of:
- Algerian Darja vocabulary
- Regional dialect variations
- Arabizi and Latin-script Darja
- Code-switching patterns
- Spelling variations
- Long-context conversations
- Instruction following
- General factual knowledge
- Conversational consistency
The model may also retain linguistic patterns, behaviors, and capabilities inherited from the original Qwen3-4B base model.
Training on a larger portion of the DarjaCore corpus may improve Darja coverage, but this has not yet been established through a controlled benchmark.
Evaluation
No standardized Algerian Darja benchmark is currently provided with this release.
Initial qualitative evaluation can focus on:
- Naturalness of Algerian Darja
- Algerian vocabulary and expressions
- Arabic-script Darja
- Latin-script Darja
- Arabizi handling
- French/Darja code-switching
- Response coherence
- Conversational consistency
- Instruction following
Future DarjaCore releases may include dedicated evaluation datasets and quantitative benchmarks for Algerian Darja.
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "DarjaCore/Qwen3-4B-Algerian-Darja"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto"
)
messages = [
{
"role": "user",
"content": "واش راك اليوم؟"
}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(
text,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=256
)
response = tokenizer.decode(
outputs[0][inputs["input_ids"].shape[1]:],
skip_special_tokens=True
)
print(response)
Model Architecture
The model is based on the Qwen3 4B architecture and retains the architecture and tokenizer of the base model.
Base model:
Qwen/Qwen3-4B-Base
The repository contains the model weights and configuration required for inference.
Relationship to DarjaCore
DarjaCore is an open research project focused on Algerian Darja, Algerian Arabic NLP, datasets, language models, and language technologies.
This model is one experimental step toward developing language models with stronger representation of Algerian linguistic patterns.
Future Work
Planned or potential future work includes:
- Training on a larger portion of the DarjaCore corpus
- Full-corpus continued pretraining experiments
- Larger Qwen model variants
- Dedicated Algerian Darja instruction datasets
- Human evaluation
- Automated Algerian Darja benchmarks
- Regional dialect evaluation
- Arabizi evaluation
- Code-switching evaluation
- Improved conversational alignment
- Comparison with multilingual and Arabic-focused models
Dataset
DarjaCore — Algerian Darja Dataset
https://huggingface.co/datasets/DarjaCore/algerian-darja-forum-posts
Current dataset scale:
Samples: 3,209,157
Estimated tokens: 1,193,257,847
Approx. tokens: 1.193B
Token counts are estimates and depend on the tokenizer used.
Base Model
Qwen3-4B-Base
https://huggingface.co/Qwen/Qwen3-4B-Base
This model is an adaptation of the original Qwen3-4B-Base model and should be evaluated independently from the base model.
License
This repository uses the license specified for this model release.
Users should also review the licensing terms of the base model and the DarjaCore dataset before using the model or dataset in a particular application.
Acknowledgements
Thanks to the Qwen team for the Qwen3 model family and to contributors to the open-source Algerian Arabic and Darja NLP ecosystem.
Citation
If you use this model in your research or project, please cite:
@misc{darjacore_qwen3_4b_algerian_darja,
author = {DarjaCore},
title = {Qwen3-4B-Algerian-Darja},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/DarjaCore/Qwen3-4B-Algerian-Darja}
}
For the training dataset:
@dataset{darjacore_algerian_darja,
author = {DarjaCore},
title = {Algerian Darja Dataset},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/DarjaCore/algerian-darja-forum-posts}
}
Project
DarjaCore — Algerian Language and AI Research
https://huggingface.co/DarjaCore