config class does not matched
#1
by
hyunw3
- opened
I encounter such error when loading your model
model = AutoModelForCausalLM.from_pretrained(args.checkpoint, device_map='cuda', trust_remote_code=True).eval()
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 'configuration_qwen.QWenConfig'> and you passed <class 'transformers_modules.hflqf88888.OdysseyAgent-random-low.eee0d172c281fe63e6571441d5ad8f00b2031d00.configuration_qwen.QWenConfig'>. Fix one of those so they match!