Fill-Mask
Transformers
Safetensors
English
Sanskrit
elc_psalm
babylm
babylm-2026
masked-lm
paninian
sanskrit
encoder
custom_code
Run this model with HF Jobs
Run qbz506/prabhasa-b_s on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/qbz506/prabhasa-b_s. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/qbz506/prabhasa-b_s on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use qbz506/prabhasa-b_s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qbz506/prabhasa-b_s with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="qbz506/prabhasa-b_s", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("qbz506/prabhasa-b_s", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
prabhasa-b_s — Prabhāsa (Pāṇinian Structured pretraining for Small LMs)
BabyLM 2026 Strict (100M words) submission. ELC-PSALM encoder (RoPE, Vidyut N-hot morpheme
embeddings, kāraka-aware masking, Muon optimizer), pure/hybrid MLM. Load with
trust_remote_code=True (AutoModelForMaskedLM).
Results
- BLiMP-PLL: 73.06 (single seed). Text-Avg 55.99 (>~54 baseline); BLiMP-supplement 67.46 (+2.46), entity-tracking 33.26 (+9.68).
Honest findings (pre-registered, controlled)
- F1: the objective effect is scale-dependent (pure-MLM wins at 100M, neutral at 10M).
- F2: kāraka masking is causally null at matched budget (ΔK−C +0.10, ns).
- F3: kāraka auxiliary objective gives no significant BLiMP lift (5-seed Δ +0.76, ns).
- Robust wins = architecture (RoPE) + objective (pure-MLM). The Pāṇinian mechanisms contribute interpretability and design, not a measured BLiMP gain. Code: github.com/SharathSPhD/prabhasa-babylm
from transformers import AutoModelForMaskedLM, AutoTokenizer
m = AutoModelForMaskedLM.from_pretrained("qbz506/prabhasa-b_s", trust_remote_code=True)
t = AutoTokenizer.from_pretrained("qbz506/prabhasa-b_s")
- Downloads last month
- 14