Spaces:
Runtime error
Runtime error
Update custom_model.py
Browse files- custom_model.py +1 -1
custom_model.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import PreTrainedModel, PreTrainedTokenizer, AutoTokenizer, Au
|
|
4 |
|
5 |
# Define a custom model class
|
6 |
class CustomModel(PreTrainedModel):
|
7 |
-
config_class =
|
8 |
|
9 |
def __init__(self, config):
|
10 |
super().__init__(config)
|
|
|
4 |
|
5 |
# Define a custom model class
|
6 |
class CustomModel(PreTrainedModel):
|
7 |
+
config_class = AutoConfig # Use AutoConfig to dynamically load the configuration class
|
8 |
|
9 |
def __init__(self, config):
|
10 |
super().__init__(config)
|