WhoBuilt

Lessons from Generating 12 Trillion Synthetic Tokens

Oct 2, 2026· 21 min· 6.1K views·Watch on YouTube

Speaker

Bogdan Gaza, co-founder and CEO of DatologyAI, shares engineering lessons from generating 12 trillion synthetic tokens for web, math, and code datasets at the AI Engineer event.

Why and how DatologyAI uses synthetic data

Gaza says the limited supply of internet data creates a bottleneck as pretraining runs grow, so synthetic data can supplement high-quality source material. DatologyAI’s Beyond Web recipe rephrases or restructures selected documents. In the results he presents, its data matched some baselines with fewer tokens, including similar performance with 2.7 times fewer tokens than Neotron Synth and 5.3 times fewer than Cosmopedia.

Bring research and production onto shared infrastructure

DatologyAI initially ran synthetic data research on Slurm, separate from its Kubernetes-based product pipeline. The split made work slower and more error-prone, left GPUs underused, and required manual data backfills. The team moved to Kubernetes across control, Spark, and H100 compute clusters, with an internal scheduler coordinating jobs so curation, generation, training, and evaluation could run in one workflow.

Batch metadata requests and recover from failures

At trillion-token scale, millions of dataset partitions can strain S3 and Ray metadata handling, leaving GPUs idle. Gaza estimates that fetching metadata one request at a time would take 9 to 11 days; batching S3 requests reduced that step to about two hours. He also recommends right-sized partitions and checkpointing to S3 so failed GPU jobs can retry with little lost work.

Schedule resources across clusters

Synthetic data jobs may run across GPU clusters in different locations, while their Ray heads also need CPU capacity. Gaza describes scheduling as a bin-packing problem: available GPU capacity is not enough if the CPU pool cannot also support the job. DatologyAI separates resource pools and schedules CPU and GPU needs together, including across providers and clouds.

Benchmark inference and scale output

For batch VLM inference, Gaza recommends systematically tuning parameters such as batch size and speculative decoding. He reports about 40% more throughput from adjusting VLM and SGLang flags. DatologyAI grew from runs producing around 30 billion synthetic tokens at the end of 2024 to generating about 7 trillion for web and 5 trillion for math and code by the end of the following year.

Takeaways

  • Batch object-store metadata requests early; millions of small calls can delay a run by days.
  • Use checkpoints and manageable partitions so GPU failures cause recoverable retries instead of lost hours.
  • Schedule CPU and GPU capacity together when jobs span clusters.
  • Benchmark batch inference settings systematically; tuning can improve throughput substantially.
  • Keep synthetic data generation, training, and evaluation on a shared workflow to speed experiments and reduce manual handoffs.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks