dragon-deci-7b-v0 / version_check.py
doberst's picture
Upload 11 files
4f057be
raw
history blame contribute delete
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."
)