ANLP Assignment 2 (part2): muon

Decoder-only transformer with Muon (matrix-based, Newton-Schulz orthogonalised momentum), implemented from scratch.

Trained from scratch for IIIT-H Advanced NLP, Monsoon 2026. Architecture, training code and evaluation live in the assignment repository. This repository holds the checkpoint and the tokenizer it was trained with, which every model in the assignment shares.

Architecture

Setting Value
d_model 512
n_layers 8
n_heads 8
n_kv_heads 8
n_ctx 256
vocab_size 32000
ffn dense
d_ff 2048
n_routed_experts 0
n_shared_experts 0
top_k 0
norm rmsnorm

Training

  • Scored target tokens: 43,021,354
  • Best validation loss: 3.4554
  • Best validation perplexity: nan

Loading

import torch
payload = torch.load("model.pt", map_location="cpu", weights_only=False)
state_dict, config = payload["model"], payload["config"]

from tokenizers import Tokenizer
tokenizer = Tokenizer.from_file("tokenizer.json")
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support