vllm.plugins.lora_resolvers.hf_hub_resolver
¶
Classes:
Functions:
-
register_hf_hub_resolver–Register the Hf hub LoRA Resolver with vLLM.
HfHubResolver
¶
Bases: FilesystemResolver
Methods:
-
resolve_lora–Resolves potential LoRA requests in a remote repo on HF Hub.
_get_adapter_dirs(repo_name)
async
¶
_resolve_repo(lora_name)
async
¶
_resolve_repo_subpath(lora_name, maybe_repo)
async
¶
resolve_lora(base_model_name, lora_name)
async
¶
Resolves potential LoRA requests in a remote repo on HF Hub. This is effectively the same behavior as the filesystem resolver, but with a snapshot_download on dirs containing an adapter config prior to inspecting the cached dir to build a potential LoRA request.
register_hf_hub_resolver()
¶
Register the Hf hub LoRA Resolver with vLLM.