Sourojit Dhua — Small Model Field GuideSMALL MODEL FIELD GUIDESOUROJIT DHUA / AKSHARALP
AksharaLP / Engineering field guide First edition · November 2026

Small enough to ship.
Rigorous enough to trust.

Build tiny, on-device models—from the dataset you can defend to the system people can actually use.

Sourojit Dhua/sourojitdotcom·~61 min read·21 chapters + worked code
01 / DATA02 / TEACHER03 / STUDENT04 / DEVICEBuild the signalTransfer behaviorSpend capacityShip the systemprovenance + splitstargets + distributions~989K parameterssearch + local inference
  1. Data
  2. Teacher
  3. Student
  4. Device

Conceptual flow · original illustration by Sourojit Dhua · © 2026, all rights reserved. Parameter scale: AksharaLP word models [24].

Small enough to ship.
Rigorous enough to trust.

A practical guide to building tiny, on-device models

Sourojit Dhua · sourojitdotcom
The AksharaLP engineering case study
First edition · November 2026

The most useful way to make a model small is not to compress a large ambition. It is to identify precisely which part of the problem needs learning—and refuse to spend parameters on the rest.

A million parameters can be enough to build something useful—if you stop asking them to do everything. AksharaLP is a spelling system, not a miniature oracle. Its strongest design decisions happen before a layer is initialized: choose a narrow task, preserve the right training signal, and put explicit knowledge where a neural network would waste capacity.

Here is how I approach compact models: define a narrow contract, build an auditable dataset, train a student from random initialization, refine its training signal with teachers, and evaluate the complete deployed system, not a flattering fragment of it. AksharaLP is the running example: Roman-script input becomes Hindi, Bengali, Telugu, Kannada or Tamil script, on the user's device.

This is a guide to engineering judgment, not a recipe for claiming that a million parameters can replace a general-purpose LLM. I show unsuccessful experiments, a licensing catch, and a result I had to retract. Those are not footnotes to the method. They are part of the method.

What you will build

  • An auditable dataset: source licences, normalization, leakage-safe splits and teacher-generated pairs.
  • A character encoder–decoder: random initialization, an exact parameter budget and a measurable training loop.
  • A refinement pipeline: hard or sequence-level distillation, domain adaptation and export-matched QAT.
  • A complete on-device system: quantized weights, beam search, a learned dictionary reranker and a responsive browser worker.
  • A credible release: confidence intervals, a byte manifest and a model card that explains the limits as clearly as the wins.

The worked snippets expose the mechanisms; production optimizations and omitted infrastructure are identified explicitly.

Prerequisites: Python, basic PyTorch, cross-entropy and train/validation/test splits. Some JavaScript helps for deployment. You do not need to train a foundation model.

Reading routes: builders: 1 → 3 → 4 → 5 → 6 → 7 → 10 → 12; researchers: 2, 5, 8–10, 19; product engineers: 1, 11–14, 16.

Choose your format: guide.html is self-contained, including fonts and media, with navigation, dark/light mode and motion controls. guide.pdf is a static, print-designed edition; animations appear as representative stills. Markdown media use relative paths in assets/.

Contents · 21 chapters
  1. 1. Start with a contract, not a parameter target
  2. 2. Match every claim to its measurement
  3. 3. Build the dataset as carefully as the model
  4. 4. Train the student from scratch
  5. 5. Refine with teachers—without confusing objectives
  6. 6. Quantize storage without misrepresenting compute
  7. 7. Spend computation on search before buying parameters
  8. 8. Shared multilingual weights are not free
  9. 9. Add context only where it earns its bytes
  10. 10. Evaluate as if your strongest claim might be wrong
  11. 11. Count bytes at the user's boundary
  12. 12. Deploy for the slow connection
  13. 13. Export GGUF without implying runtime support
  14. 14. Publish a card that survives scrutiny
  15. 15. An end-to-end build plan
  16. 16. The release checklist
  17. 17. Common mistakes and their diagnostics
  18. 18. FAQ
  19. 19. Reproducibility and source map
  20. 20. Media rights and accessibility
  21. 21. References

1. Start with a contract, not a parameter target

1.1 Transliteration is not translation

Transliteration changes how a word is written. Translation changes which language expresses its meaning. Turning tumi kemon acho into তুমি কেমন আছো is transliteration. Producing “How are you?” is translation. A transliterator need not know the answer to a question, summarize documents, or generate plausible explanations.

This distinction creates the size advantage. The model learns a constrained mapping between short character sequences. It need not store broad world knowledge or plan arbitrary responses. Input and output are strongly related, and each language's output alphabet is small.

Decision AksharaLP contract Why it matters
Task Romanized word → native-script candidates Tractable sequence lengths and output space
Language Explicit user selection No uncertain automatic script routing
Context Optional Hindi sentence rescoring Independent word conversion is not sentence understanding
Inference Local CPU, browser worker or reference runtime Startup and responsiveness matter alongside bytes
Quality Exact match, top-k, sentence metrics where applicable “Looks fluent” is not a benchmark
Rights Current combined release: non-commercial, attribution required A design constraint, not an afterthought

The principle generalizes to compact classifiers, wake-word detectors and narrow parsers: exploit problem structure. A model does not become a general LLM merely because both contain neural networks.

System decomposition: input, neural channel, candidate system, native output
Figure 1. The complete inference contract. Original diagram by Sourojit Dhua; source: released runtime and model card [24]. © 2026 Sourojit Dhua; rights reserved.

1.2 Optimize the complete Pareto frontier

Accuracy, bytes transferred, peak memory, startup, latency, energy and maintenance are different axes. A smaller file may decode more slowly. A frequency dictionary may help more than doubling the network. Shared weights may save bytes but make users load unrelated scripts.

My question is not “How small can I make the weights?” It is “What is the least expensive complete system that meets the user's task and quality requirements?”

Do not claim “smallest” without defining task, comparison set, quality threshold and accounting boundary. MultiIndic did not establish a smallest-ever or best-in-class result.

Key takeaways

  • Constrain the behavior before constraining the parameter count.
  • Optimize the complete system across quality, transfer, memory and responsiveness.

2. Match every claim to its measurement

A useful result has an address: which artifact, which split, which decoder and which accounting boundary? Without those coordinates, two accurate numbers can still produce a misleading comparison.

AksharaLP-MultiIndic-8M rounds 7,715,520 neural parameters, not one billion. Five independent word models total 4,944,768; optional Hindi sentence LM adds 2,770,752. Bengali has 989,056 parameters; the others each have 988,928. Dictionaries and small reranker coefficients are separate. Only selected components load. [S4, S5]

These are the frozen release's results, not a new experiment:

Language Test Roman inputs AksharaLP + dictionary top-1 % IndicXlit full package top-1 % Paired gap, points [95% CI]
Hindi 9,991 70.04 69.33 +0.71 [−0.04, +1.40]
Bengali 13,367 64.64 70.52 −5.88 [−6.52, −5.22]
Telugu 9,936 78.74 82.42 −3.67 [−4.27, −3.07]
Kannada 11,165 77.37 82.61 −5.24 [−5.83, −4.67]
Tamil 11,405 71.78 75.95 −4.16 [−4.75, −3.59]

Hindi reuses its earlier one-time evaluation. The others use frozen q4 weights and validation-fitted rerankers. IndicXlit comparisons reuse beam-8 PyTorch-port predictions with the official full-dictionary scoring formula; these are not fresh runs of the official fairseq package. Caveats belong beside results, not behind a promotional link. [S5]

Frozen release test top-1 comparison
Figure 2. Release-test point estimates; intervals and protocol accompany the table and section 10. Original chart by Sourojit Dhua from [S5]; frozen release measurements. © 2026 Sourojit Dhua; rights reserved.

The Hindi difference includes zero. “Comparable on this evaluation” is reasonable; “significantly better” is not. All four newly trained languages trail the full-package baseline. The achievement is a measured storage–quality trade-off.

I keep four evidence labels mentally separate:

  • Measured: a named artifact or log supports the number.
  • Illustrative: a teaching example, not a reported result.
  • Proposed: a next experiment, not something already achieved.
  • Literature: another author's result or method, cited separately.

The most dangerous mistakes are often category errors rather than arithmetic errors: a validation gain presented as test accuracy; a planned experiment written in the past tense; a byte count from one artifact paired with another artifact's score. Keeping those categories distinct prevents a convincing chart from turning into an incorrect claim.

Key takeaways

  • Bind every metric to its split, artifact and decoder.
  • Keep measured results, teaching illustrations and proposed experiments distinct.

3. Build the dataset as carefully as the model

A tiny model has less capacity to absorb contradictions. Better supervision is often more valuable than a cleverer layer. Dataset construction is a modeling step, not housekeeping.

3.1 Source complementary signals

Source Signal Role here Caution
Aksharantar [5] Roman/native word pairs, source categories and multiple references Human/mined supervision and evaluation Audit underlying aks-* sources, not just a repository label
Dakshina [6] Crowd Romanizations, lexicons and sentences Distribution diagnosis and sentence evaluation; some pairs also occur inside Aksharantar CC-BY-SA-4.0; derived material is not automatically Apache-only
IndicCorp v2 [8, 14] Native running text and frequencies Dictionary counts, training-side teacher seeds and Hindi LM text Record origin and preprocessing even with CC0 packaging
BanglaTLit [10] Human-typed Bengali chat, paired and unpaired material Chat channel, adaptation and research evaluation MIT repository terms; the mirror's train file contained held-out rows

Formal spelling pairs do not substitute for product data. Real comments expose vowel deletion, borrowed English, names, punctuation and inconsistent boundaries. Audit paired versus unpaired counts: a large corpus of Roman text without native targets cannot directly supervise back-transliteration.

Write a data card before training: purpose, languages/registers, URLs/revisions, licences, consent/privacy considerations, raw/filtered counts, split policy, normalization, overlaps, exclusions and checksums. An unknown source is not made safe by adding a licence to your output. BanglaTLit's repository carries MIT terms, but underlying public user comments still raise consent, privacy and third-party-rights questions; a repository licence is not individual author consent. [10, S2]

3.2 Keep provenance per row

The repository uses a compact training format:

