Views
No views yet
Bharosa is a base language model, not an instruction-tuned or chat model. It is intended primarily for research, text continuation, evaluation, local inference, and downstream fine-tuning.
| Property | Value |
|---|---|
| Model | Bharosa |
| Model type | Decoder-only causal language model |
| Parameters | ~140M (138.97M actual) |
| Training tokens | ~50B |
| Layers | 24 |
| Hidden size | 640 |
| Intermediate size | 1,920 |
| Attention heads | 8 (Query) / 4 (KV) |
| Head dimension | 80 |
| Vocabulary size | 32,768 |
| Context length | 3,072 tokens |
| Attention | Grouped-Query Attention (GQA) |
| Attention normalization | QK Normalization |
| Position encoding | RoPE (\theta = 100,000) |
| MLP | SwiGLU |
| Normalization | RMSNorm (\epsilon = 1\text{e-}6) |
| Embeddings | Tied input/output embeddings |
| Precision | bfloat16 |
| Weight format | Safetensors |
| Framework | PyTorch + Transformers |
| Benchmark | Accuracy |
| :--- | :--- |
| ARC Easy | 59.01% |
| ARC Challenge | 25.51% |
| PIQA | 67.63% |
| HellaSwag | 34.94% |
| Winogrande | 51.54% |
| OpenBookQA | 20.80% |
pip install -U torch transformers safetensors1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3model_id = "pihu21057w/bharosa"
4tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
5dtype = torch.bfloat16 if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else torch.float32
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 trust_remote_code=True,
9 torch_dtype=dtype
10).to("cuda" if torch.cuda.is_available() else "cpu")
11model.eval()
12# Prompt format should be text completion style
13prompt = "The capital of France is"
14inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
15with torch.no_grad():
16 output = model.generate(
17 **inputs,
18 max_new_tokens=80,
19 do_sample=True,
20 temperature=0.7,
21 top_p=0.9,
22 repetition_penalty=1.1,
23 use_cache=True,
24 )
25print(tokenizer.decode(output[0], skip_special_tokens=True))1with torch.no_grad():
2 output = model.generate(
3 **inputs,
4 max_new_tokens=80,
5 do_sample=False,
6 use_cache=True,
7 )
8print(tokenizer.decode(output[0], skip_special_tokens=True))1@misc{bharosa2026,
2 title = {Bharosa: A 140M Parameter Language Model Trained on 50B Tokens},
3 author = {BananaMind},
4 year = {2026},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/pihu21057w/bharosa}
7}