2025-10-23 14:24:03 +08:00
|
|
|
from vllm.model_executor.models.utils import maybe_prefix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def add_prefix_to_loaded_weights(weights: set[str], prefix: str) -> set[str]:
|
|
|
|
|
"""
|
|
|
|
|
Add a prefix to the names of the loaded weights.
|
|
|
|
|
"""
|
2025-10-24 16:49:19 +08:00
|
|
|
return {maybe_prefix(prefix, name) for name in weights}
|