Skip to content

Commit

Permalink
remove cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
metascroy committed Apr 17, 2024
1 parent d16daec commit 18c1f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/gguf_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def load_model_and_state_dict(gguf_file: str, load_as_quantized: bool) -> torch.
q, inner_k_tiles
)

state_dict[f"{fqn}.weight"] = weight_int4pack.to("cpu")
state_dict[f"{fqn}.scales_and_zeros"] = scales_and_zeros.to("cpu")
state_dict[f"{fqn}.weight"] = weight_int4pack
state_dict[f"{fqn}.scales_and_zeros"] = scales_and_zeros

parent = _fqn_lookup(_fqn_up(fqn), model)
setattr(
Expand Down

0 comments on commit 18c1f02

Please sign in to comment.