Please add preprocessor_config.json

#1
by darkneighbor667 - opened

The model would not load, and I got the error below. Could you please upload the necessary files to your repo? Thank you!

Traceback (most recent call last):
File "/home/user/app/app.py", line 76, in
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True, kwargs=mm_processor_kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/processing_auto.py", line 433, in from_pretrained
return PROCESSOR_MAPPING[type(config)].from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/processing_utils.py", line 1421, in from_pretrained
args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, processor_dict, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/processing_utils.py", line 1550, in _get_arguments_from_pretrained
sub_processor = auto_processor_class.from_pretrained(
File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/image_processing_auto.py", line 683, in from_pretrained
raise initial_exception
File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/image_processing_auto.py", line 670, in from_pretrained
config_dict, _ = ImageProcessingMixin.get_image_processor_dict(
File "/usr/local/lib/python3.10/site-packages/transformers/image_processing_base.py", line 334, in get_image_processor_dict
raise OSError(
OSError: Can't load image processor for 'nbeerbower/Huihui-Qwen3.5-27B-abliterated-Athanorlite-ORPO'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'nbeerbower/Huihui-Qwen3.5-27B-abliterated-Athanorlite-ORPO' is the correct path to a directory containing a preprocessor_config.json file

Realized this is a bug with Merlina not saving the image processor. I will upload a new version that has vision working properly.

Sign up or log in to comment