Skip to main content
A training job reads its inputs through the Baseten Delivery Network (BDN) or downloads them in your code. It writes data to the training cache, checkpoints, or scratch space. Choose by whether the data is read-only and whether it must outlive the job.

Storage types overview

Training Jobs moves data in and out of a job through BDN, the training cache, checkpoints, and ephemeral storage: The training cache is scoped to a single GPU cluster, so a job that runs on another cluster starts with an empty cache. For data you want available everywhere, load it through BDN, which mirrors across clusters. See Cache scope for how cluster affinity works.

Ephemeral storage

Write temporary files to the $BT_SCRATCH_DIR directory. This path is backed by local NVMe storage on the node and is cleared when your job completes. Use it for:
  • Temporary files during training.
  • Intermediate outputs that don’t need to persist.
  • Scratch space for data processing.
Do not write temporary files to arbitrary paths like /tmp or /root. Always use $BT_SCRATCH_DIR so Baseten can manage storage across hardware configurations.

Choose BDN or the training cache

Use BDN for read-only inputs that are known at job start, like model weights and frozen datasets. Baseten delivers them before training begins, so you never pay for IO or compute time while they load. Use the training cache when you need read-write storage that persists across jobs, or when one job produces data that a later job consumes. Common examples: pip package installs, compiled artifacts, and preprocessed datasets you build once and reuse.

Data size and limits

The default training cache is 1 TB. To increase the cache size for larger datasets, Contact us. After the increase, seed the cache with a CPU job so training jobs don’t download the dataset on every run.

Data security

Data transfer happens within Baseten’s VPC using secure connections. Baseten doesn’t share customer data across tenants. When you enable training cache, data persists between jobs until you delete the project. Ephemeral storage is cleared when your job completes. For self-hosted deployments, training can use storage buckets in your own AWS or GCP account. To learn more and access official policies and certifications, visit the Baseten Trust Center.

Storage performance

Read and write speeds vary by cluster and storage configuration: For a workload that needs higher throughput than these speeds, Contact us to plan its storage configuration.

Next steps