Guide
Fine-tune a language model with LoRA on one GPU
Last updated: 1 December 2026
Fine-tuning does not have to mean retraining a whole model. LoRA trains a small set of extra weights, which fits on a single GPU.
Instant VPS from $7.99 a month
- Sign up with an email address, a password and any nickname: no ID, no phone number.
- Pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX, or by card through MoonPay. Monero is the most private way to pay; USDT or USDC on Solana confirm in seconds, and we add no transfer fee on them.
- Orders are processed automatically and delivered in about 10 minutes.
- New VPS orders have a 24-hour guarantee (see the terms for what is covered).
See Instant VPS plansHow ordering worksLoRA and QLoRA in one paragraph
LoRA freezes the original model and trains small adapter matrices on top. QLoRA also loads the frozen model in 4-bit precision, which cuts memory a lot, so a model that would not fit for full training can fit for adapter training.
Set up the environment
Run training inside tmux so it survives a dropped SSH connection, and install the usual libraries:
sudo apt install -y tmux python3-venv
tmux new -s train
python3 -m venv venv && . venv/bin/activate
pip install torch transformers datasets peft trl bitsandbytes accelerate
Plan your memory
- The base model weights set the floor: see the guide on GPU memory
- Sequence length and batch size grow memory quickly
- Gradient accumulation lets you keep the batch small and the results stable
Good habits
- Save checkpoints regularly and copy the adapter off the server
- Keep a held-out set of examples to test quality
- Your training data stays on your own server, so remove it when you are done
Need a GPU server?
See our GPU servers: NVIDIA T4 to H200, built to order, no ID documents, pay with Monero or Bitcoin. Use them within our acceptable use policy.
Questions and answers
Can I fine-tune on a T4?
Small models with QLoRA, yes; mind the 16 GB limit.
How long does it take?
It depends on the data size and the GPU; test with a small subset first.
Do I get a full new model?
LoRA gives you a small adapter that you load on top of the base model.
Which libraries do people use?
Hugging Face transformers, PEFT, TRL and bitsandbytes are common.
Ready to try it? Instant VPS from $7.99 a month
- Pick a plan: Instant 1-2, $7.99 a month or all Instant VPS plans.
- Sign up with an email address, a password and any nickname: no ID, no phone number.
- Pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX, or by card through MoonPay. Monero is the most private way to pay; USDT or USDC on Solana confirm in seconds, and we add no transfer fee on them.
- Orders are processed automatically and delivered in about 10 minutes.
- New VPS orders have a 24-hour guarantee (see the terms for what is covered).
- Before you pay you can ping our test IPs and read the live status page.
- Support is available 24/7 via email and our client ticket portal.
See Instant VPS plansHow ordering works