roman<TAB>native<TAB>source

Tags include aks-Dakshina, aks-AK-Freq, aks-IndicCorp, aks-Samanantar, aks-Existing, ie and ei. They enable source filtering and resampling without rebuilding an opaque pool.

For new datasets, retain a richer JSONL ledger beside the TSV:

{
  "roman": "nomoskar",
  "native": "নমস্কার",
  "source": "illustrative-human-row",
  "upstream_revision": "REPLACE_WITH_PINNED_REVISION",
  "original_row_id": "REPLACE_WITH_SOURCE_ID",
  "normalizer_version": "nfc-v1",
  "licence_status": "UNVERIFIED",
  "generation": null
}

This is a schema example, not an assertion that this pair came from a named corpus. Generated rows also need teacher identifier/revision, direction, decoding options, seed ID and generation time. When duplicates have several origins, preserve all provenance in the ledger even if training uses one copy.

3.3 Audit rights before generating millions of rows

Samanantar was the consequential catch. Its Hugging Face card states CC-BY-NC-4.0, while the publisher's packaging page and parts of Aksharantar documentation describe CC0 packaging and disclaim ownership of extracted text. That conflict remains unresolved provenance—not proof that every mined pair has one settled legal status. [7, 12, 13, S4]

The four new training reports contained these Samanantar-tagged counts:

Bengali Telugu Kannada Tamil
114,558 42,413 36,482 34,447

The current combined release is CC-BY-NC-4.0, with attribution to Sourojit Dhua (sourojitdotcom). This does not erase upstream duties, resolve Dakshina share-alike questions or establish commercial cleanliness. Non-commercial terms are not a universal repair for incompatible rights. Existing Hindi components retain their independent Apache-2.0 grants. [S4, S5]

A strict clean-data build must exclude unresolved source families before teacher generation too. Generating a replacement from a restricted seed does not repair provenance. A permissively licensed teacher is not a rights-free certificate for every downstream dataset. This is engineering policy, not legal advice.

3.4 Normalize once, identically, everywhere

The word pipeline uses NFC and removes ZWJ/ZWNJ under its comparison convention; Roman inputs are lowercased and restricted to a short ASCII pattern. This is task-specific. Joiners and Unicode marks can matter: retain original text and audit before dropping them.

This teaching adaptation of build_pairs_multi.py assumes fixed script characters and precomputed held-out membership sets:

import re
import unicodedata

ROM = re.compile(r"[a-z]{1,30}")

def native_norm(text):
    return unicodedata.normalize(
        "NFC", text.replace("\u200c", "").replace("\u200d", ""))

def clean_training_rows(rows, held_romans, held_natives, allowed_chars):
    seen = set()
    for roman, native, source in rows:
        roman, native = roman.lower(), native_norm(native)
        if not ROM.fullmatch(roman):
            continue
        if not native or any(c not in allowed_chars for c in native):
            continue
        if roman in held_romans or native in held_natives:
            continue                    # human AND generated pairs
        if (roman, native) in seen:
            continue
        seen.add((roman, native))
        yield roman, native, source

Count every rejection by source. Independently reread the written TSV and verify overlaps. “Filtered leakage” in a log is weaker than checking the artifact itself.

Check raw lengths before encoding. Runtime input caps at 31 Roman characters; the builder uses a 30-character Roman cap. Encoders themselves truncate, so checking lengths after encoding can miss overlong examples. Explicitly exclude or handle them and disclose the inference policy.

3.5 Split by the unit that could leak

Random pair shuffling is insufficient when one native word has several Roman spellings. Group related items before splitting: native words, documents, speakers or conversations, according to the task.

The word builder excludes pairs if either Roman or native form occurs in validation/test membership sets. Four new reports record zero direct overlap under those checks. This does not establish absence of teacher pretraining overlap, near-duplicates or public-corpus frequency knowledge. [S4, S5]

For chat, compare raw strings and normalized token tuples. Removing held-out membership from the BanglaTLit mirror left 38,434 usable paired train rows, 25,259 with equal token counts. The length-filtered sentence-student bundle had 37,466 train / 1,466 validation rows and did not include the test split. [S2, S3]

Use protected split hashes. Membership removal is a mechanical audit, not permission to inspect test failures and improve the model against them.

Dataset build with provenance, teacher generation and held-out firewall
Figure 3. Dataset creation adapted from build_pairs_multi.py and gen_teacher_multi.py [S6]. Original diagram by Sourojit Dhua; © 2026 Sourojit Dhua; rights reserved.

3.6 Generate teacher pairs from training vocabulary

Two directions provide complementary supervision:

  1. ie, Indic → Roman: ask IndicXlit for Roman variants of frequent native words, prioritizing IndicCorp training vocabulary. Emit (generated Roman, original native).
  2. ei, Roman → Indic: decode native candidates from language-appropriate Roman training vocabulary. Emit (original Roman, generated native).

These are script directions, not semantic English translation. The offline teacher generates data and does not ship with the student.

The builder retains up to 4 ie variants within 0.6 log-score units of best, and up to 2 ei variants within 0.35. These are repository settings, not universal optima. Apply script, shape, held-out and duplicate filters again after generation. [S6]

# Teacher outputs must already be sorted best-first.
def close_candidates(outputs, margin, cap):
    if not outputs:
        return []
    best = outputs[0][1]
    return [(text, score) for text, score in outputs[:cap]
            if score >= best - margin]

# ie: emit(roman_variant, original_native, "ie")
# ei: emit(original_roman, native_variant, "ei")
# Send emitted pairs through clean_training_rows(...).

Audit stratified samples: common/rare words, lengths, borrowed words and ambiguities. Keep gold supervision. A teacher's systematic error can become a student's habit; canonical synthetic spellings can erase genuine human variation.

3.7 Synthetic chat remains a hypothesis

Experiment C proposed Qwen2.5-7B-Instruct, loaded in 4-bit, to generate two casual Romanizations from roughly 10,000 native seed sentences per language. Seeds exclude held-out text. A shared five-language student was planned. Its 16–24 T4 GPU-hour total is a planning estimate, not measured completion time or quality. [S7]

A generation prompt should request spelling variation without translation, semantic changes or reordered words. Record the native seed, language, full response and parsing status. Reject wrong scripts, malformed JSON, copied prompts and semantic translations. Human review remains essential; round-trip checking is another model's opinion, not gold evidence.

Proposed curriculum: paired human data → controlled synthetic mixture → genuine training-only chat adaptation. Evaluate untouched human chat. Otherwise the experiment measures imitation of a generator's accent, not usefulness for people.

3.8 Build dictionaries from frequencies, not answers

Count normalized words in the corpus training partition and retain top-N by frequency. The four new languages use top-500,000 IndicCorp frequency lists. Do not add a word because it appeared in a test failure.

General public-corpus knowledge naturally covering a test word is distinct from selecting entries after reading test targets. Disclose coverage and construction. A full-dictionary benchmark is not an unseen-vocabulary benchmark; the release says so. [S5]

3.9 Sampling ratios are part of the model

The trainer repeats ordinary aks-* rows by aks_up; teacher rows have weight one. dak_up overrides aks-Dakshina/aks-AK-Freq, and ic_up overrides aks-IndicCorp. Initial training used aks_up=2. A subsequent clean-retraining proposal specified aks_up=2, dak_up=8, ic_up=1, plus source exclusions; no measured outcome is claimed for that proposal. [S1, S8]

For source count n_s and repetition u_s, its effective share is u_s n_s / Σ_j u_j n_j. Repetition changes probability, not independent evidence. Log effective counts.

Why rebalance? Bengali validation was 63% Dakshina; training was 55% IndicCorp-mined and only 4.2% Dakshina. Doubled vowels occurred in 27% of validation words versus 1.3% of the IndicCorp-mined training slice. More steps on that mismatch is not a principled remedy. [S1]

3.10 Respect packaging gotchas

Kaggle automatically decompressed uploaded .gz files in this workflow. A runner looking only for .tsv.gz failed despite present data. Accept plain and compressed variants, fail on ambiguity, and copy inputs to /kaggle/working when a durable writable copy is needed.

from pathlib import Path
import gzip

def find_one_dataset(root, stem):
    matches = sorted(Path(root).rglob(stem + ".tsv"))
    matches += sorted(Path(root).rglob(stem + ".tsv.gz"))
    if len(matches) != 1:
        raise RuntimeError(f"Expected one dataset, found {len(matches)}")
    return matches[0]

def open_text(path):
    if str(path).endswith(".gz"):
        return gzip.open(path, "rt", encoding="utf-8")
    return open(path, encoding="utf-8")

Before allocating a GPU, run a CPU smoke test: resolve inputs, read a batch, construct the model, compute finite loss, save and reload a checkpoint.

Key takeaways

  • Preserve row-level provenance before mixing or generating examples.
  • Apply the same normalization and leakage firewall to human and teacher-generated pairs.

4. Train the student from scratch

The training objective is to fit a small spelling channel that remains useful after search and export. Character tokenization keeps the inventory explicit; an exact budget shows where capacity is actually spent.

“From scratch” describes initial weights, not the absence of external knowledge. A randomly initialized student can receive human and teacher-generated supervision. Keep initialization and supervision separate.

4.1 Tokenization must respect the budget

The word model uses characters. Source vocabulary: 26 lowercase letters + PAD/BOS/EOS/UNK = 30. Target: a full 128-code-point script block + four specials = 132; Bengali adds danda, giving 133. These are Unicode code points, not grapheme clusters or phonemes. [S8]

A full script block costs little and avoids an observed-character-only inventory. It still permits unused or invalid combinations. Bengali's extra symbol came from a script inventory that included held-out coverage, not outcome tuning; a stricter prospective protocol should fix symbols from Unicode standards/training data before evaluation. [S8]

The model has 32 learned positions. BOS belongs in decoder inputs, EOS in supervised targets, PAD outside the loss. An early shared-model probe accidentally reused a source-vocabulary start index on the target side. Keep vocabulary semantics explicit even when integers happen to coincide.

4.2 Understand the architecture

