Downloads · 30 days
0
ibrahima2222/nanochat-d32
nanochat-d32 is a machine learning model from ibrahima2222. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
A 32-layer language model trained with SFT (Supervised Fine-Tuning) and RL (Reinforcement Learning via GRPO).
Downloads · 30 days
0
Access
Public
Updated Jan 9, 2026
Repo size
14.5 GB
Likes
0
Public
Click a slice to open those files.
.pt14.5 GB · 100%
From the Hugging Face model README
A 32-layer language model trained with SFT (Supervised Fine-Tuning) and RL (Reinforcement Learning via GRPO).
| Parameter | Value |
|---|---|
| Layers | 32 |
| Hidden Dimension | 2048 |
| Attention Heads | 16 |
| KV Heads | 16 |
| Vocab Size | 65,536 |
| Context Length | 2048 |
| MLP Type | ReLU² |
| RoPE Theta | 10,000 |
sft/)model_035900.pt (7.2GB)SFT Training Config:
rl/)model_000499.pt (7.2GB)RL Training Config:
import torch
# Load SFT checkpoint
sft_state = torch.load("sft/model_035900.pt", map_location="cpu")
# Load RL checkpoint
rl_state = torch.load("rl/model_000499.pt", map_location="cpu")
These checkpoints are in raw PyTorch format, ideal for interpretability tools like TransformerLens, baukit, or nnsight.
# Example: inspect model weights
state_dict = torch.load("rl/model_000499.pt", map_location="cpu")
print(state_dict.keys())
# Access specific layer weights
layer_10_attn = state_dict["transformer.h.10.attn.c_attn.weight"]
Apache 2.0