🇮🇳 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.
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); Pythonchat()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
- 🤗 Model: https://huggingface.co/eulogik/Bharat-Tiny-LLM-v2-MLX
- 💻 Source: https://github.com/eulogik/Bharat-Tiny-LLM
- 📊 Benchmarks: https://github.com/eulogik/Bharat-Tiny-LLM/blob/main/docs/benchmarks_v2.md
- 🏢 Built by eulogik
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05739f56b5455b3d0f846fb75b3a7484f266a499f255778190c67ccbad23b2be
|
|
| MD5 |
38031188f1dac8f2756773df6bb42a1b
|
|
| BLAKE2b-256 |
0f549de087ea51350d9d51598cfd7eb6055974e3e8c96c429ef779758fdb6a9f
|
File details
Details for the file bharat_tiny_llm-0.3.0-py3-none-any.whl.
File metadata
- Download URL: bharat_tiny_llm-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
880053789315e7caf7b4b3a6072166be67e4340867533be52edb91168bedd986
|
|
| MD5 |
eb280da14c4795d3d551bd10539839b2
|
|
| BLAKE2b-256 |
5ae4481ec7fdc2e592c10f8bdd82696e112f136d05fb7868be9ec8699472354b
|