Skip to content

Commit

Permalink
Fix (gpfq): force create_weight_orig to True
Browse files Browse the repository at this point in the history
  • Loading branch information
i-colbert committed Oct 15, 2024
1 parent 0732d3d commit 0e91f52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/brevitas_examples/llm/llm_quant/gpxq.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def apply_gpfq(model, dataloader, act_order=True, group_of_parallel_layers=None,
else:
with gpfq_mode(model,
act_order=act_order,
group_of_parallel_layers=group_of_parallel_layers) as gpfq:
group_of_parallel_layers=group_of_parallel_layers,
create_weight_orig=True) as gpfq:
gpfq_model = gpfq.model
for _ in tqdm(range(gpfq.num_layers)):
for inps in dataloader:
Expand Down

0 comments on commit 0e91f52

Please sign in to comment.