Deci
/

itay-levy commited on
Commit
1061817
1 Parent(s): 02ac42d

Upload configuration_decicoder.py with huggingface_hub (#5)

Browse files

- Upload configuration_decicoder.py with huggingface_hub (09a33da296991f018b0ec3c0701f80b15fd9dbad)

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