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
Panini-1 (1.8B)
India's First Recursive Self-Development & Improvement (RSI) Model · Efficient, Instruction-Aware NMT for Indian Languages
Developed by Asimov Super Intelligence · Made in India 🇮🇳
GitHub Platform & Studio · Official Benchmarks · Technical Report · Supported Languages
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,YAMLwith locked keys &{{placeholders}}) - Delimiter preservation, personalization rules, and context-aware disambiguation
Recursive Self-Development & Origin (SDS / SHM)
India's First Recursive Self-Development & Improvement (RSI) Model
Panini-1 is an experimental model demonstrating Self-Development Systems (SDS) / **Synthetic Heritage Modeling (SHM)**—an autonomous research paradigm where one model develops and reproduces its next-generation successor and heritage.
| Build Attribute | Specification |
|---|---|
| Methodology | Fine-tuned internal DeepSeek-based harness orchestrating a fine-tuned Gemma-based system for a clean-room build from scratch |
| Research Paradigm | SDS (Self-Development System) / SHM (Synthetic Heritage Modeling) |
| Compute Hardware | Single NVIDIA GeForce RTX 3050 (6 GB VRAM) · AMD Ryzen 5 5500 (6 Cores, 12 Threads @ 3.60 GHz) · 16.0 GB RAM @ 3200 MT/s |
| Total Build Time | ~5 hours end-to-end (including ~1.5 hours of manual model architecture and specification documentation; excluding benchmark evaluation) |
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): Achieves47.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++oneng_Latn -> tam_Taml(39.33vs.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/18direction-dataset pairs (p_holm >= 0.288). - 2.24× Faster Cold Start & Minimal RAM: Boots in
12.16 s(vs.27.28 sfor NLLB-200 600M) with0.10 GBPython process RAM delta (vs.1.72 GB). - 100% Structured & Terminology Accuracy:
11/13(84.6%) across the 7-mode capability suite, with100%on JSON, XML, HTML, YAML (4/4), Terminology (2/2), Default Fidelity (2/2), Style (1/1), and Context (1/1).
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) |
![]() FLORES+ Direction-Wise chrF++ Heatmap |
![]() 7-Mode Instruction-Following Pass Rates |
![]() Parameter Efficiency (Model Size vs. chrF++) |
![]() Quality vs. P50 Single-Request Latency |
*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.
Model Specifications
| Attribute | Value |
|---|---|
| Model Name | Panini-1 |
| Organization | HarVa Literary & Linguistic Systems Lab (HLLS) |
| Architecture | Dense Causal LM (1.8B parameters, QK-Norm) |
| 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 |
Supported Languages (15)
| Code | Language | Native Name | Script | Direction |
|---|---|---|---|---|
en |
English | English | Latin | LTR |
hi |
Hindi | हिन्दी | Devanagari | LTR |
bn |
Bengali | বাংলা | Bengali | LTR |
ta |
Tamil | தமிழ் | Tamil | LTR |
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 |
Recommended Inference Parameters
{
"temperature": 0.7,
"top_p": 0.6,
"top_k": 20,
"repetition_penalty": 1.05,
"max_tokens": 4096
}
For deterministic benchmark evaluation, use temperature=0.0, top_k=1, repetition_penalty=1.05.
Quick Usage
1. llama.cpp OpenAI-Compatible Server
llama-server -m Panini-1-Q4_K_M.gguf -c 4096 -fa off --port 8080
2. Prompt Templates
Standard Translation (default):
Translate 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):
### Task
Translate the user-facing text within the following JSON data into Kannada.
### Strict Rules
1. 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)
git clone https://github.com/harvatechs/Panini-1.git
cd Panini-1
pip install -r backend/requirements.txt
# Place Panini-1-Q4_K_M.gguf in models/ and run:
.\start.ps1
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.0results cover 6 core bidirectional pairs (eng_Latn ↔ hin_Deva, kan_Knda, tam_Taml, 50 matched segments/direction/dataset). Full 28-direction FLORES+ (1,012segments/dir), native-speaker MQM human evaluation, and training-corpus deduplication audits are planned forPES v1.1.
Citation
@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}
}
- Downloads last month
- 115
4-bit
Datasets used to train harvadeeplabs/Panini-1
ai4bharat/IN22-Gen
ai4bharat/IN22-Conv
Evaluation results
- chrF++ on FLORES+ (devtest, 6-direction matched subset)self-reported54.340
- SacreBLEU on FLORES+ (devtest, 6-direction matched subset)self-reported24.190
- chrF++ on IN22-Gen (test, 6-direction matched subset)test set self-reported47.640
- SacreBLEU on IN22-Gen (test, 6-direction matched subset)test set self-reported17.470
- chrF++ on IN22-Conv (test, 6-direction matched subset)test set self-reported42.750
- SacreBLEU on IN22-Conv (test, 6-direction matched subset)test set self-reported15.970



