Deci
/

itay-levy commited on
Commit
09a33da
1 Parent(s): 9105853

Upload configuration_decicoder.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. configuration_decicoder.py +6 -0
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