Step 3

Training

Train a language model on your dataset. Kanha handles the GPU infrastructure — you just pick a size and click train.

Model sizes

Choose a model size based on your needs and your users' devices. Larger models produce better responses but require more device RAM for on-device execution.

Small

Fast and lightweight. Great for simple Q&A and FAQ bots.

Requires: 4 GB+ RAM

Medium

Balanced quality and speed. Handles nuanced conversations well.

Requires: 8 GB+ RAM

Large

Best quality. Deep understanding of complex content.

Requires: 12 GB+ RAM

Auto-selection: When using the SDK, Kanha automatically selects the best model based on the user's available device RAM. You can train multiple sizes to cover all device tiers.

Start a training job

  1. 1Go to your bot in Dashboard → Bots. Your bot needs to be linked to a site that has a completed dataset (see previous step).
  2. 2Select the dataset and the model sizes you want to train. You can select multiple sizes at once — each creates a separate training job. All sizes are available on every plan.
  3. 3Click Start Training. All jobs are queued and processed sequentially on GPU infrastructure. Your bot status changes to Training immediately.

What happens during training

Behind the scenes, Kanha runs a training pipeline on your dataset:

  • 1.Download — Your JSONL dataset is fetched to the GPU worker.
  • 2.Fine-tune — Your model is trained on your data.
  • 3.Optimize — The model is optimized for on-device execution.
  • 4.Upload — Model artifacts are uploaded to CDN for fast delivery.

Training typically takes 10–30 minutes depending on dataset size and model size. You'll see the status update in real-time on the bot page.

When training completes

If you trained multiple sizes, your bot becomes Active as soon as at least one training job succeeds. Each completed job produces a separate trained model — the SDK auto-selects the right one based on the user's device RAM.

You can test your bot immediately in the Playground within the dashboard — it runs the model right in your browser using WebGPU.

To retrain with updated content, generate a new dataset from your site's latest pages and start a new training job. Previous models remain available until replaced. Each training job counts against your monthly train quota (Starter: 3/mo, Pro: 8/mo, Business: 20/mo). On paid plans, extra trains are billed at $15 each.

Your bot is trained and ready. Now embed it on your site using the SDK.

Next: SDK Integration