Load older model

I have a model exported in version 2.7.0 using learner.export when I try to load it to a newer version I get an error: attempted to import from fastcore.dispatch and/or fastcore.transform which are deprecated in fastai>=2.8.0. is there a way to load it in a newer version > 2.8.0?

Hello,
You’re getting an import error loading your fastai 2.7.0 model in a newer version because fastcore.dispatch and fastcore.transform were deprecated in fastai >= 2.8.0. The most reliable solution is to downgrade your fastai and fastcore installations to versions compatible with 2.7.0 (e.g., fastai==2.7.12 fastcore==1.7.9) to load the model. If you need to use the model in a newer environment, consider re-exporting it after loading it in the compatible older environment, or retraining it from scratch with the newer fastai version.

Best regards,
Rebecca
cat language translator app