Make sure custom configs work with Transformers (#15569)
* Make sure custom configs work with Transformers * Apply code review suggestions
This commit is contained in:
@@ -7,3 +7,10 @@ class CustomConfig(PretrainedConfig):
|
||||
def __init__(self, attribute=1, **kwargs):
|
||||
self.attribute = attribute
|
||||
super().__init__(**kwargs)
|
||||
|
||||
|
||||
class NoSuperInitConfig(PretrainedConfig):
|
||||
model_type = "custom"
|
||||
|
||||
def __init__(self, attribute=1, **kwargs):
|
||||
self.attribute = attribute
|
||||
|
||||
Reference in New Issue
Block a user