Update modeling_deepseek.py
#23
by
erichartford
- opened
- 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,
|