Nile-Chat-12B, 4-bit MLX

MBZUAI-Paris/Nile-Chat-12B (Egyptian Arabic, based on Gemma 3 12B) converted to 4-bit MLX for Apple Silicon, ~6.6 GB.

  • Conversion: mlx_lm.convert --quantize --q-bits 4 --q-group-size 64 (mlx-lm 0.32), unchanged otherwise.
  • Used by Masry Dictate, a macOS dictation app for Egyptian Arabic.

Prompting

Nile-Chat follows instructions written in Egyptian Arabic and ignores English ones. For translation, send a single user message (no system message) in the format of its authors' evaluation prompts:

ترجم من المصري للإنجليزي:
<Egyptian Arabic text>
from mlx_lm import generate, load

model, tokenizer = load("<this repo>")
messages = [{"role": "user", "content": "ترجم من المصري للإنجليزي:\nالراجل ده دمه خفيف جدا"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=120))  # He's a funny guy.

License

Gemma is provided under and subject to the Gemma Terms of Use, including the Gemma Prohibited Use Policy. See notice.txt. All rights in the original model remain with MBZUAI-Paris and Google.

Downloads last month
23
Safetensors
Model size
12B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Mng-dev-ai/Nile-Chat-12B-MLX-4bit

Quantized
(4)
this model

Dataset used to train Mng-dev-ai/Nile-Chat-12B-MLX-4bit