PowerPod GPUsUse casesGuidesFor collegesHelp Sign inCreate account

Teach an open language model better Nepali

Published 12 October 2026 · prices on this page are live

Open models such as Qwen, Gemma and Llama have read some Nepali, but they make grammar mistakes, slip into Hindi and drift into English. Fine-tuning on good Nepali examples is the cheapest way to fix that: with QLoRA, one rented 24 GB GPU is enough for a 7B–14B model.

1. Pick a base model by testing it

Write 20 to 30 prompts that look like your real use, in Nepali, and try two or three instruction-tuned models on them before you train anything. Judge with native speakers: fluency, correct facts, and whether the model answers in Nepali when asked in Nepali. A model that starts better needs less training.

To try models before you fine-tune, rent a GPU with the Ollama + Open WebUI software and chat with them in your browser.

2. Get Nepali training data

Keep everything in Unicode Devanagari, remove duplicates, and check the licence of anything you did not write yourself.

3. Mind the tokens

Most tokenizers split Devanagari into many more tokens per word than English, so the same sentence uses more memory and time. Count your data with the model's own tokenizer and set the maximum sequence length from that, not from English rules of thumb.

4. Train with QLoRA

QLoRA loads the base model in 4-bit and trains small LoRA adapters on top, which is why a 7B–14B model fits on a 24 GB card:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import LoraConfig

base = "Qwen/Qwen2.5-7B-Instruct"
bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.bfloat16)
model = AutoModelForCausalLM.from_pretrained(base, quantization_config=bnb, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(base)
lora = LoraConfig(r=16, lora_alpha=32, lora_dropout=0.05, target_modules="all-linear", task_type="CAUSAL_LM")

Then train with TRL's SFTTrainer on your examples, formatted with the model's own chat template. Two or three epochs at a learning rate around 2e-4 is a common starting point for LoRA; hold back 5–10% of the examples to watch for overfitting.

Which GPU to rent

A 24 GB card such as the RTX 3090 or RTX 4090 handles QLoRA on 7B–14B models; 48 GB (RTX A6000, L40S) handles 30B-class models; 80 GB cards (A100, H100) are fastest and fit 70B-class QLoRA. Fine-tuning a 7B model with LoRA on about 10,000 examples for three epochs costs, on today's cheapest hosts:

GPUTypical timeUSDINRNPR
RTX 30905 hUSD 1.30INR 125NPR 195
A100 SXM42 hUSD 1.30INR 126NPR 198
RTX 40903 hUSD 1.77INR 171NPR 270
RTX A50005.5 hUSD 2.04INR 198NPR 314
RTX A60003.5 hUSD 2.28INR 221NPR 350

5. Evaluate and ship

Run your test prompts through the base model and the fine-tuned one, and have native speakers compare the answers without knowing which is which. Then serve the model: the vLLM software on PowerPod gives you an OpenAI-compatible API, and Ollama + Open WebUI a chat page in the browser.

Create accountSee all GPU prices

Questions

Which open model is best at Nepali?

It changes with every release, so test current models on your own prompts. Larger models are usually better at Nepali, and fine-tuning narrows the gap for your specific task.

Can I fine-tune on Google Colab instead?

Small experiments, yes. Longer runs on 7B models and up are easier on a dedicated GPU that does not disconnect, where training keeps running and your files stay on the disk.

How long does fine-tuning take?

About two to five hours on a 24 GB card for 10,000 examples and three epochs of LoRA on a 7B model, and about an hour on an H100.

Do I have to pay in dollars?

No. Accounts in Nepal pay in Nepali rupees and accounts in India in Indian rupees, by card.

More guides

Build Nepali speech-to-text with WhisperMake a Nepali text-to-speech voiceWhich GPU do I need for AI?A Colab alternative with the GPU you chooseThe cheapest cloud GPUs right nowGPUs for students: the free options and the cheap ones