---
title: "Training"
url: https://www.daytona.com/definitions/t/training
---

# Training

Training is the process of adjusting a model's parameters with data or feedback until it performs a task well.

Training is how a machine learning model learns. A model starts with parameters that produce poor results, and training adjusts them step by step to improve the results. In each step, the model processes data, its output is measured, and its parameters are nudged in the direction that reduces the error. After training, the model is used for inference, which runs it without changing it.

Large language models are trained in stages. Pretraining teaches general knowledge from large amounts of text. Fine-tuning then teaches specific skills from examples, and reinforcement learning improves whole tasks from rewards. Each stage needs many accelerators connected by fast interconnects, often for days or weeks.

Training an agent with reinforcement learning also needs an environment to act in. While the accelerators update the policy, a fleet of sandboxes runs its episodes, executing the code and tools the policy calls. The sandboxes run on CPUs, apart from the accelerators, and their count rises and falls with each batch of episodes. How quickly they start, run and reset often limits how fast training can go.

## Related terms

- [Agent trace](https://www.daytona.com/definitions/a/agent-trace.md)
- [AI accelerator](https://www.daytona.com/definitions/a/ai-accelerator.md)
- [Cluster](https://www.daytona.com/definitions/c/cluster.md)
- [Distributed training](https://www.daytona.com/definitions/d/distributed-training.md)
- [Edge computing](https://www.daytona.com/definitions/e/edge-computing.md)
- [Episode and trajectory](https://www.daytona.com/definitions/e/episode-and-trajectory.md)
