Skip to content

Commit

Permalink
add quant norm
Browse files Browse the repository at this point in the history
  • Loading branch information
qwopqwop200 committed May 8, 2023
1 parent ad22256 commit 3f1c582
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions llama_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ def noop(*args, **kwargs):
else:
model.load_state_dict(torch.load(checkpoint), strict=False)

quant.make_quant_attn(model)
if eval and fused_mlp:
quant.make_fused_mlp(model)

if eval:
quant.make_quant_attn(model)
quant.make_quant_norm(model)
if fused_mlp:
quant.make_fused_mlp(model)
if warmup_autotune:
quant.autotune_warmup_linear(model, transpose=not (eval))
if eval and fused_mlp:
Expand Down

0 comments on commit 3f1c582

Please sign in to comment.