Safetensors
Arabic
French
Spanish
gemma4
darija
moroccan-arabic
northern-darija
lora-merged
raft-ready
unsloth
Instructions to use ChamalyAI/gemma4-E2B-chamaliya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use ChamalyAI/gemma4-E2B-chamaliya with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ChamalyAI/gemma4-E2B-chamaliya to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ChamalyAI/gemma4-E2B-chamaliya to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ChamalyAI/gemma4-E2B-chamaliya to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="ChamalyAI/gemma4-E2B-chamaliya", max_seq_length=2048, )
Gemma4-E2B Darija North — Merged (RAFT Ready)
This is a fully merged (LoRA weights fused into base model) version of google/gemma-4-E2B-it
fine-tuned on ~60K Northern Moroccan Darija (Jebli dialect) samples.
Training
- Base model:
google/gemma-4-E2B-it - Dataset: Northern Darija dialect data (~60K samples)
- Method: LoRA fine-tuning via Unsloth on Kaggle T4x2
- LoRA rank: 16, alpha: 32
- This model: LoRA adapter merged into base → full model, no adapter needed
RAFT Ready
Because the adapter is merged, this model can be used directly as a policy model
for RAFT (Reward rAnked Fine-Tuning) without any special adapter handling.
Dialect Features
- Northern Darija / Jebli phonology: preserved Qaf (ق), not shifted to Gaf
- Pronouns: uses شمالي gender-neutral forms (نتينا)
- Spanish loanwords: النيبيرا (nevera), etc.
- Diminutives: عايل ستيتو / عايلة ستيتوة
- Time expressions: القايلة, etc.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ChamalyAI/gemma4-E2B-chamaliya", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("ChamalyAI/gemma4-E2B-chamaliya")
- Downloads last month
- 12
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support