Upload modeling_deepseek.py with huggingface_hub
Browse files- modeling_deepseek.py +5 -1
modeling_deepseek.py
CHANGED
|
@@ -61,7 +61,11 @@ try:
|
|
| 61 |
except ImportError:
|
| 62 |
def is_flash_attn_greater_or_equal_2_10():
|
| 63 |
return False
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
from .configuration_deepseek import DeepseekV3Config
|
| 66 |
import torch.distributed as dist
|
| 67 |
import numpy as np
|
|
|
|
| 61 |
except ImportError:
|
| 62 |
def is_flash_attn_greater_or_equal_2_10():
|
| 63 |
return False
|
| 64 |
+
try:
|
| 65 |
+
from transformers.utils.import_utils import is_torch_fx_available
|
| 66 |
+
except ImportError:
|
| 67 |
+
def is_torch_fx_available():
|
| 68 |
+
return False
|
| 69 |
from .configuration_deepseek import DeepseekV3Config
|
| 70 |
import torch.distributed as dist
|
| 71 |
import numpy as np
|