vllm.model_executor.model_loader.reload.lifecycle
¶
Begin and complete a checkpoint-format weight update in the reload mode
VLLM_RELOAD_MODE selects (fixed for the process).
Functions:
-
finish_reload–Complete the weight update
start_reloadbegan. -
start_reload–Begin a weight update in the configured mode.
-
weight_update_active–Whether a weight update is running, when one
load_weightscall may hold
finish_reload(model, model_config, device)
¶
Complete the weight update start_reload began.
Source code in vllm/model_executor/model_loader/reload/lifecycle.py
start_reload(model)
¶
Begin a weight update in the configured mode.
Source code in vllm/model_executor/model_loader/reload/lifecycle.py
weight_update_active()
¶
Whether a weight update is running, when one load_weights call may hold
only part of the checkpoint. Process-wide, so a module nested in the model
passed to start_reload sees it too.