cerebrium.toml file, without requiring infrastructure management.
Specifying GPUs
Configure GPUs in the[cerebrium.hardware] section of cerebrium.toml, specifying the type (compute parameter) and quantity (gpu_count). Additional deployment and scaling considerations are covered in the sections below.
Available GPUs
The platform offers GPUs ranging from cost-effective development options to high-end enterprise hardware.The identifier is used in the
cerebrium.toml file. It consists of the GPU
model generation and model name to avoid ambiguity.Choosing a GPU for Your Model
Pick a GPU based on the total VRAM your workload needs at runtime, not just the on-disk size of the model files. Total VRAM has to fit the model weights plus activations, the KV cache (for LLMs), and any intermediate buffers your framework allocates. As a rule of thumb, size VRAM to roughly 1.2×–2× the loaded weight size, depending on batch size, context length, and precision. For example:
If a model does not fit on a single GPU, set
gpu_count to shard weights across multiple GPUs of the same type. Multi-GPU inference requires framework support (for example, vLLM tensor parallelism or device_map="auto" in Transformers).
Match RAM to VRAM as a starting point so your framework can stage weights from CPU to GPU without swapping. See CPU and memory for details.
Multi-GPU Configuration
Multiple GPUs are configured in thecerebrium.toml file: