Skip to page content
SAVRN
Search Plan a project

Open-weight model · Translation

2025801013-anlp-assignment2

by Samvaran Kashyap Rallabandi samvaran/2025801013-anlp-assignment2

2025801013-anlp-assignment2 is an open-weight model for translation from Samvaran Kashyap Rallabandi, released under MIT License. Its published files total 729.0 MB.

trained at two token budgets. Everything except the feed-forward block is identical across variants, so any measured difference is attributable to the FFN alone.

Parameters—
Context—
Weights727.8 MB
Licensemit
AccessOpen weights
Monthly Downloads—

Model Card

By Samvaran Kashyap Rallabandi, published under mit, revision 4ccfe77f520c.

trained at two token budgets. Everything except the feed-forward block is identical across variants, so any measured difference is attributable to the FFN alone. Trained on belumind/en-vi-ja-curated-500k-triplets for Vietnamese→English and Japanese→English translation. A dense 2-layer MLP of hidden width Variants 2–4 split that same budget across four experts (h/4 each), so total parameters match the dense baseline. Variant 5 instead sizes experts at h/2 so that active parameters match the baseline, giving twice the total. (100M tokens). The token budget is identical within each group — that equality is what makes the comparison valid. 6 layers, dmodel 384, 6 heads, dff 1536, context 256…

Read Samvaran Kashyap Rallabandi's full model card

Mixture-of-Experts FFN ablations — Advanced NLP Assignment 2

Ten decoder-only translation models: five feed-forward variants, each trained at two token budgets. Everything except the feed-forward block is identical across variants, so any measured difference is attributable to the FFN alone.

Trained on belumind/en-vi-ja-curated-500k-triplets for Vietnamese→English and Japanese→English translation.

Variants

A dense 2-layer MLP of hidden width h costs 2·d·h per layer. Variants 2–4 split that same budget across four experts (h/4 each), so total parameters match the dense baseline. Variant 5 instead sizes experts at h/2 so that active parameters match the baseline, giving twice the total.

run experts active total params active params
dense — — 16,765,824 16,765,824
moe_top1 4 1 16,775,040 11,466,624
moe_top2 4 2 16,775,040 13,236,096
moe_shared 1 shared + 3 routed 2 16,772,736 13,233,792
moe_active_matched 4 2 23,852,928 16,775,040

Each exists at two budgets: <name> (30M tokens) and <name>-100m (100M tokens). The token budget is identical within each group — that equality is what makes the comparison valid.

Architecture

6 layers, d_model 384, 6 heads, d_ff 1536, context 256, RMSNorm pre-norm, RoPE, tied embeddings, 16k byte-level BPE shared across all three languages.

Results

Test perplexity and BLEU (sacrebleu, signature nrefs:1|case:mixed|eff:no|tok:13a|smooth:exp|version:2.6.0):

variant ppl 30M ppl 100M vi→en 30M vi→en 100M ja→en 30M ja→en 100M
dense 23.75 5.60 0.73 3.20 0.50 2.28
moe_top1 31.81 6.60 1.41 4.69 0.81 3.02
moe_top2 25.59 5.59 2.09 1.75 1.02 1.71
moe_shared 30.13 6.60 0.55 7.24 0.23 3.98
moe_active_matched 22.99 5.29 2.63 7.23 1.61 4.24

Limitations

These are coursework models and translation quality is low.

  • At 100M tokens the models sit at ~6 tokens per parameter, well under the Chinchilla-optimal ~20. They are undertrained by design, to fit ten runs into the available compute.
  • Roughly 24% of generations from the best model degenerate into repetition. The models translate short formulaic inputs reasonably and collapse on harder ones.
  • BLEU in the 2–7 range is far below production systems (25–40). The numbers support relative comparison between variants, which is what the ablation needs, but should not be read as translation quality.

Usage

import torch
from huggingface_hub import hf_hub_download

path = hf_hub_download(
    repo_id="samvaran/2025801013-anlp-assignment2",
    filename="part1/moe_active_matched-100m/model.pt",
)
state = torch.load(path, weights_only=False)
print(state["model_config"])   # architecture
print(state["tokens_seen"])    # training budget actually consumed

