SupraLabs/Supra-50M-Base
("Project Chimera"), re-run from scratch on an Arabic corpus with a custom Arabic tokenizer.kaust-generative-ai/fineweb-edu-ar (Arabic).الملخص بالعربية: «إمحوتب» نموذج لغوي عربي صغير (~51.8 مليون معامل) بمعمارية Llama، مُدرَّب من الصفر على ~20 مليار رمز (token) عربي بطول سياق 2048. نموذج أساس (Base) بدون ضبط تعليمات أو محادثة. الهدف: إثبات إمكانية تدريب نموذج عربي مفيد على نطاق صغير جدًا يعمل حتى على المعالج (CPU). المعمارية وسكربتات التدريب مشتقة منSupraLabs/Supra-50M-Base.
| Parameters | ~51.8M |
| Architecture | Llama (LlamaForCausalLM) |
| Hidden size | 512 · Layers 12 · Heads 8 (GQA, 4 KV) · head_dim 64 |
| Intermediate size | 1408 |
| Vocab size | 32000 (custom Arabic byte-level BPE) |
| Context length | 2048 |
| Positional encoding | RoPE (θ = 10000) |
| Tied embeddings | yes |
| Type | Base / pretrained (no chat template) |
| License | Apache-2.0 |
kaust-generative-ai/fineweb-edu-ar
(config ar), streamed and tokenized to a memory-mapped token bin.ByteLevelBPETokenizer), vocab 32000,
specials <s> / </s> / <unk> / <pad>.torch.compile, effective batch 128
(per-device 16 × grad-accum 8).SupraLabs/Supra-50M-Base
("Project Chimera — 50M Llama"). The pretraining script (train.py) is included in
this repository.TokenizersBackend class, which requires transformers>=5.12.
This is a base model — prompt it as a text completer, not a chat assistant:1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "oddadmix/50M-2048-Emhotob"
5tok = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16)
7
8prompt = "اللغة العربية هي"
9ids = tok(prompt, return_tensors="pt").to(model.device)
10out = model.generate(
11 **ids, max_new_tokens=128, do_sample=True,
12 temperature=0.8, top_p=0.9, repetition_penalty=1.2,
13)
14print(tok.decode(out[0], skip_special_tokens=True))| Model | What it does |
|---|---|
oddadmix/Nawah-50M-Egyptian-18y-Persona | Speaks with an 18-year-old Egyptian persona |
oddadmix/Emhotob-50M-GPRO-Arabic-Final | Arabic tool-calling / function-calling (GRPO-tuned) |
repetition_penalty). Training data is web text (fineweb-edu-ar), so it
carries that corpus's biases. Not suitable for factual, medical, legal, or financial use.SupraLabs/Supra-50M-Base — "Project Chimera" (Apache-2.0).kaust-generative-ai/fineweb-edu-ar.