DeciLM-7B-instruct / version_check.py
itay-levy's picture
Upload folder using huggingface_hub
60965be
raw
history blame
371 Bytes
import transformers
from packaging import version
VERSION = "4.35.2"
def check_transformers_version():
if version.parse(transformers.__version__) < version.parse(VERSION):
raise ImportError(
f"You are using transformers=={transformers.__version__}, but transformers>={VERSION} is required to use DeciLM. Please upgrade transformers."
)