Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix onnx export for quantized MPT models (#1646)
Empty dict raises an exception when exporting quantized MPT models because when `state_dict = {}`, the HF loading pipeline will try to initialize the model by calling `_init_weights` for each module. However, for MPT models, this function is not defined and will therefore raise an exception.
- Loading branch information