Skip to content

Compile Cache

Overview

Both model implementations reuse compiled models from VLLM_CACHE_ROOT (default: ~/.cache/vllm). Changing any of the settings listed under Included below triggers recompilation.

vllm model implementation

Cache behavior

The cache is saved only after warm-up completes successfully. If you interrupt warm-up, the cache won’t be saved.

Set VLLM_DISABLE_COMPILE_CACHE=1 to disable cache reuse and recompile on each run.

Cache format

Compiled graphs are stored in a mega cache bundle (.bin).

Cache location

$VLLM_CACHE_ROOT/rbln

Cache key

Included:

Excluded:

transformers (optimum) model implementation

Cache behavior

  • Precompiled model directory: The engine loads the model directly, without compilation.
  • HuggingFace model ID: The engine loads a cached model if available; otherwise, it compiles and caches the model at startup.

Cache format

Compiled models are stored as .rbln files.

Cache location

$VLLM_CACHE_ROOT/compiled_models/<name>

Cache key

When using a HuggingFace model ID:

Included:

Excluded:

  • device, create_runtimes, and kvcache_num_blocks in optimum_overrides. These options control runtime behavior and do not affect model compilation.