def METHOD_NAME(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], *model_args, **kwargs):
    assert len(model_args) == 0 and len(kwargs) == 0, "extra args is currently not supported"
    if isinstance(pretrained_model_name_or_path, str):
        pretrained_model_name_or_path = Path(pretrained_model_name_or_path)
    pretrained_model_name_or_path = Path(f'{shared.args.model_dir}') / Path(pretrained_model_name_or_path)
    config = ExLlamaV2Config()
    config.model_dir = pretrained_model_name_or_path
    config.prepare()
    config.max_seq_len = shared.args.max_seq_len
    return Exllamav2HF(config)