Skip to main content

🇮🇳 bharat-tiny-llm — Offline Hindi/Hinglish AI for Apple Silicon

bharat chat — an 880 MB Hindi/Hinglish assistant that runs fully offline. No API, no cloud, no internet.

PyPI version Python License Model

Built by eulogik.

Install

pip install "bharat-tiny-llm[mlx]"   # Apple Silicon (recommended)
pip install "bharat-tiny-llm[torch]" # CPU/CUDA (loaders only)

Use

bharat chat                  # interactive REPL with history
bharat ask "नमस्ते!"         # one-shot question
bharat info                  # model + package info

First run downloads the 880 MB model from Hugging Face; after that everything is offline.

आप › Chai peete hain?
Chai peet hai, main ek assistant hoon.

Python API

from bharat_tiny_llm import chat

print(chat([{"role": "user", "content": "नमस्ते, आप कैसे हैं?"}], use_v2=True))

What's inside

Qwen2.5-1.5B + 300 injected Devanagari tokens ("Brahmi injection", −36.5% Hindi tokenization cost) + LoRA, quantized to 4-bit MLX. Measured benchmarks: bharat-tiny-llm benchmarks.

Notes & limitations

  • Requires Apple Silicon for the CLI (mlx); Python chat() also works via the torch backend on other platforms.
  • Don't pass system prompts — v2 was trained without system turns.
  • Sampling defaults are canonical (temp 0.3, top-p 0.85, rep-penalty 1.25) — changing them can degrade output badly.
  • Conversational quality is decent; factual/math reliability at 1.5B is limited.

License

Apache-2.0

Metadata

Release files for bharat-tiny-llm 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bharat-tiny-llm 0.3.0
File Size Uploaded Provenance
bharat_tiny_llm-0.3.0.tar.gz 6.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bharat-tiny-llm 0.3.0
File Interpreter ABI Platform
bharat_tiny_llm-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / bharat_tiny_llm-0.3.0.tar.gz

Download URL bharat_tiny_llm-0.3.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
05739f56b5455b3d0f846fb75b3a7484f266a499f255778190c67ccbad23b2be
BLAKE2b-256 checksum
How to use checksums
0f549de087ea51350d9d51598cfd7eb6055974e3e8c96c429ef779758fdb6a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / bharat_tiny_llm-0.3.0-py3-none-any.whl

Download URL bharat_tiny_llm-0.3.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
880053789315e7caf7b4b3a6072166be67e4340867533be52edb91168bedd986
BLAKE2b-256 checksum
How to use checksums
5ae4481ec7fdc2e592c10f8bdd82696e112f136d05fb7868be9ec8699472354b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for bharat-tiny-llm 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page