Translation
GGUF
indic
indian-languages
multilingual
panini
panini-1
hlls
llama-cpp
structured-translation
recursive-self-improvement
synthetic-heritage-modeling
sds
Eval Results (legacy)
imatrix
conversational
Instructions to use harvadeeplabs/Panini-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use harvadeeplabs/Panini-1 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf harvadeeplabs/Panini-1:Q4_K_M # Run inference directly in the terminal: llama cli -hf harvadeeplabs/Panini-1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf harvadeeplabs/Panini-1:Q4_K_M # Run inference directly in the terminal: llama cli -hf harvadeeplabs/Panini-1:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf harvadeeplabs/Panini-1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf harvadeeplabs/Panini-1:Q4_K_M
Use Docker
docker model run hf.co/harvadeeplabs/Panini-1:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use harvadeeplabs/Panini-1 with Ollama:
ollama run hf.co/harvadeeplabs/Panini-1:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use harvadeeplabs/Panini-1 with Docker Model Runner:
docker model run hf.co/harvadeeplabs/Panini-1:Q4_K_M
- Lemonade
How to use harvadeeplabs/Panini-1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull harvadeeplabs/Panini-1:Q4_K_M
Run and chat with the model
lemonade run user.Panini-1-Q4_K_M
List all available models
lemonade list
- Atomic Chat
docs: upgrade Panini-1 model card with PES v1.0 benchmarks, figures, and model-index metadata
Browse filesFiles changed (7)
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textPanini-1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text33 unmodified lines343536373839404133 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textPanini-1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -textassets/fig1_overall_leaderboard.png filter=lfs diff=lfs merge=lfs -textassets/fig2_language_heatmap.png filter=lfs diff=lfs merge=lfs -textassets/fig3_size_vs_quality.png filter=lfs diff=lfs merge=lfs -textassets/fig4_quality_vs_latency.png filter=lfs diff=lfs merge=lfs -textassets/fig5_panini_7mode_capabilities.png filter=lfs diff=lfs merge=lfs -text
17 unmodified lines1819202122234 unmodified lines28293031323334353637383940417 unmodified lines495051525354558 unmodified lines6465666768697071727374757610 unmodified lines878889909192939495969798991001011021031041051061071081094 unmodified lines11411511611711811912012112212312417 unmodified lineslicense: apache-2.0library_name: ggufpipeline_tag: translationtags:- translation- indic4 unmodified lines- hlls- gguf- llama-cpp---# Panini-1 (`1.8B`)**Panini-1** is an open-source `1.8B`-parameter multilingual neural machine translation model built and managed by **HarVa Literary & Linguistic Systems Lab (HLLS)**, specialized for **14 Indian languages paired with English**.* **GitHub Platform & Studio:** [harvatechs/Panini-1](https://github.com/harvatechs/Panini-1)* **License:** Apache-2.0---7 unmodified lines| **Hidden / Intermediate Size** | `2048` / `6144` || **Layers / Attention Heads** | `32` layers · `16` Q heads / `4` KV heads (GQA) || **Context Window** | `8192` tokens (`max_tokens: 4096`) || **Quantization Provided** | `Panini-1-Q4_K_M.gguf` (`4-bit` K-quant medium, ~1.1 GB) |---8 unmodified lines| `te` | Telugu | తెలుగు | Telugu | LTR || `mr` | Marathi | मराठी | Devanagari | LTR || `gu` | Gujarati | ગુજરાતી | Gujarati | LTR || `ur` | Urdu | اردو | Arabic | RTL || `pa` | Punjabi | ਪੰਜਾਬੀ | Gurmukhi | LTR || `kn` | Kannada | ಕನ್ನಡ | Kannada | LTR || `ml` | Malayalam | മലയാളം | Malayalam | LTR || `or` | Odia | ଓଡ଼ିଆ | Odia | LTR || `as` | Assamese | অসমীয়া | Bengali-Assamese | LTR || `sd` | Sindhi | سنڌي | Arabic | RTL || `sa` | Sanskrit | संस्कृतम् | Devanagari | LTR |---10 unmodified lines}```---## Quick Usage### 1. `llama.cpp` OpenAI-Compatible Server```bashllama-server -m Panini-1-Q4_K_M.gguf --jinja -c 8192 --port 8080```### 2. Prompt Template (Standard Translation)```textTranslate the following text into Hindi. Note that you should only output the translated result without any additional explanation:Digital public infrastructure in India has transformed instant payments.```### 3. Full-Stack Studio (FastAPI + Streamlit)```bashgit clone https://github.com/harvatechs/Panini-1.gitcd Panini-14 unmodified lines---## Citation```bibtex@software{hlls2026panini1,title = {Panini-1: Production Neural Machine Translation for Indian Languages},author = {{HarVa Literary \& Linguistic Systems Lab (HLLS)}},year = {2026},url = {https://github.com/harvatechs/Panini-1}17 unmodified lines181920212223242526274 unmodified lines32333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631647 unmodified lines1721731741751761771781798 unmodified lines18818919019119219319419519619719819920010 unmodified lines2112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572584 unmodified lines26326426526626726826927027127227327427527627727827928017 unmodified lineslicense: apache-2.0library_name: ggufpipeline_tag: translationdatasets:- openlanguagedata/flores_plus- ai4bharat/IN22-Gen- ai4bharat/IN22-Convtags:- translation- indic4 unmodified lines- hlls- gguf- llama-cpp- structured-translationmodel-index:- name: Panini-1 (1.8B Q4_K_M)results:- task:type: translationname: Multilingual Translation (EN <-> HI/KN/TA)dataset:type: openlanguagedata/flores_plusname: FLORES+ (devtest, 6-direction matched subset)split: devtestrevision: 286d1e920e5ad8cf3a5bbbb5baac111d13d082demetrics:- type: chrfname: chrF++value: 54.34- type: bleuname: SacreBLEUvalue: 24.19- task:type: translationname: Indian-Origin General Translation (EN <-> HI/KN/TA)dataset:type: ai4bharat/IN22-Genname: IN22-Gen (test, 6-direction matched subset)split: testrevision: e042ab3d3063110b1a85efa0a59bdbf8553bb928metrics:- type: chrfname: chrF++value: 47.64- type: bleuname: SacreBLEUvalue: 17.47- task:type: translationname: Indian Conversational Translation (EN <-> HI/KN/TA)dataset:type: ai4bharat/IN22-Convname: IN22-Conv (test, 6-direction matched subset)split: testrevision: 18cd45870ff0a9e65df9b80dbbcc615eec0e4899metrics:- type: chrfname: chrF++value: 42.75- type: bleuname: SacreBLEUvalue: 15.97---<div align="center"># Panini-1 (`1.8B`)**Efficient, Instruction-Aware Neural Machine Translation for Indian Languages***Built by **HarVa Literary & Linguistic Systems Lab (HLLS)** · **Made in India** 🇮🇳*[](https://github.com/harvatechs/Panini-1)[](https://github.com/harvatechs/Panini-1/blob/main/BENCHMARKS.md)[](https://github.com/harvatechs/Panini-1/blob/main/benchmark/reports/TECHNICAL_REPORT.md)[](https://github.com/harvatechs/Panini-1/blob/main/LICENSE.txt)[GitHub Platform & Studio](https://github.com/harvatechs/Panini-1) · [Official Benchmarks](https://github.com/harvatechs/Panini-1/blob/main/BENCHMARKS.md) · [Technical Report](https://github.com/harvatechs/Panini-1/blob/main/benchmark/reports/TECHNICAL_REPORT.md) · [Supported Languages](#supported-languages-15)</div>---## Overview**Panini-1** is an open-source **`1.8B`-parameter** multilingual neural machine translation model developed by **HarVa Literary & Linguistic Systems Lab (HLLS)**, purpose-built for **14 Indian languages paired with English**.Unlike conventional encoder-decoder NMT systems that only support plain-text translation, **Panini-1** combines compact edge-ready deployment (`~1.35 GB` in `Q4_K_M` GGUF) with **7 native instruction-following translation modes**:- **Terminology enforcement** (exact glossary injection)- **Register & style control** (formal, newsroom, conversational)- **Structured payload preservation** (`JSON`, `XML`, `HTML`, `YAML` with locked keys & `{{placeholders}}`)- **Delimiter preservation**, **personalization rules**, and **context-aware disambiguation**---## Benchmark Highlights (`PES v1.0`)Evaluated on **`900` matched segments per model** (`50` segments/direction × `6` bidirectional pairs: `eng_Latn ↔ hin_Deva, kan_Knda, tam_Taml`) across **FLORES+ (`devtest`)**, **IN22-Gen (`test`)**, and **IN22-Conv (`test`)**:- **#1 on Indian-Origin General Domain (`IN22-Gen`):** Achieves **`47.64 chrF++`** (`51.34 chrF`), outperforming **NLLB-200 Distilled (600M)** (`46.91`) and **IndicTrans2 (1B)\*** (`43.52`).- **Statistically Significant Conversational Gain (`IN22-Conv`):** Outperforms NLLB-200 600M by **`+5.03 chrF++`** on `eng_Latn -> tam_Taml` (`39.33` vs. `34.30`; 95% CI `[+1.69, +8.87]`, `p_holm = 0.034`).- **4-Bit Quantized Parity:** Statistically indistinguishable from full-precision FP32 NLLB-200 600M on `16/18` direction-dataset pairs (`p_holm >= 0.288`).- **2.24× Faster Cold Start & Minimal RAM:** Boots in **`12.16 s`** (vs. `27.28 s` for NLLB-200 600M) with **`0.10 GB`** Python process RAM delta (vs. `1.72 GB`).- **100% Structured & Terminology Accuracy:** **`11/13` (`84.6%`)** across the 7-mode capability suite, with **`100%`** on **JSON, XML, HTML, YAML (`4/4`)**, **Terminology (`2/2`)**, **Default Fidelity (`2/2`)**, **Style (`1/1`)**, and **Context (`1/1`)**.<p align="center"><img src="assets/fig1_overall_leaderboard.png" alt="Competitive Translation Quality Across Benchmarks" width="820"/></p>### Matched Macro-Average Leaderboards| Dataset | Panini-1 (`1.8B Q4_K_M`) | NLLB-200 Distilled (`600M`) | IndicTrans2 (`1B`)* | Key Finding || :--- | ---: | ---: | ---: | :--- || **IN22-Gen (`test`)** | **47.64** chrF++ | 46.91 chrF++ | 43.52 chrF++ | **#1** on Indian-origin general domain || **FLORES+ (`devtest`)** | 54.34 chrF++ | **55.41** chrF++ | 51.58 chrF++ | Statistical parity (`p_holm >= 0.288` on 6/6 pairs) || **IN22-Conv (`test`)** | 42.75 chrF++ | **43.05** chrF++ | 40.17 chrF++ | **`+5.03 chrF++`** significant gain on `EN -> TA` (`p_holm = 0.034`) |<table><tr><td align="center" width="50%"><img src="assets/fig2_language_heatmap.png" alt="FLORES+ Direction-Wise chrF++ Heatmap" width="100%"/><br/><sub><b>FLORES+ Direction-Wise chrF++ Heatmap</b></sub></td><td align="center" width="50%"><img src="assets/fig5_panini_7mode_capabilities.png" alt="Panini-1 7-Mode Capabilities" width="100%"/><br/><sub><b>7-Mode Instruction-Following Pass Rates</b></sub></td></tr><tr><td align="center" width="50%"><img src="assets/fig3_size_vs_quality.png" alt="Parameter Efficiency" width="100%"/><br/><sub><b>Parameter Efficiency (Model Size vs. chrF++)</b></sub></td><td align="center" width="50%"><img src="assets/fig4_quality_vs_latency.png" alt="Quality vs Latency Pareto Frontier" width="100%"/><br/><sub><b>Quality vs. P50 Single-Request Latency</b></sub></td></tr></table>*\*Note: `IndicTrans2 (1B)` `EN -> HI/KN/TA` and `HI -> EN` (`600` segments) include Devanagari pivot transliteration; `KN/TA -> EN` (`300` segments) ran prior to adding Devanagari pivot transliteration and could not be re-run due to `2.41 GB` available host RAM. Full tables, confidence intervals, and SacreBLEU signatures: [BENCHMARKS.md](https://github.com/harvatechs/Panini-1/blob/main/BENCHMARKS.md).*---7 unmodified lines| **Hidden / Intermediate Size** | `2048` / `6144` || **Layers / Attention Heads** | `32` layers · `16` Q heads / `4` KV heads (GQA) || **Context Window** | `8192` tokens (`max_tokens: 4096`) || **Quantization Provided** | `Panini-1-Q4_K_M.gguf` (`4-bit` K-quant medium, `1.35 GB`) || **Cold Start / Process RAM** | `12.16 s` cold start · `0.10 GB` Python process RAM delta |---8 unmodified lines| `te` | Telugu | తెలుగు | Telugu | LTR || `mr` | Marathi | मराठी | Devanagari | LTR || `gu` | Gujarati | ગુજરાતી | Gujarati | LTR || `ur` | Urdu | اردو | Arabic | **RTL** || `pa` | Punjabi | ਪੰਜਾਬੀ | Gurmukhi | LTR || `kn` | Kannada | ಕನ್ನಡ | Kannada | LTR || `ml` | Malayalam | മലയാളം | Malayalam | LTR || `or` | Odia | ଓଡ଼ିଆ | Odia | LTR || `as` | Assamese | অসমীয়া | Bengali-Assamese | LTR || `sd` | Sindhi | سنڌي | Arabic | **RTL** || `sa` | Sanskrit | संस्कृतम् | Devanagari | LTR |---10 unmodified lines}```For deterministic benchmark evaluation, use `temperature=0.0, top_k=1, repetition_penalty=1.05`.---## Quick Usage### 1. `llama.cpp` OpenAI-Compatible Server```bashllama-server -m Panini-1-Q4_K_M.gguf -c 4096 -fa off --port 8080```### 2. Prompt Templates**Standard Translation (`default`):**```textTranslate the following text into Hindi. Note that you should only output the translated result without any additional explanation:Digital public infrastructure in India has transformed instant payments.```**Structured JSON Preservation (`structured` — 100% pass rate across JSON/XML/HTML/YAML):**```text### TaskTranslate the user-facing text within the following JSON data into Kannada.### Strict Rules1. Structure Preservation: You MUST preserve the original JSON data structure, nesting, hierarchy, and indentation exactly as they are.2. Selective Translation: Translate ONLY the visible, user-facing text content/values.3. Strict Non-Translation: NEVER translate or alter code tags, keys, properties, object names, or variable placeholders. Leave them exactly in their original English/code form.### Source Data{"id": 1024,"message": "Welcome to our platform","username": "{{username}}","amount": 5000}```### 3. Full-Stack Studio (FastAPI + Streamlit)```bashgit clone https://github.com/harvatechs/Panini-1.gitcd Panini-14 unmodified lines---## Limitations & Scope- **Quantization:** This repository distributes `Panini-1-Q4_K_M.gguf` (4-bit K-quant); an unquantized BF16 checkpoint is not currently hosted.- **Evaluation Scope:** `PES v1.0` results cover 6 core bidirectional pairs (`eng_Latn ↔ hin_Deva, kan_Knda, tam_Taml`, 50 matched segments/direction/dataset). Full 28-direction FLORES+ (`1,012` segments/dir), native-speaker MQM human evaluation, and training-corpus deduplication audits are planned for `PES v1.1`.---## Citation```bibtex@software{hlls2026panini1,title = {Panini-1: Efficient, Instruction-Aware Neural Machine Translation for Indian Languages},author = {{HarVa Literary \& Linguistic Systems Lab (HLLS)}},year = {2026},url = {https://github.com/harvatechs/Panini-1}
.gitattributes+5
README.md+165-9
assets/fig1_overall_leaderboard.pngAdded

