vittoriopippi
commited on
Commit
·
0f0df26
1
Parent(s):
e3b6daa
Error with model_type
Browse files- configuration_vatrpp.py +1 -2
- modeling_vatrpp.py +1 -1
configuration_vatrpp.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
-
from transformers import PretrainedConfig
|
| 2 |
|
| 3 |
-
@AutoConfig.register("vatrpp")
|
| 4 |
class VATrPPConfig(PretrainedConfig):
|
| 5 |
model_type = "vatrpp"
|
| 6 |
|
|
|
|
| 1 |
+
from transformers import PretrainedConfig
|
| 2 |
|
|
|
|
| 3 |
class VATrPPConfig(PretrainedConfig):
|
| 4 |
model_type = "vatrpp"
|
| 5 |
|
modeling_vatrpp.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_long_tail_chars():
|
|
| 30 |
|
| 31 |
return chars
|
| 32 |
|
| 33 |
-
|
| 34 |
class VATrPP(PreTrainedModel):
|
| 35 |
config_class = VATrPPConfig
|
| 36 |
|
|
|
|
| 30 |
|
| 31 |
return chars
|
| 32 |
|
| 33 |
+
|
| 34 |
class VATrPP(PreTrainedModel):
|
| 35 |
config_class = VATrPPConfig
|
| 36 |
|