The production word model is a pre-layer-normalized encoder–decoder Transformer:

  • width 128, 4 heads, head width 32;
  • 3 encoder blocks, 2 decoder blocks;
  • feed-forward width 384, GELU, residuals, dropout 0.1;
  • learned source/target positions;
  • target embedding tied to the output projection.

Source self-attention combines surrounding letters; decoder cross-attention consults encoded input while constructing output. Causal masking prevents access to future target characters in teacher-forced training. [1, S8]

Reference encoder-decoder Transformer architecture
Figure 4. Reference architecture by dvgodoy, via Wikimedia Commons, CC-BY-4.0. Original file unmodified, layout-scaled. Not the exact AksharaLP implementation: ours uses pre-LN, learned positions and tied output embeddings.

Read softmax(QKᵀ / √d_head) V operationally: queries ask which locations matter, keys identify locations, and values carry information. Attention maps for one example are not model parameters; the projection matrices are.

4.3 Work the parameter arithmetic

Ignoring bias is useful for rough sizing, not exact naming. In this implementation:

  • attention: 4d² + 4d, including Q, combined K/V and output biases;
  • FFN: 2df + f + d;
  • LayerNorm: 2d each;
  • encoder block: 4d² + 2df + 9d + f;
  • decoder block: 8d² + 2df + 15d + f.

At d=128, f=384:

Component Arithmetic Parameters
Encoder blocks 3 × 165,376 496,128
Decoder blocks 2 × 231,680 463,360
Positions 2 × 32 × 128 8,192
Token embeddings (30 + 132) × 128 20,736
Final encoder/decoder norms 2 × 2 × 128 512
Total Output embedding is tied, not counted twice 988,928

Bengali's extra symbol adds 128, producing 989,056. [S4, S8]

Exact component parameter budget
Figure 5. Checked against the actual random-init model count. Original chart by Sourojit Dhua from [S8]; © 2026 Sourojit Dhua; rights reserved.
# Run from the local repository root; no checkpoint or test data is loaded.
from bhc.xlit_model import XlitTransformer, set_vocab

set_vocab("hi")
student = XlitTransformer(d=128, h=4, enc=3, dec=2, ff=384, p=0.1)
assert sum(p.numel() for p in student.parameters()) == 988_928

Width drives quadratic attention costs; layer count roughly linear depth costs. Token embeddings here are only 20,736 parameters. Reducing an already tiny vocabulary cannot save as much as reducing the dominant blocks. Sentence LMs can have a very different budget profile.

4.4 Initialization, masking and batching

Token embeddings use standard deviation d^−0.5, position tables 0.02, and token activations are scaled by √d. Other layers use their PyTorch initializers. This is the implementation, not a claimed optimal initialization experiment.

Length buckets reduce padding, but shuffle the batches. Do not accidentally train an entire epoch from shortest to longest. The chat GRU correction included replacing whole-epoch sorting with shuffled buckets, alongside attention. Loader choices affect optimization. [S2]

For target [characters … EOS PAD …], decoder input is [BOS characters …]. Compare every position with its next true symbol; ignore PAD. Check raw lengths first so truncation does not silently delete EOS or change a label.

4.5 Use a boring, inspectable optimization recipe

The Kaggle word recipe used batch 1,024, AdamW, peak LR 1.5e−3, 4,000-step linear warmup, cosine decay, smoothing 0.1, dropout 0.1 and CUDA FP16 AMP. AdamW betas were (0.9, 0.98), decay 0.01, gradient clipping 1.0. A 150,000-step budget does not imply its final checkpoint is best. [S8]

A minimal setup, followed by the teaching loop:

import math
import torch
import torch.nn.functional as F

# 'student' is the randomly initialized model above.
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
student = student.to(device)
optimizer = torch.optim.AdamW(student.parameters(), lr=1.5e-3,
                             betas=(0.9, 0.98), weight_decay=0.01)
scaler = torch.amp.GradScaler("cuda", enabled=device.type == "cuda")

def lr_at(step, total, peak=1.5e-3, warmup=4000):
    if step < warmup:
        return peak * (step + 1) / warmup
    fraction = min(1.0, (step - warmup) / max(1, total - warmup))
    return peak * 0.5 * (1 + math.cos(math.pi * fraction))

def train_step(model, x, y, optimizer, scaler, step, total, PAD=0, BOS=1):
    # x/y are padded integer tensors already on the model's device.
    model.train()
    for group in optimizer.param_groups:
        group["lr"] = lr_at(step, total)
    decoder_in = torch.cat([torch.full_like(y[:, :1], BOS), y[:, :-1]], 1)
    optimizer.zero_grad(set_to_none=True)
    with torch.autocast("cuda", dtype=torch.float16,
                        enabled=x.device.type == "cuda"):
        logits = model(x, decoder_in)
    loss = F.cross_entropy(logits.float().flatten(0, 1), y.flatten(),
                           ignore_index=PAD, label_smoothing=0.1)
    scaler.scale(loss).backward()
    scaler.unscale_(optimizer)
    torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
    scaler.step(optimizer)
    scaler.update()
    return float(loss.detach())

Warmup lets an initially uncalibrated attention system approach peak step size gradually. Smoothing discourages unjustified certainty in an ambiguous mapping. Neither argument proves these exact values are optimal; tune on validation under a fixed budget. CE is deliberately computed in float32. Unscale gradients before clipping. [21]

Actual Hindi Kaggle S LR, training CE and greedy validation points
Figure 6. Actual logged points from models/xlit/kaggle_S/log.txt; CE axis is zoomed, with the omitted first point noted. The chart belongs to an earlier Hindi run; validation here is greedy, not beam-selected. Original chart by Sourojit Dhua; © 2026 Sourojit Dhua; rights reserved. The curve is a historical training observation, not a prediction for another run.

4.6 Select for the decoder you intend to ship

Historical training checked greedy accuracy on a seeded 3,000-word validation slice every 4,000 steps, with resumable saves every 500. This was cheap but imperfect: final quality depended on search and dictionaries. The later --val_beam 8 option aligns checkpoint selection more closely with deployment. Do not retroactively call a greedy-selected release beam-selected. [S1, S8]

Where budget permits, final validation should use the actual quantized export + candidates + reranker. Regenerate candidates after quantization because score features can shift.

Track five separate things:

  1. teacher-forced CE: fitting the symbol distribution;
  2. greedy top-1: cheap regression detection;
  3. beam oracle/top-k: candidate coverage;
  4. full system top-1: ranking success;
  5. bytes/startup/latency: shipping feasibility.

4.7 Seeds, cross-validation and resumability

The trainer seeds Python, NumPy and PyTorch with 13 and uses a separate fixed validation shuffle. This helps reproducibility; it is not a multi-seed uncertainty study or guarantee of identical GPU arithmetic. The shared probe was one seed.

Recommended extension: repeat training with multiple seeds when feasible, report mean/spread, and choose configurations on validation only. Reranker folds should group Roman inputs and fit feature normalization on the training fold alone. If you choose feature families by inspecting those folds, use nested selection or label the CV estimate exploratory. The recorded diagnostic used two-fold CV, not an independent test. [S1]

Save model, optimizer, scaler, global step, best score, history and arguments. Bitwise resume also requires RNG states and sampler position. The historical trainer does not save every RNG state, so do not promise bitwise replay. Preserve the original total-step schedule on resume instead of restarting warmup.

4.8 Budget compute from a pilot, not a slogan

The recorded four-language v1 run took about 3 h 40 min wall-clock, using a two-worker queue on two T4s. That is not per language, nor automatically the same number of GPU-hours. The survey's single Hindi reference ran around 13 steps/s, approximately 3.2 hours for 150,000 steps before overhead. [S0, S1]

Estimate steps / measured_steps_per_second, then add initialization, validation, exports and failure margin. Keep accelerator count, wall-clock and GPU-hours distinct. Free quotas and availability vary; old account limits are not permanent promises.

Log command, revision, hashes, source counts, loss, LR, steps/s, validation, measured peak memory and interruption reason. A smooth curve without its data mixture cannot explain a run.

Key takeaways

  • Count parameters from the actual implementation and keep token semantics explicit.
  • Select checkpoints for the decoder and quantized artifact you intend to deploy.

5. Refine with teachers—without confusing objectives

A teacher is valuable when it supplies the behavior your small model needs, not merely because it is large. Distillation moves that behavior into training targets or distributions, so the deployed student need not carry the teacher.

5.1 Choose for task, domain and rights

Teacher Role here Verified terms What not to infer
IndicXlit Word spelling teacher and baseline MIT repository [15] Seed data are not thereby commercially clean
google/byt5-small Sentence teacher fine-tuned for experiment B Apache-2.0 card [16] Pretraining alone does not solve transliteration
csebuetnlp/banglat5 Rights-constrained alternative CC-BY-NC-SA-4.0 card [17] Not a silent substitute in a commercial-clean pipeline
Qwen/Qwen2.5-7B-Instruct Proposed experiment C Romanization generator Apache-2.0 card [18] Synthetic chat does not prove human-chat quality

Validate the teacher on representative validation data, inspect errors and decoding normalization, and measure generation cost. The largest teacher is not necessarily the best spelling specialist. A broad model that paraphrases input can be a poor transliteration teacher.

Teacher generates cached supervision, student learns, export is validated
Figure 7. Refinement pipeline, informed by [2, 3] and [S6, S7]. Original diagram by Sourojit Dhua; © 2026 Sourojit Dhua; rights reserved.

5.2 Hard word-level distillation

The teacher emits a complete output word; the student learns it with ordinary CE. A KL term is not required for this to be distillation: generated targets carry knowledge. AksharaLP's two-direction word pipeline in section 3.6 is the real example.

Teacher sequences can simplify a difficult multimodal mapping, but may erase rare valid spellings. Preserve gold data and useful alternatives. Distinguish two effects experimentally: more examples and a changed target distribution. Both may help, but they are not the same mechanism.

5.3 Sequence-level distillation

Kim and Rush [3] train on teacher-generated sequences. For input x, generate ŷ_T, then mix:

L = (1 − α) CE(student(x), gold) + α CE(student(x), ŷ_T).

Each term needs its own shifted decoder input, target length and PAD mask. Reusing gold time positions when teacher lengths differ is not correct sequence KD.

