add auto mapping to preprocessor_config for opportunity to use model after save_pretrained

#13
by katuni4ka - opened

Thank you for the great model!

I found a small issue with processor saving. It can be successfully loaded using model id from the hub, but can not be restored after processor.save_pretrained call due to removing info about automapping in processor_config.json (as both preprocessor_config and processor_config reference for the same class and class object configuration overrides this info based on preprocessor_config). Adding auto_mapping to preprocessing_config helps to resolve this issue.

Could you please take a look?
This is helpful for possibility to integrate model to optimum

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment