ANLP Assignment 2 (part1): dense

Decoder-only transformer with dense two-layer MLP feed-forward (the baseline).

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

Parameters

Count Value
Total 41,579,008
Active per token 41,579,008
Feed-forward (total / active) 16,797,696 / 16,797,696

Test set results

Metric Value
Perplexity (both directions) 9.27
BLEU vi->en 35.25
BLEU ja->en 25.45
BLEU mean 30.35

Training

  • Scored target tokens: 33,393,292
  • Best validation loss: 1.9864
  • Best validation perplexity: 7.29

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