Skip to content

vllm.transformers_utils.dynamic_module

Functions:

get_transformers_model_class(architecture, model_config)

The Transformers class for architecture, from Transformers itself or from the model's remote code. As with AutoModel, trusted remote code takes precedence.

try_get_class_from_dynamic_module(class_reference, pretrained_model_name_or_path, trust_remote_code, cache_dir=None, force_download=False, resume_download=None, proxies=None, token=None, revision=None, local_files_only=False, repo_type=None, code_revision=None, warn_on_fail=True, **kwargs)

As transformers.dynamic_module_utils.get_class_from_dynamic_module, but ignoring any errors.