Downloads · 30 days
7
23% of all-time downloads
Prateek-Tiwari10/LMA_bonus_nopos_hindi
LMA_bonus_nopos_hindi is a machine learning model from Prateek-Tiwari10. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
An 11-layer decoder-only Transformer trained on Hindi with the learned absolute positional table removed entirely (positional: "none"), so the model has no explicit representation of token order.
Downloads · 30 days
7
23% of all-time downloads
All-time downloads
31
Public
Parameters
25.7M
103 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors103 MB · 100%
From the Hugging Face model README
An 11-layer decoder-only Transformer trained on Hindi with the learned
absolute positional table removed entirely (positional: "none"), so the
model has no explicit representation of token order.
Everything else matches the standard Hindi model it is compared against — the same 16K tokenizer, the same corpus and split, the same one-epoch horizon, and the same optimiser recipe (peak LR 3e-3, 750 warmup steps, 32 x 2 x 512 tokens per step). Training-set size, schedule and seed are held constant, so the only variable is the positional table.
| standard | ablated (this model) | |
|---|---|---|
| parameters | 25,860,480 | 25,663,872 |
| positional table | 512 x 384 learned | none |
| layers / d_model / heads | 11 / 384 / 6 | 11 / 384 / 6 |
| steps | 16,125 (1 epoch) | 16125 |
| final val loss | 3.4033 | 3.4262 |
| best val loss | 3.4033 | 3.4262 |
It does not make the model order-blind. Causal attention is itself a positional signal: with the mask in place, position t attends to 0..t, so representations at different positions are built from different prefixes. A one-layer no-positional model is genuinely permutation-invariant over its prefix, but from two layers onward that invariance is gone. This model therefore has to infer order from the causal mask rather than read it from an embedding — a weaker and less direct signal, which is what the evaluation measures.
from huggingface_hub import snapshot_download
from safetensors.torch import load_file
import json
d = snapshot_download("Prateek-Tiwari10/LMA_bonus_nopos_hindi")
cfg = json.load(open(f"{d}/config.json"))
weights = load_file(f"{d}/model.safetensors")
The architecture is lm/model.py in the project repository, not a
transformers class. build_model re-ties the output head to the token
embedding, which is why no lm_head tensor is stored.