Skip to content

Commit

Permalink
[Fix] Add the missing BundleModelParams pass
Browse files Browse the repository at this point in the history
PR mlc-ai#1852 missed to apply the BundleModelParams pass and thus made
the compiled models not runnable through ChatModule (mlc-ai#1864). This PR
fixes the issue.
  • Loading branch information
MasterJH5574 committed Mar 3, 2024
1 parent 731616e commit bd2fb42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlc_llm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ def build_model_from_args(args: argparse.Namespace):
qspec_updater = qspec_updater_class(param_manager)
qspec_updater.visit_module(mod)
mod = param_manager.transform_dequantize()(mod)
mod = relax.transform.BundleModelParams()(mod)

if not args.build_model_only:
parameter_transforms = []
Expand Down

0 comments on commit bd2fb42

Please sign in to comment.