ByT5 emits UTF-8 bytes; our sentence student emits Unicode characters. Decode the teacher string and re-encode it with the student vocabulary. Direct tokenwise KL over these incompatible token spaces is not meaningful without an explicit mapping/alignment.

Teacher supervision flows through generated targets into student updatesTeacher supervision flows through generated targets into student updates (static print rendition)
Figure 8. Hard/sequence-level distillation flow, based on [2, 3] and the word-pair pipeline [S6]. Original animation by Sourojit Dhua; © 2026 Sourojit Dhua; all rights reserved. Conceptual—not a claim that experiment B consumed teacher outputs.
# Teaching adaptation: both targets are already encoded in STUDENT symbols.
# Teacher strings were generated offline from training-only inputs.
import torch
import torch.nn.functional as F

def target_ce(student, source, target, bos=1, pad=0):
    shifted = torch.cat([torch.full_like(target[:, :1], bos),
                         target[:, :-1]], dim=1)
    logits = student(source, shifted)
    return F.cross_entropy(logits.float().flatten(0, 1), target.flatten(),
                           ignore_index=pad)

def sequence_kd(student, source, gold, teacher_target, alpha=0.5):
    assert 0 <= alpha <= 1
    gold_loss = target_ce(student, source, gold)
    kd_loss = target_ce(student, source, teacher_target)
    return (1 - alpha) * gold_loss + alpha * kd_loss

This is an illustrative corrected objective, not a claim that experiment B used it. Token-mean CE gives longer sequences more influence; if you choose sentence-mean normalization, document it and keep comparisons consistent. Cache teacher revision, decoding settings and output hashes.

5.4 Soft targets and temperature

Hinton et al. [2] transfer softened teacher distributions. For aligned vocabulary and positions:

L_KD = T² KL(softmax(z_T/T) || softmax(z_S/T)).

T > 1 exposes alternatives. T² compensates for temperature-related gradient scaling; it is not an accuracy multiplier. Teacher logits must be detached and padding excluded.

Softmax probabilities at temperatures one, two and four for declared illustrative logits
Figure 9. Mathematical illustration of [2]: exact softmax probabilities for fixed logits [4, 2, 1, 0] at temperatures 1, 2 and 4. These are not trained-teacher measurements. Original chart by Sourojit Dhua; © 2026 Sourojit Dhua; all rights reserved.

The point is not that a higher temperature is always better. It makes lower-ranked alternatives visible in the training signal. The student still needs a compatible vocabulary and an objective that preserves the teacher's relative preferences.

# Matching token spaces only: NOT direct ByT5-byte → character-student KL.
def soft_kd(student_logits, teacher_logits, valid_mask, temperature=2.0):
    assert student_logits.shape == teacher_logits.shape
    assert valid_mask.shape == student_logits.shape[:-1]
    assert temperature > 0
    t = temperature
    log_student = F.log_softmax(student_logits.float() / t, dim=-1)
    teacher_prob = F.softmax(teacher_logits.detach().float() / t, dim=-1)
    token_kl = F.kl_div(log_student, teacher_prob, reduction="none").sum(-1)
    mask = valid_mask.to(token_kl.dtype)
    return (token_kl * mask).sum() / mask.sum().clamp_min(1) * t * t

A soft-target cache needs the vocabulary revision and temperature or original logits with explicit precision. Otherwise it is not a reproducible training artifact.

5.5 The teacher that trained—and never taught

Experiment B trained a ByT5 teacher, but a placeholder KD loss used only gold CE. The student never received teacher supervision. It had 3,081,984 parameters, trained 28,808 steps, with QAT-8 on Linear weights in the last quarter. Calling it distilled would be false. [S3]

On its 1,466-row length-filtered validation split:

System Token % Sentence EM %
Retrieval + direct channel 48.63 20.33
Int8 sentence student, greedy 46.78 19.30

Paired gaps were −1.02 EM points [−2.32, +0.21] and −2.00 token points [−2.96, −1.07]. EM did not establish a reliable difference; token accuracy was worse. This is a supervised-student result, not evidence that sequence KD failed. Test remained untouched in that evaluation. [S3]

Test the dependency, not just finite loss:

def test_teacher_changes_student_gradient():
    torch.manual_seed(0)
    s = torch.randn(2, 3, 5, requires_grad=True)
    a = torch.randn_like(s)
    b = a.flip(-1)
    mask = torch.ones(2, 3, dtype=torch.bool)
    ga, = torch.autograd.grad(soft_kd(s, a, mask), s, retain_graph=True)
    gb, = torch.autograd.grad(soft_kd(s, b, mask), s)
    assert not torch.allclose(ga, gb), "Teacher signal is disconnected"

For sequence KD, change cached teacher strings and assert that student gradients change. With α=0, recover the gold-only branch; with α=1, depend on teacher targets. Assert no teacher parameter receives a gradient and verify the loader consumes generated targets. Use a tiny overfit test before spending GPU hours.

A successful teacher job is not evidence of successful knowledge transfer.

5.6 Adapt to genuine domain data

Fine-tune on training-only chat, early-stop on chat validation. In Bengali research, chat-tuning the q8 LM improved validation CE 5.9528 → 4.326680, yet sentence gain over the no-LM channel was only +0.40 [−0.16, +0.92] points. Better LM loss did not establish an EM upgrade. [S2]

Corpus modeling and user-decoder quality are different objectives. A better LM can still prefer a common wrong candidate or be unable to recover a missing candidate.

5.7 Refine in an order that makes causes identifiable

Use: gold baseline → teacher pairs → domain adaptation → export-matched QAT → candidate search → reranker → optional LM. Freeze and validate each change. Changing everything at once may improve the product while teaching almost nothing about why.

Gradient descent with different starting pointsGradient descent with different starting points (static print rendition)
Figure 10. Gradient descent with three initial conditions, by Jacopo Bertolotti, via Wikimedia Commons, CC0-1.0. Original GIF unmodified. Conceptual landscape, not measured AksharaLP loss. PDF/reduced-motion still is an attributed frame extraction.

Key takeaways

  • Use sequence targets when teacher and student token spaces do not align.
  • Change teacher outputs in a unit test and verify that student gradients change.

6. Quantize storage without misrepresenting compute

Think of quantization as choosing a ruler with fewer marks. Nearby weights land on the same mark; the question is whether those perturbations change the decisions users see. The practical win is smaller storage and transfer—not automatically integer-only execution.

6.1 What four bits actually buy

Float32 uses four bytes per parameter; ideal q4 uses half a byte. Real files also need scales, padding, shapes and metadata. A q4 matrix with group size 32 and one FP16 scale per group costs roughly 0.5 + 2/32 = 0.5625 bytes/weight, before other overhead.

The word exporter uses q4 Linear matrices, q8 embedding/position tables, f16 vectors. Symmetric q4 emits integers −7…+7, offset by eight for nibble packing. “Four-bit model” is shorthand for mixed-precision storage, not every value having four bits. [S8]

Conceptual q4 reconstruction grid animationConceptual q4 reconstruction grid animation (static print rendition)
Figure 11. A weight moving between quantization levels; conceptual numbers, not an extracted tensor or accuracy experiment. Original animation by Sourojit Dhua from the exporter mechanism [S8]. © 2026 Sourojit Dhua; rights reserved.

The repository searches several clipping factors per group and minimizes reconstruction MSE. It rounds candidate scales to FP16 before computing that error. Optimizing float32 scales and rounding only at export can create a mismatch.

# Simplified teaching quantizer; no clipping search or complete file format.
import torch
import torch.nn.functional as F

def group_quantize(weight, bits=4, group=32):
    rows, cols = weight.shape
    padded = F.pad(weight.float(), (0, (-cols) % group))
    blocks = padded.reshape(rows, -1, group)
    limit = 2 ** (bits - 1) - 1
    scale = blocks.abs().amax(-1, keepdim=True).clamp_min(1e-8) / limit
    scale = scale.clamp_min(torch.finfo(torch.float16).tiny).half().float()
    q = (blocks / scale).round().clamp(-limit, limit).to(torch.int8)
    reconstructed = (q.float() * scale).reshape(rows, -1)[:, :cols]
    return q, scale.half(), reconstructed

Pack two offset-coded q4 integers into each byte. Simply casting floats to int8 destroys most small weights and omits reconstruction scales. Experiment B's 87,595-byte “naive int8 gzip” statistic was not a usable model. Its real export measured 3,409,688 raw / 3,238,164 gzip-9 bytes, including scales/configuration/vocabulary. [S3]

6.2 PTQ versus QAT

Post-training quantization (PTQ) rounds trained weights. Quantization-aware training (QAT) makes refinement experience quantization effects. A straight-through estimator uses quantized/dequantized weights forward, approximating their derivative as identity backward:

# Functional building block, not a replacement nn.Parameter assignment.
def fake_quant_ste(weight, bits=4, group=32):
    _, _, qdq = group_quantize(weight, bits, group)
    return weight + (qdq - weight).detach()

# Inside a custom Linear.forward:
# return F.linear(x, fake_quant_ste(self.weight), self.bias)

Preserve float master weights. Match groups, clipping, scale precision, embedding policy and layout to export. If QAT simulates a different quantizer, the model learns the wrong perturbation. Validate the reloaded file, not only an in-memory fake-quantized module. Jacob et al. [4] provides foundational principles; our weight-only storage is not their integer-only arithmetic pipeline.

The earlier tiny research line explored 3-bit QAT, entropy coding, frequency bands and reverse-channel features. Those were separate research artifacts, not a reason to attach their footprint to MultiIndic scores. Weights, scales and dictionaries can all be compressed; each resulting artifact needs its own evidence. [S9]

6.3 Download size is not RAM or arithmetic precision

Current reference runtimes dequantize to float32 and compute in float32. Dictionaries expand into lookup structures. Peak RAM includes activations, beam caches, parsing and decompression buffers. A q4 file does not prove four-bit inference, eightfold speedup or equally small resident memory. Measure those separately.

Key takeaways

  • Storage precision, arithmetic precision and RAM are separate quantities.
  • Match QAT to the exact export perturbation and validate the exported artifact.

