tomaarsen HF staff commited on
Commit
7b7f3b1
1 Parent(s): d7cb4e2

Add custom configuration file

Browse files
Files changed (1) hide show
  1. 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"