Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持 BelleGroup/BELLE-LLAMA-7B-2M-gptq #12

Merged
merged 8 commits into from
Apr 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update llama_gptq.py
ypw committed Apr 1, 2023
commit a7c93fd8b35b91b566f34de1ad09f0ed768128a4
1 change: 1 addition & 0 deletions predictors/llama_gptq.py
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ def __init__(self, model_name, checkpoint_path='llama7b-2m-4bit-128g.pt', wbits=
print(f'Loading model from {checkpoint_path} ...')
model: LlamaForCausalLM = load_quant(model_name, checkpoint_path, wbits, groupsize)
model.eval()
model.to(self.device)
self.model = model
end = time.perf_counter()
print(f'Successfully loaded model {model_name}, time cost: {end - start:.2f}s')