7. Spend computation on search before buying parameters

Ambiguous spelling is a poor place to commit early. Search keeps plausible alternatives alive; a dictionary and reranker then use evidence that a local next-character decision cannot see. This can buy more quality than another layer.

7.1 Greedy is not necessarily the product

Greedy decoding commits to the best next character. Beam search retains multiple partial spellings and accumulates log-probabilities through EOS. Dictionary frequency supplies an independent prior over complete words.

Bengali full-validation diagnosis:

Decoder Top-1 %
Greedy 47.27
Beam 8 58.79
Beam + fixed dictionary formula 65.09
Beam + learned reranker, two-fold CV 69.79

The final interval was [68.97, 70.64]. This is validation diagnosis, not the release's 64.64% test result. Quoting the better validation score as test accuracy would be misleading. [S1]

Bengali validation decoder ablation
Figure 12. Same diagnostic checkpoint, different search/ranking. Original chart by Sourojit Dhua from [S1]; © 2026 Sourojit Dhua; rights reserved.

7.2 A readable beam implementation

This teaching adaptation of bhc/xlit_model.py decodes one item by recomputing prefixes. Production batches words and caches decoder K/V. It is intentionally slower, uses summed log-probability without length penalties, and does not promise byte-identical production outputs.

import math
import torch
import torch.nn.functional as F

@torch.no_grad()
def beam_one(model, src, bos=1, eos=2, beam=8, max_steps=31):
    """src: [1, source_length]; return completed token-ID sequences."""
    model.eval()
    alive, finished = [([bos], 0.0)], []
    for _ in range(max_steps):
        expanded = []
        for ids, score in alive:
            prefix = torch.tensor([ids], device=src.device)
            lp = F.log_softmax(model(src, prefix)[0, -1].float(), -1)
            lp[[0, bos, 3]] = -torch.inf       # PAD, BOS, UNK policy
            values, tokens = lp.topk(min(2 * beam, lp.numel()))
            for value, token in zip(values.tolist(), tokens.tolist()):
                if not math.isfinite(value):
                    continue
                item = (ids + [token], score + value)
                if token == eos:
                    finished.append(item)
                else:
                    expanded.append(item)
        alive = sorted(expanded, key=lambda z: -z[1])[:beam]
        finished = sorted(finished, key=lambda z: -z[1])[:beam]
        if not alive:
            break
        # Valid because future log-probabilities cannot increase the score.
        if len(finished) == beam and alive[0][1] <= finished[-1][1]:
            break
    return sorted(finished, key=lambda z: -z[1])[:beam]

The bound is no longer valid if you introduce positive rewards or incompatible length normalization. Define cap behavior explicitly; an unfinished prefix is not silently a complete word. Deduplicate completed strings in production.

Beam expansion, pruning and completionBeam expansion, pruning and completion (static print rendition)
Figure 13. Grey indicates a pruned branch; A/B prefixes are schematic, not linguistic outputs or measured scores. Original animation by Sourojit Dhua from the search mechanism [S8]; © 2026 Sourojit Dhua; rights reserved.

7.3 Train the ranker too

Channel probability asks whether output matches the Roman spelling; corpus frequency asks whether it is a plausible native word. A fixed dictionary weight can overrule a correct rare word. In Bengali diagnosis, the fixed formula harmed IndicCorp-source rows: only about 52% of their golds were in the 500k list. [S1]

The compact ranker uses eight features: raw channel score; score divided by len(word)+1; dictionary membership; unigram log-probability (zeroed outside dictionary); neural-best flag; relative candidate rank; score relative to best; unigram score relative to the strongest in-dictionary candidate.

Normalize from the fitting partition only. A linear listwise model can maximize probability mass assigned to any correct reference, rather than forcing one arbitrary spelling. Sets with no correct candidate cannot teach ranking, but remain end-to-end failures.

# Fragment: features [batch, candidates, 8]; present/correct Boolean masks.
# ranker = nn.Linear(8, 1, bias=False); features are train-fold normalized.
# Every row must have at least one present candidate.
scores = ranker(features).squeeze(-1).masked_fill(~present, -torch.inf)
log_prob = scores.log_softmax(dim=1)
has_answer = (correct & present).any(dim=1)
if not has_answer.any():
    raise ValueError("No teachable candidate sets")
positive = log_prob.masked_fill(~(correct & present), -torch.inf)
loss = -positive[has_answer].logsumexp(dim=1).mean()

Freeze features and regularization on validation, then refit all validation only after diagnosis. The final release regenerated candidates from q4 before that fit. The artifact is the whole stack: weights, quantizer, dictionary, normalization, search and ranker.

7.4 Locate the bottleneck with an oracle

If gold is absent, no ranker/LM can recover it. If present but ranked low, capacity may not be the right expense. Bengali's diagnostic beam-8 oracle was 82.6%, well above top-1. Both coverage and ranking had room. [S1]

  • Low oracle → improve channel/data or broaden candidates; test capacity.
  • High oracle, low top-1 → ranking or context.
  • Good benchmark, bad product → domain mismatch or missing conventions.
  • Good accuracy, bad experience → startup, scheduling and loading UX.

Key takeaways

  • Measure candidate coverage before blaming the ranker.
  • Tune search and reranking on validation; regenerate features after export changes.

8. Shared multilingual weights are not free

Shared networks can save bytes, simplify maintenance and enable transfer. But different scripts do not automatically share mappings. At fixed tiny width, language gradients may compete for insufficient capacity.

The early Bengali/Telugu probe used d64, two encoder/two decoder blocks, 800 validation words per language, equal per-language steps and one seed. At 2,000 steps:

Language Separate greedy % Shared greedy %
Bengali 34.62 33.00
Telugu 39.00 21.62
Separate and shared tiny-model validation probe
Figure 14. Small, undertrained one-seed probe; not a universal verdict. Original chart by Sourojit Dhua from [S0]; © 2026 Sourojit Dhua; rights reserved.

This is evidence against “same-width tiny weights, several languages, no cost.” It does not show that larger shared capacity, adapters, longer training or a different curriculum cannot work. There was no multi-seed estimate. Treat a cheap probe as a decision aid, not a theorem.

Per-language loading is itself a compression strategy: a Bengali user need not fetch four other models. Compare expected user downloads and active memory, not only the repository total.

Explicit language choice also costs essentially no model bytes. The survey's character n-gram language-ID probe reached 77.6% sentence accuracy on 250 sentences, inadequate for silently selecting a script. [S0]

A useful next study would compare equal-parameter and equal-quality frontiers separately, match per-language training exposure, repeat seeds and measure lazy-download behavior. Those are recommended experiments, not completed results in this release.

Key takeaways

  • Sharing is an empirical capacity and compute trade-off.
  • A one-seed short probe diagnoses interference, not a universal limit.

9. Add context only where it earns its bytes

A common word is not always the right word in a sentence. Context can choose among plausible candidates, but every added byte must earn its place against a simpler baseline—and no rescoring rule can select a candidate that never entered the beam.

9.1 Sentence rescoring is not generation

The Hindi add-on is a tied-embedding projected LSTM LM: vocabulary 8,000, embedding/projection 160, hidden 512, two layers, 2,770,752 parameters. It scores combinations of existing word candidates; it cannot invent missing candidates, reorder words, translate or answer questions. [S5]

A sentence score combines word channel scores, LM log-probability and any explicitly declared constraints. Tune weights per language. Hindi agreement heuristics do not simply transfer to Bengali or Dravidian languages with different inflection and subject omission. [S2]

On 4,976 Dakshina Hindi test sentences, the existing contextual baseline scored 89.02% word accuracy / 25.70% sentence EM, versus 89.44 / 26.73 with the neural LM. Reported paired gains: +0.42 [0.33, 0.51] word points and +1.02 [0.40, 1.65] EM points. Rounded percentages subtract to 1.03; the paired report supports 1.02. These reuse original tests, not new evaluations or multilingual sentence results. [S5]

9.2 Retrieval can beat another neural layer

Bengali chat research added edit-distance-one OOV retrieval to a direct count channel, with a validation-selected gate. Frozen 2,500-row evaluation: 59.97% token accuracy / 23.60% sentence EM. The full map measured 354,832 gzip-9 bytes, about 0.355 decimal MB, runtime excluded; its edit index is built in RAM. It beat the chat-tuned q8 LM arm by +1.96 EM points [1.24, 2.68]. Adding that LM to retrieval reduced EM by 0.52 point. [S2, S10]

Mechanism: try exact Roman-key lookup; for a sufficiently long unseen token, retrieve nearby training spellings, pool candidate evidence and apply a validation-selected gate. Avoid ungated fuzzy matching of short strings: a single edit can change the word entirely.

Corrected Bengali chat quality versus compressed map/model bytes
Figure 15. Count-channel research on the corrected 2,500-row protocol, not the shipped MultiIndic neural word model. Original chart by Sourojit Dhua from [S2, S10]; © 2026 Sourojit Dhua; rights reserved.

This does not establish universal retrieval superiority. On this distribution and budget, spelling neighborhoods were more valuable than an added LM. Section 5's 1,466-row validation scores are a different slice; do not compare them directly with these 2,500-row results.

9.3 Treat domain shift as a first-class failure

Careful crowd spelling, teacher-canonical Romanization and spontaneous Banglish are different distributions. In the deterministic channel analysis, 31.93% of aligned chat word pairs matched its canonical form, while 50.35% matched neither that form nor the skeleton-collapse variant. These are analysis-channel coverage figures, not shipped-model accuracy. [S2]

Collect representative licensed data and evaluate subgroups. Reweight a mismatch you actually measured. Synthetic variation and longer training are hypotheses, not guaranteed repairs. The research did not establish equivalent licensed paired real-chat evaluation resources for Telugu, Kannada and Tamil. Keep that gap visible.

Key takeaways

  • Context must beat a no-LM baseline on the target distribution.
  • Cheap spelling retrieval can outperform a larger neural addition.

10. Evaluate as if your strongest claim might be wrong

The point of evaluation is to discover whether a gain survives a fair comparison. Freeze the whole system, use an independent test once, and separate uncertainty about examples from variation across training runs.

