how can i solve this problem plz help
You are using a model of type Sparrow to instantiate a model of type imp. This is not supported for all configurations of models and can yield errors.
ValueError Traceback (most recent call last)
in <cell line: 8>()
6
7 #Create model
----> 8 model = AutoModelForCausalLM.from_pretrained(
9 "ManishThota/CustomModel",
10 torch_dtype=torch.float16,
1 frames
/usr/local/lib/python3.10/dist-packages/transformers/models/auto/auto_factory.py in register(cls, config_class, model_class, exist_ok)
581 """
582 if hasattr(model_class, "config_class") and str(model_class.config_class) != str(config_class):
--> 583 raise ValueError(
584 "The model class you are passing has a config_class
attribute that is not consistent with the "
585 f"config class you passed (model has {model_class.config_class} and you passed {config_class}. Fix "
ValueError: The model class you are passing has a config_class
attribute that is not consistent with the config class you passed (model has <class 'transformers_modules.ManishThota.CustomModel.032bbcb67cf8945d7b88d5837082247c07d3b6b9.configuration_imp.ImpConfig'> and you passed <class 'transformers_modules.ManishThota.CustomModel.032bbcb67cf8945d7b88d5837082247c07d3b6b9.configuration_im.ImpConfig'>. Fix one of those so they match!