Closed admk closed 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.
.from_pretrained(...)
transformers==4.34.1
_rope_scaling_validation
This pull request fixes this bug.
See also: https://github.com/X-PLUG/mPLUG-Owl/issues/132.
Thanks for fixing the bug.
Currently, loading the mPLUG models using
.from_pretrained(...)
ontransformers==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.