satyajitdas/bharatschemes-v1
Viewer • Updated • 2.03k • 70
How to use satyajitdas/BharatSchemes-7B with MLX:
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm
# if on a CUDA device, also pip install mlx[cuda]
# Generate text with mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("satyajitdas/BharatSchemes-7B")
prompt = "Once upon a time in"
text = generate(model, tokenizer, prompt=prompt, verbose=True)How to use satyajitdas/BharatSchemes-7B with MLX LM:
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "satyajitdas/BharatSchemes-7B" --prompt "Once upon a time"
India's first fine-tuned LLM for navigating government welfare schemes, state programs, and corporate CSR/NGO initiatives.
Helping 1.4 billion citizens discover the support they're entitled to.
BharatSchemes-7B is a Qwen 2.5 7B Instruct model fine-tuned with LoRA on the BharatSchemes dataset — a comprehensive collection of Indian central government schemes, state programs, corporate CSR initiatives, and NGO programs.
from mlx_lm import load, generate
model, tokenizer = load("satyajitdas/BharatSchemes-7B")
prompt = "I'm a single mother in Karnataka with two school-going daughters. What government schemes can help me?"
response = generate(model, tokenizer, prompt=prompt, max_tokens=500)
print(response)
Satyajit Das (IIT Kharagpur alumnus)
Apache 2.0
Quantized