Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerogoki00 committed Mar 13, 2023
1 parent 1b99ed6 commit 3c9afd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def load_model(model_name):

# Quantized model
elif shared.args.gptq_bits > 0:
from modules.quant_loader import load_quant
from modules.quant_loader import load_quantized

model = load_quant(model_name, shared.args.gptq_model_type)
model = load_quantized(model_name, shared.args.gptq_model_type)

# Custom
else:
Expand Down
2 changes: 1 addition & 1 deletion modules/quant_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# 4-bit LLaMA
def load_quant(model_name, model_type):
def load_quantized(model_name, model_type):
if model_type == 'llama':
from llama import load_quant
elif model_type == 'opt':
Expand Down

0 comments on commit 3c9afd5

Please sign in to comment.