X-PLUG / mPLUG-Owl

mPLUG-Owl: The Powerful Multi-modal Large Language Model Family
https://www.modelscope.cn/studios/damo/mPLUG-Owl
MIT License
2.33k stars 176 forks source link

Fix loading with .from_pretrained() on transformers==4.34.1 #166

Closed admk closed 1 year ago

admk commented 1 year ago

Currently, loading the mPLUG models using .from_pretrained(...) on transformers==4.34.1 raises TypeError, complaining _rope_scaling_validation is not JSON serializable, as it is a method.

This pull request fixes this bug.

See also: https://github.com/X-PLUG/mPLUG-Owl/issues/132.

MAGAer13 commented 1 year ago

Thanks for fixing the bug.