Upload ConstBERT
Browse files- modeling.py +1 -1
modeling.py
CHANGED
|
@@ -90,7 +90,7 @@ class ConstBERT(BertPreTrainedModel):
|
|
| 90 |
|
| 91 |
|
| 92 |
@classmethod
|
| 93 |
-
def from_pretrained(cls, name_or_path, config=None):
|
| 94 |
colbert_config = ColBERTConfig(name_or_path)
|
| 95 |
colbert_config = ColBERTConfig.from_existing(ColBERTConfig.load_from_checkpoint(name_or_path), colbert_config)
|
| 96 |
obj = super().from_pretrained(name_or_path, colbert_config=colbert_config, config=config)
|
|
|
|
| 90 |
|
| 91 |
|
| 92 |
@classmethod
|
| 93 |
+
def from_pretrained(cls, name_or_path, config=None, *args, **kwargs):
|
| 94 |
colbert_config = ColBERTConfig(name_or_path)
|
| 95 |
colbert_config = ColBERTConfig.from_existing(ColBERTConfig.load_from_checkpoint(name_or_path), colbert_config)
|
| 96 |
obj = super().from_pretrained(name_or_path, colbert_config=colbert_config, config=config)
|