add missing class
Browse files- automodel.py +2 -1
automodel.py
CHANGED
|
@@ -6,7 +6,8 @@ import torch.nn as nn
|
|
| 6 |
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
|
| 7 |
from torch.nn.modules.utils import consume_prefix_in_state_dict_if_present
|
| 8 |
from transformers import BertPreTrainedModel
|
| 9 |
-
from transformers.modeling_outputs import
|
|
|
|
| 10 |
from huggingface_hub import hf_hub_download
|
| 11 |
from safetensors.torch import load_file
|
| 12 |
|
|
|
|
| 6 |
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
|
| 7 |
from torch.nn.modules.utils import consume_prefix_in_state_dict_if_present
|
| 8 |
from transformers import BertPreTrainedModel
|
| 9 |
+
from transformers.modeling_outputs import (MaskedLMOutput,
|
| 10 |
+
SequenceClassifierOutput)
|
| 11 |
from huggingface_hub import hf_hub_download
|
| 12 |
from safetensors.torch import load_file
|
| 13 |
|