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.

Links

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bharat_tiny_llm-0.3.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bharat_tiny_llm-0.3.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file bharat_tiny_llm-0.3.0.tar.gz.

File metadata

  • Download URL: bharat_tiny_llm-0.3.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for bharat_tiny_llm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 05739f56b5455b3d0f846fb75b3a7484f266a499f255778190c67ccbad23b2be
MD5 38031188f1dac8f2756773df6bb42a1b
BLAKE2b-256 0f549de087ea51350d9d51598cfd7eb6055974e3e8c96c429ef779758fdb6a9f

See more details on using hashes here.

File details

Details for the file bharat_tiny_llm-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bharat_tiny_llm-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 880053789315e7caf7b4b3a6072166be67e4340867533be52edb91168bedd986
MD5 eb280da14c4795d3d551bd10539839b2
BLAKE2b-256 5ae4481ec7fdc2e592c10f8bdd82696e112f136d05fb7868be9ec8699472354b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

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