sapthesh commited on
Commit
09d9f2a
·
verified ·
1 Parent(s): de53c31

Update custom_model.py

Browse files
Files changed (1) hide show
  1. 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 = None # Set this to the custom configuration class if available
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)