7 min read · Business email and cloud

Teams that are new to training image-inspection models often rent a GPU machine and lose the first half day installing libraries and uploading images. When training ends, they forget to download the model weights before the machine is deleted. All of this can be prevented by preparing ahead.
Organize the data, labels and dataset usage rights
Tidy data before upload saves more rental time than choosing a faster machine.
- Before you start, split the folders into a training set (train), a validation set (validation) and a test set (test), and never let the same image appear in more than one set
- Check the labels: class names must be spelled identically everywhere, and each label file must match its image
- Write a file that describes the dataset, such as where it came from, when it was taken and what its limits are. Hugging Face calls this a dataset card, a practice you can adopt on your own
- Check usage rights: images from a customer's factory, images showing employees' faces, or purchased data may carry conditions that forbid uploading to the cloud or using them for training
Check the environment, library versions and how to run the job
An environment (the operating system, drivers and libraries a job needs) that differs even slightly can make code that runs on your own machine fail on the rented one.
- Record the versions of Python, the framework (for example PyTorch) and all libraries in a requirements file or an environment file
- If you use a container (a package that bundles a program with its libraries so it runs the same on every machine), build the image beforehand
- Write the run command as a single script, so you can rerun it without having to remember it
- Do a trial run with a small dataset on an ordinary machine first, so code errors show up before the rental clock starts
- Check with the provider that the driver and CUDA versions on the machine are compatible with your framework
Calculate space for checkpoints, logs and experiment results
A checkpoint is a file that saves the training state periodically, so you can resume training if the job stops partway. The PyTorch documentation has an example of saving and loading a checkpoint, which stores both the model weights and the other state needed to continue training.
So the space you need is always larger than the dataset itself. Count the following.
- The whole dataset, including copies that were resized or converted to another format
- Checkpoints: the number of rounds you keep, times the file size per round
- Logs and training curves for every experiment
- Sample outputs, such as images the model predicted wrongly, kept for further analysis
- Spare space for temporary files
Hypothetical example: a scratch-detection job on parts has 8,000 images at an average of 0.5 MB each, so 8,000 x 0.5 = 4,000 MB, or 4 GB. A second copy resized to another size takes another 2 GB. The model has checkpoints of 0.2 GB per file, kept for 10 rounds per experiment, with 5 experiments, giving 0.2 x 10 x 5 = 10 GB. The total with the dataset is 4 + 2 + 10 = 16 GB, before counting logs, sample outputs and spare space. The numbers are hypothetical to show how to count, not a real project.
Plan backup, export and cleanup at the end
Many rental services delete the machine's disk when you return the machine. Before real work begins, check the terms of the provider you use to see whether data persists or is lost when the machine is stopped or deleted.
- Save checkpoints to permanent storage, or pull them back to your own location periodically, rather than waiting until the job ends
- Export the model in a format you can keep using for your planned deployment, and try loading it once on the target machine
- Keep the code, the run command, the settings and the version of the data used for training, so the results can be reproduced
- Before returning the machine, delete sensitive data on it, and check that temporary storage is deleted or handled under the provider's terms
- Check who has access to the cloud storage, and remove access that is not needed
What to discuss with the provider
This article does not name GPU models, machine types or any provider's limits, because they change quickly and differ by provider. Ask for them in writing instead.
- Is the GPU memory enough for the model and the dataset size we will train on?
- How many kinds of storage are there, and which kind persists after the machine stops?
- How is data transferred out of the machine charged, if at all?
- When can the machine be stopped or reclaimed without prior notice?
- Which country is our data stored in, and what are the terms of data use?
Checklist before renting a machine
- Split the data into train, validation and test sets, and check the label names
- Confirm the usage rights for the data and the terms for uploading it to the cloud
- Pin the library versions and prepare a container or an environment file
- Complete a trial run on a small dataset on an ordinary machine
- Calculate the total space, with spare capacity
- Set checkpoint backup points and the route for sending the model out
- Write down the steps for cleaning data and closing access when the job ends
When it fits, and limits
- Fits: teams that train models themselves from time to time and cannot justify buying a permanent GPU machine
- Fits: work that needs less setup time and no loss of training results when the rental ends
- Limit: not suitable for data that must not leave the organization, until the terms are checked clearly
- Limit: BT San must check the platform and its terms as actually offered at the time, and does not claim to support every framework
Talk to BT San
If you want help assessing the environment before training, prepare the type of model, the size and a sample of the data, the framework you use, and where the model will be used, then contact BT San to talk it over.




