Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

A checklist for your first fine-tuning run

Steps to prepare, run and finish a fine-tuning job on a rented GPU server without wasting time or money.

Published November 20, 20264 min read

Fine-tuning means training an existing model a little more, on your own data, so that it does a task better. When you rent a GPU server, every minute counts, so good preparation saves money. Use this checklist before, during and after your run.

Before you deploy

1. Define the goal

Write one sentence that says what the model should do after training that it cannot do now. Decide how you will check this, for example with a set of 50 to 200 test examples that are not used in training. Without a test set, you cannot know if training helped.

2. Prepare the data on your own computer

Cleaning data does not need a GPU. Do it before you pay for one.

  • Remove duplicates and empty rows.
  • Check the format that your training software expects.
  • Split the data into a training part and a test part before you start.
  • Check that you have the right to use the data. Remove personal data you do not need.

3. Choose the method

Full fine-tuning updates every weight and needs a lot of memory. Methods that train a small set of extra weights, such as low-rank adapters, need much less memory and often work well enough. For a first run, a lighter method is usually the best choice. Try it on a smaller model first.

4. Estimate the memory

For full fine-tuning, memory holds the weights, the gradients and the optimizer state, plus working memory. This can be several times the size of the model file. For adapter methods, it is closer to the size of the model plus a small overhead. Leave a margin. If you are not sure, run a very short test and read the memory use with nvidia-smi.

5. Plan the disk

You need space for the base model, your data, the checkpoints and the final result. Checkpoints can be large. Choose a disk of at least two to three times the model size, and decide how many checkpoints you will keep.

Setting up the server

6. Deploy with a training template

Go to Console → Deploy, choose a GPU with enough VRAM, and choose a training or base template. Add your SSH key. Check the hourly price on the review step before you request the server.

7. Check the GPU

After you connect, run:

nvidia-smi
python -c "import torch; print(torch.cuda.is_available())"

Both should show your GPU. If not, see the troubleshooting page.

8. Copy your data and set up a session

scp -P PORT -r ./data root@HOST:/workspace/

Run training inside a terminal multiplexer, so that a lost connection does not stop the job:

tmux new -s train

Detach with Ctrl-b then d. Reconnect with tmux attach -t train.

During the run

9. Start with a tiny run

Train for a few steps on a small part of the data. Check three things: the job starts, the loss number goes down, and memory is not full. Fixing a mistake after 5 minutes is much cheaper than after 5 hours.

10. Save checkpoints often

Set the training software to save a checkpoint at regular steps. A server can be paused, for example if your balance runs out, and a checkpoint lets you continue. Copy important checkpoints off the server:

rsync -avz -e "ssh -p PORT" root@HOST:/workspace/checkpoints/ ./checkpoints/

11. Watch the numbers

Look at the training loss and the loss on the test part. If the training loss keeps falling and the test loss starts to rise, the model is memorizing your data. Stop early and use an earlier checkpoint.

12. Watch your balance

Check the billing page for the spend rate and the estimated time left. Turn on auto top-up, or add enough funds before a long run, so the job does not stop in the middle.

After the run

13. Test on held-out examples

Run the model on the test set you prepared in step 1. Compare it with the base model on the same examples. Read some outputs yourself. Numbers alone can hide problems.

14. Save the result

Copy the final weights, the configuration and the training settings to storage you control. Write down the data version, the software versions and the settings, so that you can repeat the run.

15. Stop or destroy the server

Stop the server to end compute charges. A stopped server still costs storage. When your files are safe off the server, destroy it to end all charges. Destroyed data cannot be recovered, so check your copy first.

A short summary

Prepare data locally, choose a lighter method first, test with a tiny run, save checkpoints, keep your own backups, and shut the server down when you finish. These habits reduce failed runs and keep your cost predictable.

Try it on a real GPU server

Create a free account and add a balance from $10. Servers are billed by the second, and the review step shows the price per hour before you request one.

Related guides