Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
1.5B Parameter Open-Weights Indic LLM featuring Brahmi Token Injection for 33.8% token compression and +36% faster Hindi inference.
🎯 Model Overview
Bharat-Tiny-LLM v2
is an open-weights 1.5B parameter language model built on top of Qwen2.5-1.5B, optimized specifically for Hindi and Hinglish text generation.
By introducing
Brahmi Token Injection
— a technique that surgically injects 300 Devanagari subword tokens into the model's vocabulary — Bharat-Tiny-LLM v2 eliminates the severe "Token Tax" imposed by standard English-centric tokenizers on Indian scripts.
This repository contains the
unquantized PyTorch / HuggingFace Transformers open weights
, compatible with Linux, Windows, CUDA GPUs, vLLM, TGI, and Google Colab.
🎨 Architectural Pipeline & Training Methodology
Interactive Training Pipeline Flowchart
flowchart LR
A["Raw Hindi Corpus"] --> B["Brahmi Subword Mining<br>(Top 300 Devanagari Tokens)"]
B --> C["Tokenizer Vocabulary Expansion<br>(151,936 ➔ 152,236)"]
C --> D["Stage 1: Embedding Alignment<br>(Freeze Backbone, Train 300 Embeddings)"]
D --> E["Stage 2: LoRA Fine-Tuning<br>(Rank=16 on Attention q,k,v,o proj)"]
E --> F["Fused PyTorch Base Weights<br>(eulogik/Bharat-Tiny-LLM-v2)"]
F --> G["Q4 Affine Quantization<br>(eulogik/Bharat-Tiny-LLM-v2-MLX)"]
✨ Key Benchmarks & Technical Advantages
Metric
Base Qwen2.5-1.5B
Bharat-Tiny-LLM v2
Technical Advantage
Tokens for 1,000 Hindi Chars
~950 tokens
~630 tokens
33.8% Fewer Tokens (up to 58% on chat prompts)
Inference Throughput (Hindi)
50 tok/s
68 tok/s
+36% Speed Boost
Validation Loss (Hindi Corpus)
2.776
1.837
52.5% Loss Reduction (Perplexity: 16.1 → 6.3)
Hardware Compatibility
CUDA / CPU / MPS
CUDA / CPU / MPS
Universal PyTorch / vLLM / GGUF support
🚀 Quick Start with PyTorch & Transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "eulogik/Bharat-Tiny-LLM-v2"# Load Tokenizer & Model Weights
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.float16,
device_map="auto"
)
# Generate Hindi Text
prompt = "भारत की सांस्कृतिक विविधता के बारे में बताइए:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=150,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Bharat-Tiny-LLM-v2 huggingface.co is an AI model on huggingface.co that provides Bharat-Tiny-LLM-v2's model effect (), which can be used instantly with this eulogik Bharat-Tiny-LLM-v2 model. huggingface.co supports a free trial of the Bharat-Tiny-LLM-v2 model, and also provides paid use of the Bharat-Tiny-LLM-v2. Support call Bharat-Tiny-LLM-v2 model through api, including Node.js, Python, http.
Bharat-Tiny-LLM-v2 huggingface.co is an online trial and call api platform, which integrates Bharat-Tiny-LLM-v2's modeling effects, including api services, and provides a free online trial of Bharat-Tiny-LLM-v2, you can try Bharat-Tiny-LLM-v2 online for free by clicking the link below.
eulogik Bharat-Tiny-LLM-v2 online free url in huggingface.co:
Bharat-Tiny-LLM-v2 is an open source model from GitHub that offers a free installation service, and any user can find Bharat-Tiny-LLM-v2 on GitHub to install. At the same time, huggingface.co provides the effect of Bharat-Tiny-LLM-v2 install, users can directly use Bharat-Tiny-LLM-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.