Ama Dablam 322M Instruct

Instruction-tuned Ama Dablam: replies in whichever script you use — Devanagari, IAST, or phonetic romanized Nepali (e.g. "nepaalko raajdhaani kahaa ho?"). Fine-tuned on 259k Nepali instructions rendered 85/5/10 across the three scripts, with 5% pretraining replay to preserve base abilities.

response bpb (lower=better) overall Devanagari IAST phonetic
base (chat format) 0.570 0.524 1.008 1.171
instruct (this model) 0.347 0.315 0.696 0.741

Forgetting vs base after SFT: ne +0.011, mai +0.030, bho +0.039 bpb (all small); IAST-mai/bho drift +0.06–0.08 (uncovered combinations; documented).

Usage (chat template built in)

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("spandyie/amadablam-322m-instruct")
model = AutoModelForCausalLM.from_pretrained("spandyie/amadablam-322m-instruct",
                                             trust_remote_code=True)
msgs = [{"role": "user", "content": "स्वस्थ रहन के गर्नुपर्छ?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt")
out = model.generate(ids, max_new_tokens=200)   # sampling defaults ship in generation_config
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))

Limitations (read before use)

  • License: CC-BY-NC-4.0 (non-commercial) — the instruction data derives partly from Alpaca/Dolly-family sets carrying OpenAI-generated-content terms.
  • 322M params: follows instructions and matches your script, but facts are unreliable — built for formatting/conversation, not QA accuracy.
  • Known failure mode: creative Devanagari prompts (poems, greetings) can degenerate into English text.
  • Multi-turn is lightly trained (template supports it; quality untested).
  • 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 BOS id 16368.
  • No system role; single-seed SFT; see the technical report for full evaluation.
Downloads last month
25
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-instruct

Finetuned
(1)
this model