10.1 Freeze the artifact, not just the checkpoint

Before final test, freeze normalization/tokenization, exact weights/quantizer, candidates/beam/length policy, dictionary contents, feature normalization/reranker, LM weights, reference grouping, exclusions and metric code. Hash the files.

A new dictionary or ranker makes a new system even with identical weights. Select on validation. Evaluate the frozen shipping artifact once and cache predictions for confidence intervals and scoring audits. Do not manufacture a succession of “new artifacts” to keep tuning against the same test.

10.2 Define metrics precisely

Top-1: first candidate matches any accepted reference. Top-k: any reference occurs in the first k. Sentence EM: complete sequence exactly correct. CER/WER: edit-aligned errors under a declared normalization/tokenization.

Bengali chat's historical token metric uses the minimum-length aligned prefix, not edit-distance WER. Sentence models emitting different word counts change token denominators slightly. Call the metric what it is. A favorable token percentage cannot erase poor segmentation or low sentence EM. [S2, S3]

Top-k is useful in a suggestions UI; it is not automatic-correction accuracy. Report the result a user actually receives.

10.3 Compare systems with paired intervals

Resample the same row IDs together for two systems evaluated on the same words. For sentence tasks, resample sentences, not isolated tokens. [11]

import numpy as np

def paired_accuracy_ci(a, b, repeats=2000, seed=0):
    # One correctness value per independent unit, A minus B.
    a, b = np.asarray(a, dtype=float), np.asarray(b, dtype=float)
    if a.shape != b.shape or a.ndim != 1 or len(a) == 0:
        raise ValueError("Need paired non-empty correctness vectors")
    delta = a - b
    rng = np.random.default_rng(seed)
    samples = np.empty(repeats)
    for i in range(repeats):
        ids = rng.integers(0, len(delta), size=len(delta))
        samples[i] = 100 * delta[ids].mean()
    return 100 * delta.mean(), np.quantile(samples, [0.025, 0.975])

This teaching adaptation may differ in last decimals from another RNG implementation. For variable-length token accuracy, resample per-sentence correct/total counts and recompute the ratio, not an average of sentence percentages. Nonlinear metrics need their actual statistic. Consider cluster resampling when rows share documents/conversations.

A confidence interval expresses sampling uncertainty under assumptions. It does not cover arbitrary domain shift, training-seed variance, repeated selection or every possible source of error.

10.4 The retracted +4.40-point result

An early Bengali context result suggested +4.40 sentence-EM points. It was invalid held-out evidence:

  1. the upstream train CSV contained all validation/test rows;
  2. a gold-token regex retained punctuation;
  3. the supposed trigram divided by wrong-length context keys, leaving count scores rather than correct conditional probabilities.

After split/token corrections, replaying the old fixed-weight recipe lost 2.92 EM points. Old artifacts remain a clearly superseded audit trail. [S2, S3]

The corrected chat-tuned neural LM's +0.40 [−0.16, +0.92] EM gain over no LM does not establish a positive sentence improvement. One residual three-word corpus overlap was disclosed; excluding it left 2,499 rows and the same conclusion. Saying “zero overlap” would still have been wrong. [S2]

My rule: retract a broken claim at the visibility level at which you made it. Do not silently replace a number while keeping its earlier interpretation.

10.5 Compare complete systems fairly

Our frozen comparison uses a declared IndicXlit port and original frequency dictionaries. It is not an official package rerun, nor a requantized/repacked baseline. Comparing our q4 weights to someone else's FP32 weights is useful deployment accounting only if the precision and format differences are visible. It does not prove an intrinsic architecture advantage or smallest-possible implementation. [S5]

Key takeaways

  • Freeze the full system before its one-time test and retain paired predictions.
  • Correct leakage and scoring faults openly; report uncertainty at the right unit.

11. Count bytes at the user's boundary

Users download a product, not a parameter count. A model can be tiny while its dictionary, runtime or decompressed working set is large. Choose the accounting boundary before choosing the headline.

11.1 Parameters, files, downloads and RAM differ

Package boundary Canonical raw bytes Sum of per-file gzip-9 bytes
Five word packages + shared runtime/config 83,600,034 20,554,172
Optional Hindi q8 sentence LM + JS add-on 3,256,675 2,928,839
Complete combined package 86,856,709 23,483,011

MB = 1,000,000 bytes. These are the frozen release's inventory [S5], not a fresh byte audit of subsequent loading-UX edits. They exclude documentation, fonts, Python, charts, alternative GGUFs and duplicated compressed companions. New-language dictionaries use canonical decompressed frequency TSV; Hindi uses binary lexicon/LM. Gzip totals are not HTTP transfer captures or resident memory.

Bengali measured 14,658,574 raw / 3,049,313 gzip-9 bytes. Its useful language package is multi-megabyte because the dictionary—not merely a roughly half-megabyte network—is part of the system. [S5]

Measured release package waterfallMeasured release package waterfall (static print rendition)
Figure 16. Release payload additions, without double-counting alternative formats. Original animation by Sourojit Dhua from evaluation/sizes.json [S5]; © 2026 Sourojit Dhua; rights reserved.

11.2 Make accounting repeatable

import gzip
from pathlib import Path

def byte_inventory(paths):
    # Explicit canonical file list, not a directory full of alternatives.
    report = []
    for path in map(Path, paths):
        data = path.read_bytes()
        compressed = gzip.compress(data, compresslevel=9, mtime=0)
        report.append({"path": str(path), "raw": len(data),
                       "gzip9": len(compressed)})
    return report

Record compressor/version if exact byte replay matters. Specify whether the total is a single archive or sum of independent compressed files. Keep hashes. “gzip-9” without an inclusion list invites cherry-picking.

Measure decompression, dictionary parsing and first inference separately from warm decoding. Compression may make a download cheap while making startup expensive. Lazy language loading reduces typical user cost without changing repository total.

Key takeaways

  • Report raw bytes, compression settings and the exact package boundary.
  • Measure startup and peak RAM independently of download size.

12. Deploy for the slow connection

On-device inference only feels local when the interface stays responsive. Loading, cancellation, errors and cache state are part of the system contract, not decoration added after the model works.

12.1 Move inference off the main thread

A synchronous decoder can make even a tiny model feel broken. A Web Worker can load assets, build dictionaries and run inference without blocking typing. Debounce input, retain original Roman text and label each request/result with an ID. [22]

This simplified pattern wraps the shipped API. It omits production streaming/cache code and assumes this worker lives in js/, one directory below the asset root:

import { MultiIndic } from './multiindic.mjs';
let engine;
let current = 0;
let queue = Promise.resolve();

self.onmessage = ({data: message}) => {
  current = message.id;
  queue = queue.then(async () => {
    if (message.id !== current) return;
    try {
      self.postMessage({id: message.id, phase: 'loading'});
      const base = new URL('../', import.meta.url).href;
      if (!engine) {
        engine = await MultiIndic.load(base, {language: message.language});
      } else {
        await engine.setLanguage(message.language);
      }
      if (message.id !== current) return;
      const result = engine.transliterate(message.roman);
      self.postMessage({id: message.id, phase: 'ready', output: result.output});
    } catch (error) {
      self.postMessage({id: message.id, phase: 'error', error: String(error)});
    }
  });
};

Serialize engine mutation so simultaneous language switches cannot interleave state. The UI ignores stale errors/progress as well as stale output. Production should coalesce pending obsolete work, cancel/time out network requests and support Hindi sentence-mode transitions explicitly.

12.2 The detached-fetch bug

A real browser failure came from invoking an accepted fetch callback as an object's method. Native Web APIs can require a particular receiver. Wrong this binding caused “Illegal invocation” inside the worker.

A safe native default is explicit:

const fetcher = options.fetch ?? globalThis.fetch.bind(globalThis);
const response = await fetcher(new URL(relativePath, baseURL));
if (!response.ok) throw new Error(`Download failed: ${response.status}`);

Custom fetchers define their own contract. Resolve assets from a known deployment/module base, not an arbitrary embedding-page address. Evict rejected cached load promises; otherwise Retry instantly repeats the old error. [S11]

12.3 Loading is part of correctness

After the runtime fix, changing language still appeared broken on slow connections: no visible indication that model and dictionary were loading. The next change added a blurred-editor veil, streamed byte progress, phase labels, cache indication and Retry. Roman input is retained and converted only after the selected language is ready. [S11]

Use an explicit state machine: switch → model download → dictionary download → initialization → ready, or error → retry. A download finishing does not mean dictionary parsing finished.

Add aria-busy, a live status region and keyboard-accessible Retry. If content length is unavailable, use indeterminate progress—not a fictitious percentage. Avoid trapping input or losing typed text beneath a decorative overlay.

Loading state machine with stale-request guards
Figure 17. Loading UX from the actual worker/UI changes [S11]. Original diagram by Sourojit Dhua; © 2026 Sourojit Dhua; rights reserved.

12.4 Test the claim you make

Test cold/warm loads, throttled connections, quick switches, failed requests/Retry, pasted text, long inputs and Hindi toggles at several viewport widths. Inspect network activity: asset downloads occur, but typed content should not go to an inference API.

Recorded live checks covered Chrome-engine desktop/mobile-sized views and Firefox. Safari/iPhone was not verified. A phone-sized viewport is not physical-device testing. Require DecompressionStream or an explicit fallback and give unsupported browsers a clear message. [S11]

Model-card timings used Node v24.22.1 on Linux Intel Xeon, 100 evenly spaced validation words/language, five warmups, initialization excluded. They are not Android/iPhone latency. [S5]

Local inference after assets load is not the same as a persistent offline app. A service worker/cache policy needs separate testing, versioning and eviction behavior.

Key takeaways

  • Use a worker and request IDs to keep typing responsive and stale work harmless.
  • Treat downloading, decoding, readiness and retry as distinct states.

13. Export GGUF without implying runtime support

GGUF is a tensor container and metadata format, not a universal promise that llama.cpp understands an architecture. [19, 20]

The release has 13 GGUF files: q4/f16 for each of five word models, plus q8/q4/f16 Hindi sentence forms. They require the custom reader, decoder and external dictionaries. They do not run in llama.cpp, Ollama or LM Studio.

