Ama Dablam 322M (base)

A 322M-parameter decoder-only LM pretrained from scratch on Nepali, Maithili, and Bhojpuri in three writing systems: Devanagari, IAST, and natural phonetic romanization. 12 of 14 layers use linear attention with per-head exponential decay (base 0.7); 2 use full softmax. 17.1B training tokens, 16,384-entry trilingual BPE.

val bpb (lower=better) ne mai bho iast_ne phon_ne
Ama Dablam base 0.406 0.368 0.546 0.326 0.942
Manaslu 491M dense (prior) 0.432 0.438 0.632 0.386

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("spandyie/amadablam-322m")
model = AutoModelForCausalLM.from_pretrained("spandyie/amadablam-322m",
                                             trust_remote_code=True)
ids = tok("नेपालको इतिहास", return_tensors="pt").input_ids
print(tok.decode(model.generate(ids, max_new_tokens=100, do_sample=True)[0]))

Details & limitations

  • Config serializes linear_decay=0.7 — required at construction; handled automatically here.
  • Base model: no instruction following (see spandyie/amadablam-322m-instruct).
  • This model is cacheless by design. generation_config.json sets use_cache: false by default. If you override generation kwargs, do not set use_cache=True — it will silently produce incoherent, context-free output rather than an error (only the last token gets fed back each step).
  • Right-pad with the BOS token (id 16368); attention_mask is accepted but unused.
  • 322M params / 17.1B tokens: factual knowledge is limited; single-seed training run.
  • Pretraining corpus: web/news/wiki + curated Nepali sets, dedup + quality-gated; phonetic slices generated by deterministic transliteration.
Downloads last month
33
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for spandyie/amadablam-322m

Finetunes
1 model