Each checkpoint stores model_state, model_config, train_config and tokens_seen. The model class and tokenizer live in the code repository; assets/tokenizer.json there is required to encode or decode.

Identity and Version

Repository
samvaran/2025801013-anlp-assignment2
Publisher
Samvaran Kashyap Rallabandi
Task
Translation
Modality
Text
Library
Not stated by the source
Parameters
Not stated by the source
Languages
en, vi, ja
Revision
4ccfe77f520c9b8818795f771e57c8ca2606f420
First published
2026-10-01
Last updated
2026-10-01

Files and Weights

13 files, 729.0 MB in total. The weights are 10 files totalling 727.8 MB in pt.

Weights10 files · 727.8 MB
Tokenizer1 file · 1.2 MB
Documentation1 file · 3.4 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
part1/dense-100m/model.ptWeights67.1 MB e17ee0e9a28e
part1/dense/model.ptWeights67.1 MB 43df91674272
part1/moe_active_matched-100m/model.ptWeights95.4 MB dfff49c154ad
part1/moe_active_matched/model.ptWeights95.4 MB b273c915ed21
part1/moe_shared-100m/model.ptWeights67.1 MB c38d5963e352
part1/moe_shared/model.ptWeights67.1 MB 7688e8c9eb2a
part1/moe_top1-100m/model.ptWeights67.1 MB af3c80730d4f
part1/moe_top1/model.ptWeights67.1 MB a4d4457d5b90
part1/moe_top2-100m/model.ptWeights67.1 MB 6361e2ce32a9
part1/moe_top2/model.ptWeights67.1 MB cc202a2e335d
README.mdDocumentation3.4 KB —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer1.2 MB —

License and Download

License
mit
Access
Open weights, no gate
Download size
727.8 MB
Download from Samvaran Kashyap Rallabandi

Released by Samvaran Kashyap Rallabandi through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) belumind/en-vi-ja-curated-500k-triplets

Memory Requirements

PrecisionWeights in memory
As published727.8 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About 2025801013-anlp-assignment2

Can I use 2025801013-anlp-assignment2 commercially?

Yes. 2025801013-anlp-assignment2 is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

source languages: nl; target languages: en; OPUS readme: nl-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers

Model · Translation

nllb-200-distilled-600M

AI at Meta

This is the model card of NLLB-200's distilled 600M variant. Here are the metrics for that particular checkpoint. - Information about training algorithms, parameters, fairness constraints or other applied approaches, and features. The exact training algorithm, data and the strategies to handle data imbalances for high and low resource languages that were used to train NLLB-200 is described in the paper. - Paper or other resource for more information NLLB Team et al, No Language Left Behind: Scaling Human-Centered Machine Translation, Arxiv, 2022 - Where to send questions or comments about the model: https://github.com/facebookresearch/fairseq/issues • Model performance measures: NLLB-200…

Open weights cc-by-nc-4.0 1,024 tokens transformers

source languages: en; target languages: ru; OPUS readme: en-ru; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers

This model can be used for translation and text-to-text generation. CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Further details about the dataset for this model can be found in the OPUS readme: en-de

Open weights cc-by-4.0 512 tokens transformers

hfname: kor-eng - sourcelanguages: kor - targetlanguages: eng - opusreadmeurl: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/kor-eng/README.md - originalrepo: Tatoeba-Challenge - srcconstituents: {'korHani', 'korHang', 'korLatn', 'kor'} - tgtconstituents: {'eng'} - srcmultilingual: False - tgtmultilingual: False - urlmodel: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.zip - urltestset: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.test.txt - srcalpha3: kor - tgtalpha3: eng - shortpair: ko-en - chrF2score: 0.588 - brevitypenalty: 0.9590000000000001 - reflen: 17711.0 - srcname: Korean - tgtname: English - traindate…

Open weights apache-2.0 512 tokens transformers

source languages: de; target languages: en; OPUS readme: de-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers