WhoBuilt

Infra behind Krea 2: How to train and serve at scale

Aug 18, 2026· 17 min· 1.4K views·Watch on YouTube

Speaker

Gabriel Jorge Menezes of Krea.ai explains how the team trained Krea 2 from scratch and built infrastructure to serve it at scale.

Krea 2 and its training approach

Krea 2 was pretrained from scratch, without a base checkpoint, to help creatives explore a wide range of image styles and compositions. The team ported ideas from LLM research to diffusion transformers and tested hypotheses with small GPU experiments before scaling up. The model has a raw checkpoint for further training and a Turbo version that can generate images in under a second.

Finding failures through metrics

As training scaled to hundreds of GPUs, runs crashed more often, sometimes with NCCL timeouts despite healthy-looking metrics. Menezes recommends monitoring GPU temperature and removing GPUs above 78°C, which can throttle training. He also points to tensor core utilization as a better efficiency signal than GPU utilization, and highlights InfiniBand and NVLink metrics for diagnosing communication failures.

Checkpoints and job scheduling

Frequent checkpoints helped the team recover from crashes. Its worker cluster could read 1.8 terabytes per second and write nearly a terabyte per second, allowing it to save about a terabyte every 20 to 30 minutes in under 30 seconds. The team used Queue for gang scheduling and priorities, so training jobs could take precedence over inference when GPUs were needed.

Sharing GPUs between training and production

Krea runs training and production in one cluster, shifting inference elsewhere when a training job needs the GPUs. A system built on Virtual Kubelet sends pods to external providers when the cluster is full, while Kubernetes recreates pods marked as failed. Prometheus metrics, taints, and a descheduler help reclaim available GPUs and move production pods back gradually, avoiding the disruption of a NoExecute taint.

Keeping inference flexible

Menezes says diffusion transformer inference does not require multi-node serving, so a wide range of GPUs can handle it, including machines that are unsuitable for training. This lets the team use less capable GPUs for inference while reserving stronger capacity for training.

Takeaways

  • Track tensor core utilization alongside GPU utilization to understand whether GPUs are doing useful work.
  • Collect InfiniBand and NVLink error and throughput metrics to investigate cross-node and within-node failures.
  • Checkpoint frequently when large training runs fail often, and make sure the storage system can keep up.
  • Use scheduling priorities and workload migration to let training borrow GPUs without stopping production.
  • Consider using less capable GPUs for diffusion transformer inference if the model can run on a single node.

Mentioned in this talk

Search inside this talk

What was claimed 15

Show all 15 facts

Related talks