The word q4 GGUF preserves the byte-exact mixed-precision source blob in an I8 tensor. It is not standard GGML Q4_0. Its f16 form materializes already quantized weights; it cannot restore the original full-precision training checkpoint. [S5]

A safe workflow:

  1. Validate version, metadata types, tensor names/shapes, alignment and bounds.
  2. Round-trip a known blob and compare hashes.
  3. Read using an independent implementation.
  4. Compare candidate order/sentence output on validation only.
  5. Declare external assets and target-runtime support.

The recorded sample used 40 validation words/language, 200 total. Both word variants matched complete top-8 ordering for all 200. For 12 Hindi validation sentences, q8/f16 matched source q8 outputs 12/12, while q4 matched 11/12. This is conversion agreement, not accuracy. Never attach default q8 test scores to the smaller q4 alternative. [S5]

If you distribute a custom architecture, include the reader, schema, vocabulary, exact quantizer semantics and a minimal reproducible decode. A file extension is not a deployment ecosystem.

Key takeaways

  • GGUF specifies a container; architecture support belongs to a runtime.
  • Materializing quantized weights in f16 cannot recover lost training precision.

14. Publish a card that survives scrutiny

A polished page makes correct interpretation easy. It should not make weak evidence look strong. My compact-model card answers:

  1. Task: explicitly not translation or a general LLM.
  2. Components: independent weights, dictionaries and optional downloads.
  3. Evidence: split, normalization, sample size, hashes and intervals.
  4. Baseline: full package versus full package, or clearly labeled asymmetry.
  5. Cost: raw/gzip-9 boundary, actual device/runtime latency, startup/RAM if measured.
  6. Rights: component terms, source conflicts, restrictions and attribution.
  7. Failures: real errors, unsupported platforms, domain gaps.
  8. Reproduction: configuration, APIs, checksums and conversion caveats.

The real release shows Tamil naan producing ணன், not intended நான். A plausible example is not an accuracy suite. Showing a failure can teach more than selecting only easy outputs. [S5]

A ready-to-copy model credit:

AksharaLP-MultiIndic-8M by Sourojit Dhua (sourojitdotcom)
https://huggingface.co/sourojitdotcom/AksharaLP-MultiIndic-8M

Do not call non-commercial weights unrestricted open-source software. Code, data and weights can have different licences. A teacher's MIT/Apache licence does not settle underlying seed-data rights.

Visual design helps readers navigate evidence: clear headings, labeled units, readable comparisons, nearby caveats and real examples. Avoid metric tiles that strip away split labels or imply all five languages share a result measured only for Hindi.

Key takeaways

  • Make task, components, protocol, costs and restrictions easy to find.
  • State negative comparisons and unsupported environments beside the positive results.

15. An end-to-end build plan

This is a decision framework, not an instruction to rerun finalized tests.

Phase A — establish the task and rights

Write the contract/data card. Define a baseline package, byte boundary, independent evaluation unit and release terms. Pin source revisions and inspect row provenance before expensive generation.

Exit gate: a corpus ledger you can explain without saying “the dataset looked open.”

Phase B — make defensible supervision

Normalize consistently, group splits, filter membership, preserve sources, generate training-only variants, deduplicate and verify output. Save rejection/source counts and hashes. Count dictionary words from corpus training data, not failures.

Exit gate: a manifest proving what each training row means and where it originated.

Phase C — train the random-init baseline

Count parameters, smoke-test masks, use fixed optimization, save resumable state and select on validation. Diagnose greedy/beam differences and candidate coverage before widening the network.

Exit gate: finite reproducible training and a useful dashboard, not merely low CE.

Phase D — refine with controlled changes

Compare gold-only and teacher arms; unit-test teacher dependence. Add domain adaptation and export-matched QAT. Regenerate quantized candidates, diagnose reranking out of fold, then consider retrieval/LM by incremental quality per byte.

Exit gate: the reloaded deployment stack meets the selected validation trade-off.

Phase E — freeze, evaluate and deploy

Hash components, lock metrics, test once and derive paired intervals from cached predictions. Keep unfavorable comparisons. Validate export alternatives on validation. Test cold loading, Retry and stale switches. Write a card with limitations beside claims.

Exit gate: an artifact another engineer can reproduce, a user can understand and you can defend.

Key takeaways

  • Use staged exit gates to keep the cause of each gain identifiable.
  • Defer irreversible test decisions until data, export and decoding are fixed.

16. The release checklist

Use this checklist in dependency order: rights before generation, splits before training, validation before final test, and complete-system checks before publication. A green training log does not certify the rest.

Data and rights

  • Pin, attribute and assign a licence status to every source.
  • Retain teacher revision and seed provenance for generated rows.
  • Group related words/documents/conversations before splitting.
  • Document raw/normalized membership and near-duplicate checks.
  • Record effective sampling weights and rejection counts.
  • Keep dictionary construction independent of test failures.
  • Disclose unresolved source, NC and SA obligations.

Modeling and training

  • Match exact unique parameter count to the name.
  • Test BOS/EOS/PAD alignment, masks and raw lengths.
  • Overfit a tiny batch; prove teacher targets change gradients.
  • Separate gold-only, teacher, QAT and context ablations.
  • Log LR, seeds, AMP, schedule and selection metric.
  • Restore schedule/state on resume; qualify reproducibility.
  • Validate the actual reloaded quantized export.

Evaluation and delivery

  • Freeze weights, dictionary, ranking and metrics before test.
  • Compare the same rows/normalization and declare decoding scope.
  • Use paired intervals with the right resampling unit.
  • Keep validation/test, synthetic/human and research/shipped distinct.
  • Count declared complete payloads raw and gzip-9.
  • Label latency/RAM by the environment actually measured.
  • State GGUF architecture support and parity limits.
  • Test slow loading, caching, failures, Retry and stale requests.
  • Check accessibility and the actual browser/device matrix.
  • Put real failures, rights and attribution beside claims.

Key takeaways

  • Check data, training, evaluation and deployment as one release.
  • Unknown rights and unmeasured device claims are open items, not implicit passes.

17. Common mistakes and their diagnostics

Most expensive mistakes cross a boundary silently: from validation to test, teacher training to actual transfer, compressed bytes to RAM, or a tensor format to runtime support. Diagnose the boundary before increasing the model.

Mistake Why it fails Better diagnostic/action
Quote big-model accuracy with a smaller alternative file Artifacts behave differently Bind every score to hashes/decoder settings
Count neural bytes only Dictionaries/runtime can dominate Canonical payload manifest
Treat greedy as the full system Search/ranking matter Decoder ablations and candidate oracle
Trust split filenames Mirrors and duplicates can leak Raw and normalized membership audit
Assume trained teacher means KD happened Loss may be disconnected Change teacher targets; test student gradients
Validate only on synthetic examples Measures generator imitation Untouched human evaluation
Port Hindi grammar tricks everywhere Linguistic structure differs Trigger coverage and gains per language
Cast weights directly to int8 Scales are lost Export scales plus a matching reader
Equate GGUF with llama.cpp support Container ≠ runtime implementation Target-loader test and explicit caveat
Promise all devices after resizing Chrome Viewport ≠ physical browser/OS Publish actual tested/unverified matrix
Cache a rejected loading promise Retry rethrows old failure Evict rejected loads; test recovery
Keep a retracted number in later summaries Narrative outruns evidence Mark dependent claims superseded

A useful debugging habit is to ask which layer owns the failure: corpus, target encoding, neural channel, candidate coverage, ranking, context, serialization or UI state. A system can fail in any one of them while the others appear healthy. “The model is bad” is rarely a sufficiently precise diagnosis.

Key takeaways

  • Diagnose the failure category before adding capacity.
  • Use dependency tests, artifact hashes and split audits to catch silent errors.

18. FAQ

These are the decisions that recur when a promising compact-model experiment becomes a real product. The useful answer is usually conditional on the task, data or accounting boundary—not on a universal slogan.

Can this make a million-parameter ChatGPT replacement?
No. It builds a narrow model with a tractable hypothesis space. Distillation transfers task behavior, not the teacher's entire general knowledge.

Is distillation incompatible with training from scratch?
No. Random initialization describes starting weights; distillation describes supervision. Both can be true.

Should I optimize the dataset or quantizer first?
Establish a correct, auditable baseline first. Quantizing bad labels or leaked splits makes a smaller unreliable system.

Are characters always better than bytes/subwords?
No. Characters suit short spelling transformations. Bytes avoid script-specific inventories but lengthen multibyte-script sequences. Subwords can help sentence LMs at embedding/tokenizer cost.

Why can such a small model compete at all?
Narrow per-language mapping, rich supervision and explicit search/frequency knowledge. That does not guarantee it beats the teacher's complete package; four new languages here do not.

Should languages share weights?
Measure equal-compute and equal-quality frontiers. The small probe showed interference, not a universal impossibility result.

Is a dictionary cheating?
No, with disclosed provenance/construction, counted bytes and a declared benchmark policy. Selecting entries from test answers is different.

Can the sentence LM repair a missing candidate?
Not in this architecture. It chooses among candidates. Measure oracle coverage first.

Does QAT guarantee no loss?
No. It can improve robustness to export perturbations. Validate the exact file; a small parity sample is not a proof for all inputs.

Why not choose the strongest Bengali teacher regardless of terms?
Rights, domain and compute matter. BanglaT5's card is NC/SA; ByT5-small's is Apache-2.0. Neither name replaces a data audit or validation result.

Can the combined release be used commercially?
No: current MultiIndic is CC-BY-NC-4.0 with attribution. Independently released Hindi components retain their terms. Review component obligations; this guide is not legal advice.

Why not just train longer?
Plateau, domain mismatch, missing candidates and ranking errors are different bottlenecks. More steps on the same signal may solve none.

Does local inference mean permanent offline availability?
No. Inference works after required assets load. Persistent offline use needs a separately tested cache/service-worker policy.

What if a result fails an audit?
Preserve artifacts, correct the fault, mark the old claim invalid and explain the changed interpretation. Do not silently replace a number while retaining its original story.

