Update modeling_chexagent.py
Browse files- modeling_chexagent.py +1 -0
modeling_chexagent.py
CHANGED
@@ -23,6 +23,7 @@ import torch.nn.functional as F
|
|
23 |
import torch.utils.checkpoint
|
24 |
from torch import nn
|
25 |
from torch.nn import CrossEntropyLoss
|
|
|
26 |
from transformers.activations import ACT2FN
|
27 |
from transformers.cache_utils import Cache, DynamicCache
|
28 |
from transformers.modeling_attn_mask_utils import _prepare_4d_causal_attention_mask
|
|
|
23 |
import torch.utils.checkpoint
|
24 |
from torch import nn
|
25 |
from torch.nn import CrossEntropyLoss
|
26 |
+
import transformers
|
27 |
from transformers.activations import ACT2FN
|
28 |
from transformers.cache_utils import Cache, DynamicCache
|
29 |
from transformers.modeling_attn_mask_utils import _prepare_4d_causal_attention_mask
|