Instructions to use Polygl0t/GigaLekh-ablation-NonEDU-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Polygl0t/GigaLekh-ablation-NonEDU-1.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Polygl0t/GigaLekh-ablation-NonEDU-1.5B")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Polygl0t/GigaLekh-ablation-NonEDU-1.5B") model = AutoModelForMultimodalLM.from_pretrained("Polygl0t/GigaLekh-ablation-NonEDU-1.5B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Polygl0t/GigaLekh-ablation-NonEDU-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Polygl0t/GigaLekh-ablation-NonEDU-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Polygl0t/GigaLekh-ablation-NonEDU-1.5B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Polygl0t/GigaLekh-ablation-NonEDU-1.5B
- SGLang
How to use Polygl0t/GigaLekh-ablation-NonEDU-1.5B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Polygl0t/GigaLekh-ablation-NonEDU-1.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Polygl0t/GigaLekh-ablation-NonEDU-1.5B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Polygl0t/GigaLekh-ablation-NonEDU-1.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Polygl0t/GigaLekh-ablation-NonEDU-1.5B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Polygl0t/GigaLekh-ablation-NonEDU-1.5B with Docker Model Runner:
docker model run hf.co/Polygl0t/GigaLekh-ablation-NonEDU-1.5B
GigaLekh-ablation-NonEDU-1.5B
Model Summary
GigaLekh-ablation-NonEDU-1.5B is a decoder-transformer natively pretrained in Hindi. This model is part of an ablation study to measure the impact of our educational data filtering/augmentation strategy on the downstream performance of models trained with GigaLekh. GigaLekh-ablation-NonEDU-1.5B was trained with ~60 billion tokens, those being a mixture of the non-educational portion of GigaLekh (i.e., samples with an Edu Score < 3). This model has 1.5 billion parameters and a context length of 4096 tokens.
Details
- Architecture: a Transformer-based model (
llama) - Size: 1,510,066,176 parameters
- Context length: 4096 tokens
- Dataset(s):
- GigaLekh (non-educational subset, Edu Score < 3)
- Language(s): Hindi
- Batch size: 2,097,152 tokens
- Number of steps: 28,000
- GPU: 16 NVIDIA A40 (48 GB)
- Training time: ~104.81 hours
- Emissions: 164.58 KgCO2 (Germany)
- Total energy consumption: 432.03 kWh
This repository has the source code used to train this model. The complete configuration used for training is available in the following config file:
- Single stage (linear warmup with cosine decay): training_config.yaml
The main branch of this repository contains the final checkpoint saved at step 28,000. All other checkpoints are available as separate branches. To load a specific checkpoint, you can use the following code snippet:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Polygl0t/GigaLekh-ablation-NonEDU-1.5B"
revision = "step-2000" # Change this to the desired checkpoint branch
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, revision=revision)
Or, you can access all the revisions for the models via the following code snippet:
from huggingface_hub import list_repo_refs
out = list_repo_refs("Polygl0t/GigaLekh-ablation-NonEDU-1.5B")
branches = [b.name for b in out.branches]
print(branches)
Intended Uses
The primary intended use of this model is to serve as a baseline for evaluating the impact of data quality and filtering on Hindi language model performance. Researchers and practitioners can use this model as a reference point for further ablation studies or for comparison with other models trained on different data mixtures.
Basic usage
from transformers import GenerationConfig, TextGenerationPipeline, AutoTokenizer, AutoModelForCausalLM
import torch
# Specify the model and tokenizer
model_id = "Polygl0t/GigaLekh-ablation-NonEDU-1.5B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# Specify the generation parameters as you like
generation_config = GenerationConfig(
**{
"do_sample": True,
"max_new_tokens": 150,
"renormalize_logits": True,
"repetition_penalty": 1.2,
"temperature": 0.1,
"top_k": 50,
"top_p": 1.0,
"use_cache": True,
}
)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
generator = TextGenerationPipeline(model=model, task="text-generation", tokenizer=tokenizer, device=device)
# Generate text
prompt = "भारत की राजधानी क्या है?"
completion = generator(prompt, generation_config=generation_config)
print(completion[0]['generated_text'])
Evaluations
Figures below show the per-benchmark performance of GigaLekh-ablation-EDU-1.5B (educational subset, Edu Score >= 3) compared to GigaLekh-ablation-NonEDU-1.5B (non educational subset, Edu Score < 3). GigaLekh-Edu outperforms GigaLekh-NonEdu on 5 of 6 benchmarks and achieves a higher NPM score. The largest performance gap is observed in NPM (+29.1%; 12.43 vs. 9.63) and ARC Challenge (+19.9%; 0.301 vs. 0.251). Moderate advantages for the educational model are observed on MILU (+8.4%; 0.296 vs. 0.273), HellaSwag (+6.9%; 0.374 vs. 0.350), and CSQA (+4.5%; 0.372 vs. 0.356), while Global PIQA shows only a marginal difference (+1.6%; 0.640 vs. 0.630). The sole exception is MMLU, where GigaLekh-NonEdu marginally outperforms GigaLekh-Edu (0.258 vs. 0.256, <1%). These results suggest that training on educationally curated content consistently yields stronger language understanding.
Cite as 🤗
@article{fatimah2026raising,
title={Raising Bars, Not Parameters: LilMoo Compact Language Model for Hindi},
author={Fatimah, Shiza and Sen, Aniket and Falk, Sophia and Mai, Florian and Flek, Lucie and Corr{\^e}a, Nicholas Kluge},
journal={arXiv preprint arXiv:2603.03508},
year={2026}
}
Aknowlegments
Polyglot is a project funded by the Federal Ministry of Education and Research (BMBF) and the Ministry of Culture and Science of the State of North Rhine-Westphalia (MWK) as part of TRA Sustainable Futures (University of Bonn) and the Excellence Strategy of the federal and state governments.
We also gratefully acknowledge the granted access to the Marvin cluster hosted by University of Bonn along with the support provided by its High Performance Computing & Analytics Lab.
License
This model is licensed under the Apache License, Version 2.0. For more details, see the LICENSE file.
- Downloads last month
- 10
Dataset used to train Polygl0t/GigaLekh-ablation-NonEDU-1.5B
Collection including Polygl0t/GigaLekh-ablation-NonEDU-1.5B
Paper for Polygl0t/GigaLekh-ablation-NonEDU-1.5B
Evaluation results
- accuracy (normalized) on ARC Challenge (Hindi)test set Language Model Evaluation Harness (branch=polyglot_harness_hindi)25.080
- accuracy (normalized) on HellaSwag (Hindi)validation set Language Model Evaluation Harness (branch=polyglot_harness_hindi)35.040
- accuracy on MMLU (Hindi)test set Language Model Evaluation Harness (branch=polyglot_harness_hindi)25.820
- accuracy (normalized) on CSQA (Hindi)test set Language Model Evaluation Harness (branch=polyglot_harness_hindi)35.600
- accuracy (normalized) on Global PIQA (global_piqa_completions_hin_deva)test set Language Model Evaluation Harness (branch=polyglot_harness_hindi)63.000
- accuracy (normalized) on MILU (Hindi)test set Language Model Evaluation Harness (branch=polyglot_harness_hindi)27.260






