import json


def is_new_version_model_file(model_file_path: str) -> bool:
    """Check whether the model file belongs to the new version of HuggingFace Tokenizers,
    i.e., >= 0.8

    Parameters
    ----------
    model_file_path
        Path to the model file

    Returns
    -------
    is_new_version
        Whether the model file is generated by the new version of huggingface tokenizer.
    """
    with open(model_file_path, 'r', encoding='utf-8') as f:
        try:
            _ = json.load(f)
            return True
        except Exception:
            return False