Fix import error and add source_files to config
Browse files- foundation_bert.py +2 -2
foundation_bert.py
CHANGED
|
@@ -8,9 +8,9 @@ if current_dir not in sys.path:
|
|
| 8 |
|
| 9 |
import torch
|
| 10 |
import yaml
|
| 11 |
-
from utils.masked_data_modeling_loss import MaskedDataLossWithSoftmax
|
| 12 |
# from ..utils.contrastive_loss import ContrastiveLoss
|
| 13 |
-
from utils.yaml_util import MyLoader
|
| 14 |
from dataclasses import dataclass
|
| 15 |
from transformers import BertModel, BertConfig, PretrainedConfig
|
| 16 |
from typing import Optional, Union
|
|
|
|
| 8 |
|
| 9 |
import torch
|
| 10 |
import yaml
|
| 11 |
+
from .utils.masked_data_modeling_loss import MaskedDataLossWithSoftmax
|
| 12 |
# from ..utils.contrastive_loss import ContrastiveLoss
|
| 13 |
+
from .utils.yaml_util import MyLoader
|
| 14 |
from dataclasses import dataclass
|
| 15 |
from transformers import BertModel, BertConfig, PretrainedConfig
|
| 16 |
from typing import Optional, Union
|