Downloads · 30 days
0
Babajaan/nanochat-ar
nanochat-ar is a text generation model from Babajaan. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
This repository contains a small Arabic nanochat proof-of-competence checkpoint trained from scratch on King Abdulaziz University Aziz HPC.
Downloads · 30 days
0
Access
Public
Updated Jul 2, 2026
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.pt1.6 GB · 100%
From the Hugging Face model README
This repository contains a small Arabic nanochat proof-of-competence checkpoint trained from scratch on King Abdulaziz University Aziz HPC.
This is not a production Arabic LLM and does not claim state-of-the-art performance. The purpose is to document and release an end-to-end HPC training artifact: Arabic corpus processing, tokenizer training, base pretraining, evaluation, supervised fine-tuning, and checkpoint generation.
Optimizer states and the full raw corpus are not uploaded.
| Stage | Result |
|---|---|
| Arabic Wikipedia dump | 1,219,201 articles |
| Clean train split | 1,190,864 lines |
| Clean validation split | 12,028 lines |
| Tokenizer vocabulary | 32,768 |
| Base model | 12 layers, 286,261,730 parameters |
| Base checkpoint | ar-d12-eager, step 50 |
| Base validation BPB | 1.214387 |
| Base eval train BPB | 1.118719 |
| Base eval validation BPB | 1.214387 |
| SFT dataset | 2,000 generated Arabic instruction examples |
| SFT checkpoint | chatsft_checkpoints/ar-d12-eager, step 2 |
| SFT validation BPB | 1.0228 |
Clone karpathy/nanochat, install its environment, then use this repository as the NANOCHAT_BASE_DIR layout.
Commands:
export NANOCHAT_BASE_DIR=/path/to/this/repo
export NANOCHAT_DTYPE=float32
cd /path/to/nanochat
source .venv/bin/activate
python -m scripts.chat_cli --device-type cpu --source sft --model-tag ar-d12-eager --step 2 --prompt 'مرحبا، من أنت؟'
For GPU inference, use an A100 or similar GPU and the standard nanochat chat CLI/web server.
This project used King Abdulaziz University Aziz HPC resources. Built on karpathy/nanochat under the MIT license.