Skip to main content
Train a domain-specific LLM on your own dataset using LoRA (Low-Rank Adaptation). A single A100 can fine-tune a 7B–70B model in hours. QLoRA pushes 7B fine-tuning down to an RTX 4090 (24GB VRAM).

What you’ll build

A fine-tuned model adapter that specializes an open-source LLM for your use case — customer support, medical QA, code generation, legal analysis, or anything else. The adapter merges back into the base model and can be served with vLLM.

GPU sizing

LoRA rank selection


Step-by-step (CLI)

1. Prepare your dataset

Create a JSONL file with your training data:

2. Deploy a GPU and upload your data

3. Install dependencies

4. Training script (finetune.py)

5. Run training

6. Monitor training

7. Download the adapter and clean up

8. Merge and serve

After downloading, merge the adapter into the base model locally or on another instance:
Then serve with vLLM (see Deploy a vLLM Inference Server):

Using the Python SDK


Using MCP (via Claude Code / Cursor)

“Spin up an A100 called ‘finetune’. Install torch, transformers, peft, trl, accelerate, and bitsandbytes. Then show me a training script for QLoRA fine-tuning Llama 3.1 8B.”
The agent deploys the instance, installs packages via ssh_execute, and generates the training script for you.