vllm.model_executor.model_loader.base_loader ¶
Classes:
-
BaseModelLoader–Base class for model loaders.
Functions:
-
log_model_inspection–Log model structure if VLLM_LOG_MODEL_INSPECTION=1.
BaseModelLoader ¶
Bases: ABC
Base class for model loaders.
Methods:
-
download_model–Download a model so that it can be immediately loaded.
-
load_model–Load a model with the given configurations.
-
load_weights–Load weights into a model. This standalone API allows
Source code in vllm/model_executor/model_loader/base_loader.py
download_model(model_config) abstractmethod ¶
load_model(vllm_config, model_config, prefix='') ¶
Load a model with the given configurations.
Source code in vllm/model_executor/model_loader/base_loader.py
load_weights(model, model_config) abstractmethod ¶
Load weights into a model. This standalone API allows inplace weights loading for an already-initialized model
Source code in vllm/model_executor/model_loader/base_loader.py
log_model_inspection(model) ¶
Log model structure if VLLM_LOG_MODEL_INSPECTION=1.