Skip to content

Commit

Permalink
use cuda() for internlm3 gptq
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Jan 14, 2025
1 parent af14f54 commit be8fc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/lite/apis/gptq.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def auto_gptq(model: str,
quantize_config,
revision=revision,
torch_dtype=torch_dtype,
trust_remote_code=True)
trust_remote_code=True).cuda()

# quantize model, the examples should be list of dict whose keys
# can only be "input_ids" and "attention_mask"
Expand Down

0 comments on commit be8fc0f

Please sign in to comment.