vllm.model_executor.utils
Utils for model executor.
_make_synced_weight_loader
¶
Source code in vllm/model_executor/utils.py
get_packed_modules_mapping
¶
Source code in vllm/model_executor/utils.py
set_weight_attrs
¶
Set attributes on a weight tensor.
This method is used to set attributes on a weight tensor. This method will not overwrite existing attributes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
weight
|
Tensor
|
The weight tensor. |
required |
weight_attrs
|
Optional[dict[str, Any]]
|
A dictionary of attributes to set on the weight tensor. |
required |