Upload configuration_decicoder.py with huggingface_hub
Browse files
configuration_decicoder.py
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from transformers.models.llama.configuration_llama import LlamaConfig
|
2 |
from transformers.utils import logging
|
3 |
|
|
|
1 |
+
from packaging import version
|
2 |
+
import transformers
|
3 |
+
if version.parse(transformers.__version__) < version.parse("4.31.0"):
|
4 |
+
raise ImportError(
|
5 |
+
f"You are using transformers=={transformers.__version__}, but transformers>=4.31.0 is required to use DeciCoder. Please upgrade transformers."
|
6 |
+
)
|
7 |
from transformers.models.llama.configuration_llama import LlamaConfig
|
8 |
from transformers.utils import logging
|
9 |
|