from transformers import BertConfig | |
class CustomBertConfig(BertConfig): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.custom_config = "This is a custom configuration class" | |
from transformers import BertConfig | |
class CustomBertConfig(BertConfig): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.custom_config = "This is a custom configuration class" | |