Large File Pointer Details
- SHA256: 0ad6b900198d6b3b5936eedf55bfb5e54d3925b85308362793b07b8544063998
- Pointer size: 131 Bytes
- Size of remote file: 144 kB
assets/fig2_language_heatmap.pngAdded

Large File Pointer Details
- SHA256: cef51c859ccb449725904fb5e6a2e4b47aad88e0572e844e00c2af4b7ba70853
- Pointer size: 131 Bytes
- Size of remote file: 195 kB
assets/fig3_size_vs_quality.pngAdded

Large File Pointer Details
- SHA256: c24b691effde7e1c496c73d3803002c05cd4953dd2b566d643cea1c168bcb241
- Pointer size: 131 Bytes
- Size of remote file: 122 kB
assets/fig4_quality_vs_latency.pngAdded

Large File Pointer Details
- SHA256: 212339db637458e9091be04908291beec01c562c11aba7d0ce5c0c1e56f7a5db
- Pointer size: 131 Bytes
- Size of remote file: 120 kB
assets/fig5_panini_7mode_capabilities.pngAdded

Large File Pointer Details
- SHA256: f3b51d17c29a07fde4cb8d8e320ea6eada83364fff91ced7bd0b47c3e480ad1e
- Pointer size: 131 Bytes
- Size of remote file: 106 kB