Add custom configuration file
Browse files- custom_configuration.py +7 -0
custom_configuration.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
from transformers import BertConfig
|
3 |
+
|
4 |
+
class CustomBertConfig(BertConfig):
|
5 |
+
def __init__(self, *args, **kwargs):
|
6 |
+
super().__init__(*args, **kwargs)
|
7 |
+
self.custom_config = "This is a custom configuration class"
|