Skip to main content
BSS/OSS Academy

Evolution · 2.2

How AI models are trained

From data to a trained model on one page, then the five tools a training run uses, one at a time.

AI model training: top-down view

From data to a trained model, and the tools and infrastructure that make it work.

Training workflow

  1. 1Prepare dataCollect, clean and prepare the examples (e.g. documents, network logs, incident tickets).
  2. 2Train the modelRun a training script, written in Python with PyTorch.
  3. 3Use GPUsPyTorch uses NVIDIA CUDA to run the calculations on many GPUs in parallel.
  4. 4Learn & improvePredict, measure the error, adjust the weights, and repeat many times.
  5. 5Trained modelReady to use for inference, e.g. by an AI agent or an application.

Tool stack(software)

Infrastructure(hardware)

  • GPU servers

    (e.g. Dell PowerEdge, HPE)

  • NVIDIA GPUs

    (e.g. H100 / B200)

  • High-speed networking

    (InfiniBand / Ethernet)

  • High-performance storage

    (for large training datasets)

Key takeaway

Training uses data, specialised software (e.g. PyTorch + CUDA) and powerful GPU infrastructure to teach an AI model, improve it over time and create a trained model for real use.

The training workflow in five steps (prepare data, train the model, use GPUs, learn and improve, trained model), the five software tools (PyTorch, CUDA, Python, Slurm, MLflow) and the hardware they run on (GPU servers, NVIDIA GPUs, high-speed networking, high-performance storage).

How the tools are used

One training run, five tools

Five tools, five jobs. Python describes the training, Slurm finds it GPUs, PyTorch does the learning, CUDA runs it on the GPUs, and MLflow keeps the record.

Step 1 of 5

Python

Programming language

Before anything runs

An engineer writes the training script in Python: which model, which data, and settings such as how many passes over the data to make.

Example

A 200-line script that loads two years of resolved incident tickets and a pretrained model to fine-tune.

What it does not do

Python does not do the heavy maths. It tells libraries (PyTorch, CUDA) what to do, and they do it.

Step 1 of 5: Python