Update modeling_indictrans.py
Browse files- modeling_indictrans.py +2 -2
modeling_indictrans.py
CHANGED
@@ -23,7 +23,7 @@ import torch.nn as nn
|
|
23 |
from torch.nn import functional as F
|
24 |
|
25 |
from transformers.activations import ACT2FN
|
26 |
-
from transformers.deepspeed import is_deepspeed_zero3_enabled
|
27 |
from transformers.modeling_outputs import (
|
28 |
BaseModelOutput,
|
29 |
BaseModelOutputWithPastAndCrossAttentions,
|
@@ -34,7 +34,7 @@ from transformers.modeling_outputs import (
|
|
34 |
from transformers.utils import logging
|
35 |
from transformers.modeling_utils import PreTrainedModel
|
36 |
|
37 |
-
from
|
38 |
|
39 |
|
40 |
logger = logging.get_logger(__name__)
|
|
|
23 |
from torch.nn import functional as F
|
24 |
|
25 |
from transformers.activations import ACT2FN
|
26 |
+
from transformers.integrations.deepspeed import is_deepspeed_zero3_enabled
|
27 |
from transformers.modeling_outputs import (
|
28 |
BaseModelOutput,
|
29 |
BaseModelOutputWithPastAndCrossAttentions,
|
|
|
34 |
from transformers.utils import logging
|
35 |
from transformers.modeling_utils import PreTrainedModel
|
36 |
|
37 |
+
from configuration_indictrans import IndicTransConfig
|
38 |
|
39 |
|
40 |
logger = logging.get_logger(__name__)
|