Downloads · 30 days
0
mdhvm/anlp-m26-a1-cipher-transformers
anlp-m26-a1-cipher-transformers is a machine learning model from mdhvm. 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.
Checkpoints for Advanced NLP Assignment 1 — An encoder–decoder Transformer, written from elementary PyTorch operations, is trained to recover plaintext from a repeating-key XOR cipher. Five configurations differ from…
Downloads · 30 days
0
Access
Public
Updated Sep 3, 2026
Repo size
131 MB
Likes
0
Public
Click a slice to open those files.
.pt131 MB · 99%
From the Hugging Face model README
Checkpoints for Advanced NLP Assignment 1 — An encoder–decoder Transformer, written from elementary PyTorch operations, is trained to recover plaintext from a repeating-key XOR cipher. Five configurations differ from the base model in exactly one component each — rotary positions, grouped-query attention, RMSNorm, and a token-free Byte Latent Transformer with entropy-based dynamic patching — and are compared at an identical step budget over three seeds.
import torch, sys
sys.path.insert(0, "src")
from train import CONFIGS, build_model
ck = torch.load("C1/best.pt", map_location="cpu")
# build_model(CONFIGS["C1"], ck["hp"], bundle, device) -- see src/evaluate.py
Training code, tests and the full study: see the accompanying submission.
| file | contents |
|---|---|
C*/best.pt | model state_dict plus the config and hyperparameters used |
C*/results.json | test metrics, efficiency numbers, OOD probes |
C*/history.json | per-eval training curves |
tokenizers/bpe_*.json | the from-scratch BPE vocabulary and merge list |
tables/, figures/ | aggregated ablation tables and plots |