erichartford commited on
Commit
f1b46a6
1 Parent(s): 4c1f24c

Update modeling_deepseek.py

Browse files

is_torch_greater_or_equal_than_1_13 is deprecated

Files changed (1) hide show
  1. modeling_deepseek.py +3 -2
modeling_deepseek.py CHANGED
@@ -42,9 +42,10 @@ from transformers.modeling_outputs import (
42
  )
43
  from transformers.modeling_utils import PreTrainedModel
44
  from transformers.pytorch_utils import (
45
- ALL_LAYERNORM_LAYERS,
46
- is_torch_greater_or_equal_than_1_13,
47
  )
 
 
48
  from transformers.utils import (
49
  add_start_docstrings,
50
  add_start_docstrings_to_model_forward,
 
42
  )
43
  from transformers.modeling_utils import PreTrainedModel
44
  from transformers.pytorch_utils import (
45
+ ALL_LAYERNORM_LAYERS
 
46
  )
47
+ def is_torch_greater_or_equal_than_1_13():
48
+ return True
49
  from transformers.utils import (
50
  add_start_docstrings,
51
  add_start_docstrings_to_model_forward,