Downloads · 30 days
0
neemon/anlp-a2-part1-dense
anlp-a2-part1-dense is a translation model from neemon. Use it when you need text moved from one language to another. It is set up for pytorch. The card lists the license as mit.
Decoder-only transformer with dense two-layer MLP feed-forward (the baseline).
Downloads · 30 days
0
Access
Public
Updated Oct 1, 2026
Repo size
333 MB
Likes
0
Public
Click a slice to open those files.
.pt166 MB · 98%
From the Hugging Face model README
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.
| 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 |
| Count | Value |
|---|---|
| Total | 41,579,008 |
| Active per token | 41,579,008 |
| Feed-forward (total / active) | 16,797,696 / 16,797,696 |
| Metric | Value |
|---|---|
| Perplexity (both directions) | 9.27 |
| BLEU vi->en | 35.25 |
| BLEU ja->en | 25.45 |
| BLEU mean | 30.35 |
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")