Skip to content

Commit

Permalink
fix noop placeholder in gptq vendor code
Browse files Browse the repository at this point in the history
  • Loading branch information
1b5d committed Apr 23, 2023
1 parent 80b944a commit 5bb2199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/llms/gptq_llama/gptq_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _load_quant(
): # pylint: disable=too-many-arguments
config = LlamaConfig.from_pretrained(model)

def noop():
def noop(*args, **kwargs): # pylint: disable=unused-argument
pass

torch.nn.init.kaiming_uniform_ = noop
Expand Down

0 comments on commit 5bb2199

Please sign in to comment.