Key takeaways

  • Narrow scope and explicit components are the source of the size advantage.
  • Teacher, dictionary and format choices never remove evaluation or rights obligations.

19. Reproducibility and source map

Reproducibility means being able to explain why a result changes—not merely rerunning a command. Preserve the data mixture, supervision, decoding policy and artifact bytes together. The case-study measurements below come from recorded AksharaLP experiments and the frozen release; mathematical illustrations are labeled separately. Corrected findings take precedence over earlier optimistic claims.

ID Implementation or experiment record Supports
S0 research/multi/SURVEY.md Sharing probe, budget reasoning, LID caveats
S1 research/multi/work/multi_eval_NOTES.md Full-VALID diagnosis, distribution mismatch, proposed reweighting
S2 research/multi/CHAT_RESEARCH.md, corrected §11/Exp A Leakage correction, adaptation, retrieval and residual overlap
S3 research/multi/EXPERIMENT_REPORT.md Corrected conclusions and CE-only experiment B
S4 research/multi/MULTIINDIC_RELEASE_LICENSE_GATE.md Source conflicts, row counts and parameter inventory; read subsequent release decision too
S5 release/multiindic/hf_model/README.md, evaluation/sizes.json, evaluation/gguf_parity.json Frozen release metrics, footprint, Hindi LM and GGUF
S6 research/multi/build_pairs_multi.py, gen_teacher_multi.py Teacher directions, score margins and firewall
S7 release/kaggle_chat/B/PLAN.md, C/PLAN.md Proposed teachers and estimates, not outcomes
S8 bhc/xlit_model.py, bhc/xlit_q.py, train/train_distill.py, release/kaggle_multi/run_kaggle_multi.py Architecture, quantization, optimization and sampling
S9 Earlier docs/AksharaLP_v1_explained.md, docs/AksharaLP_v2_explained.md, research/tiny/ implementation Lineage and research-only compression; later audits take precedence
S10 research/multi/EXPERIMENT_A_REPORT.md Frozen retrieval configuration and quality/size
S11 Local commits 6b33501, 7af98f0; release worker/UI Fetch binding and streamed loading/cache/retry

These identifiers locate the implementation and experiment records in the AksharaLP research archive. They are precise provenance pointers, not a claim that every intermediate experiment is a separately distributed public dataset. The public model card [24] supplies the release inventory, benchmarks and restrictions; the bibliography supplies the primary methods and upstream resources.

Preserve a reproducible run, not just its weights

Keep the configuration, source revisions, corpus manifests, split membership hashes, seeds, training logs, optimizer/scaler state, teacher-generation settings, quantizer and complete decoder configuration. Save final predictions so interval estimation and scoring corrections do not require rerunning inference.

Before comparing two versions, ask which boundary moved: data, initialization, training, export, search, ranking or evaluation. A result is interpretable only when those changes are explicit. A toy gradient test demonstrates a code dependency; it does not establish model quality.

Read the figures at the right level

Training curves are historical observations from the named log. Release charts reuse frozen scores. The beam tree, quantization grid and distillation flow explain mechanisms; they are not additional accuracy experiments. The temperature chart is an exact mathematical illustration of softmax on declared logits, not a measurement of a trained teacher.

Limits of this guide: source-rights conflicts are not legally resolved; physical mobile memory/latency and Safari compatibility remain unverified. Proposed teacher/refinement experiments are labeled as such. The teaching illustrations make no additional accuracy claim.

Key takeaways

  • Preserve enough state to explain changes, not just to reload weights.
  • Separate historical observations, mathematical illustrations and new hypotheses.

20. Media rights and accessibility

A technical explanation should remain usable without motion, network access or ambiguous reuse rights. The same provenance discipline applied to training data belongs in the document itself.

The 17 numbered concept figures comprise 12 static figures and five animations: 15 originals (11 static, four animated) and two reused internet figures (one static, one animated). Five PNG posters are alternate print/reduced-motion renditions, not additional concepts. The HTML hero adds an original animated SVG banner; the social preview and favicon are original identity artwork.

Media Creator Rights / source
Figures 1–3, 5–9, 11–17; hero, social preview and favicon Sourojit Dhua © 2026 Sourojit Dhua; all rights reserved
Figure 4, Transformer architecture dvgodoy CC-BY-4.0; Wikimedia Commons source/licence linked in caption; file unmodified, scaled only
Figure 10, gradient descent Jacopo Bertolotti CC0-1.0; Wikimedia Commons source/licence linked in caption; original GIF unmodified; print poster is an extracted frame
Inter and Noto Indic fonts Their respective contributors SIL OFL 1.1; full OFL-*.txt notices accompany the assets and are embedded in the standalone HTML

Text and original illustrations: © Sourojit Dhua, all rights reserved. Third-party assets retain their stated terms. LICENSE.txt and MEDIA_CREDITS.md accompany the downloadable edition.

Each figure has descriptive alt text and a source/creator/rights caption. Third-party assets retain their own terms; they do not acquire the model's licence by appearing beside it. No paper figure was copied under an assumed arXiv-wide licence: a public paper URL alone is not reuse permission. No rights-unverified internet illustration is embedded.

Self-contained HTML includes images/fonts rather than relying on CDNs. It honors reduced-motion preferences, offers a pause-motion button and retains visible captions. PDF uses representative stills; surrounding text explains quantization, search and byte accounting without depending on motion.

Key takeaways

  • Retain source, creator and rights with every reused asset.
  • Provide text explanations and static renditions so motion is never required.

21. References

Primary methods, datasets, model cards and implementation documentation. Prefer the original paper for a method, the current source card for terms, and the exact release record for a measured result. A working link is not a substitute for checking what its source actually supports.

  1. Vaswani, A., et al. (2017). Attention Is All You Need. arXiv:1706.03762. Encoder–decoder attention architecture.
  2. Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the Knowledge in a Neural Network. arXiv:1503.02531. Soft targets and temperature.
  3. Kim, Y., and Rush, A. M. (2016). Sequence-Level Knowledge Distillation. EMNLP 2016. Teacher-generated sequence supervision.
  4. Jacob, B., et al. (2018). Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference. arXiv:1712.05877. CVPR 2018; preprint 2017. Principles, not a claim of integer-only AksharaLP compute.
  5. Madhani, Y., et al. (2022 preprint; Findings EMNLP 2023). Aksharantar: Open Indic-language Transliteration Datasets and Models for the Next Billion Users. arXiv:2205.03018; published paper. Dataset and IndicXlit.
  6. Roark, B., et al. (2020). Processing South Asian Languages Written in the Latin Script: the Dakshina Dataset. LREC 2020.
  7. Ramesh, G., et al. (2021 preprint; TACL 2022). Samanantar: The Largest Publicly Available Parallel Corpora Collection for 11 Indic Languages. arXiv:2104.05596. Consult current terms separately.
  8. Doddapaneni, S., et al. (2022 preprint; ACL 2023). Towards Leaving No Indic Language Behind: Building Monolingual Corpora, Benchmark and Models for Indic Languages. ACL 2023. IndicCorp v2 and associated resources.
  9. Xue, L., et al. (2021 preprint; TACL 2022). ByT5: Towards a Token-Free Future with Pre-trained Byte-to-Byte Models. arXiv:2105.13626.
  10. Fahim, M., Shifat, F. T., Haider, F., Barua, D. D., Sourove, M. S. U. R., Ishmam, M. F., and Bhuiyan, M. F. A. (2024). BanglaTLit: A Benchmark Dataset for Back-Transliteration of Romanized Bangla. Findings EMNLP 2024. Repository MIT licence.
  11. Koehn, P. (2004). Statistical Significance Tests for Machine Translation Evaluation. EMNLP 2004. Paired resampling methodology.
  12. AI4Bharat. Samanantar dataset card. Current CC-BY-NC-4.0 statement.
  13. AI4Bharat. Samanantar publisher page. Packaging CC0/disclaimer evidence, not resolution of source conflict.
  14. AI4Bharat. IndicCorp v2 dataset card. CC0 statement.
  15. AI4Bharat. IndicXlit MIT licence.
  16. Google. ByT5-small checkpoint card. Apache-2.0 and task adaptation.
  17. Bhattacharjee, A., et al. BanglaT5 checkpoint card. CC-BY-NC-SA-4.0.
  18. Qwen Team. Qwen2.5-7B-Instruct checkpoint card. Apache-2.0; proposed generator.
  19. GGML contributors. GGUF specification. Container structure/metadata.
  20. llama.cpp contributors. llama.cpp documentation. Runtime/architecture support is separate from format.
  21. PyTorch contributors. Automatic Mixed Precision examples. Autocast, GradScaler and clipping.
  22. MDN contributors. Using Web Workers. Message passing and browser threading.
  23. Google Research. Dakshina source README. Data structure and CC-BY-SA-4.0.
  24. Dhua, S. (2026). AksharaLP-MultiIndic-8M model card. Frozen release inventory, metrics and limitations.
  25. AI4Bharat. Aksharantar dataset card. Packaging/source terms; read with provenance audit.

Key takeaways

  • Use primary sources for methods and current source cards for terms.
  • Tie case-study claims to the exact release or experiment record.

Keep the task narrow, the supervision rich, the system explicit, and the claims smaller than the evidence—not the other way around.

Sourojit Dhua · sourojitdotcom

About the author

Sourojit Dhua

I build AksharaLP: compact, task-specific models backed by careful datasets, explicit decoding and honest measurement. This guide shares the design decisions—and the corrections—that make small models useful.

Bundled font licences · SIL OFL 1.1

OFL-Inter.txt

Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

OFL-NotoSansBengali.txt

Copyright 2022 The Noto Project Authors (https://github.com/notofonts/bengali)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

OFL-NotoSansDevanagari.txt

Copyright 2022 The Noto Project Authors (https://github.com/notofonts/devanagari)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

OFL-NotoSansKannada.txt

Copyright 2022 The Noto Project Authors (https://github.com/notofonts/kannada)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

OFL-NotoSansTamil.txt

Copyright 2022 The Noto Project Authors (https://github.com/notofonts/tamil)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

OFL-NotoSansTelugu.txt

Copyright 2022 The Noto Project Authors (https://github.com/notofonts/telugu)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.