Xaver Maria Krückl commited on
Upload folder using huggingface_hub
Browse files- modeling_xlmedu.py +4 -0
modeling_xlmedu.py
CHANGED
|
@@ -59,6 +59,10 @@ class XLMEduModelHF(PreTrainedModel):
|
|
| 59 |
config_class = XLMEduConfig
|
| 60 |
_tied_weights_keys = []
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
def __init__(self, config: XLMEduConfig):
|
| 63 |
super().__init__(config)
|
| 64 |
# from_config creates an empty encoder shell; weights are loaded by the outer from_pretrained
|
|
|
|
| 59 |
config_class = XLMEduConfig
|
| 60 |
_tied_weights_keys = []
|
| 61 |
|
| 62 |
+
@property
|
| 63 |
+
def all_tied_weights_keys(self):
|
| 64 |
+
return {}
|
| 65 |
+
|
| 66 |
def __init__(self, config: XLMEduConfig):
|
| 67 |
super().__init__(config)
|
| 68 |
# from_config creates an empty encoder shell; weights are loaded by the outer from_pretrained
|