def METHOD_NAME(
    pretrained_model_name_or_path: Optional[Union[str, PathLike]], **pretrained_kwargs
) -> PreTrainedTokenizer:
    """Download a HuggingFace tokenizer.
    Args:
        pretrained_model_name_or_path: Name of the tokenizer to download.
        pretrained_kwargs: Additional arguments to pass to the tokenizer constructor.
    Returns:
        The pretrained tokenizer object.
    """
    # HACK: Llama fast tokenizer takes about 2-4 minutes to load, so we disable it for now.
    config = AutoConfig.from_pretrained(pretrained_model_name_or_path)
    if isinstance(config, LlamaConfig):
        pretrained_kwargs["use_fast"] = False
    return AutoTokenizer.from_pretrained(pretrained_model_name_or_path, **pretrained_kwargs)