Skip to content

Commit

Permalink
Move model to GPU:0 for SqueezeLLM
Browse files Browse the repository at this point in the history
  • Loading branch information
danielz02 committed Mar 26, 2024
1 parent a67724f commit 55a5407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helm/proxy/clients/huggingface_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(self, model_config: HuggingFaceModelConfig):

model = LlamaForCausalLM.from_pretrained(model_name, torch_dtype="auto")

model = model.eval()
model = model.to(self.device).eval()
layers = find_layers(model)

state_dict = torch.load(quantization_config.quant_file)
Expand Down

0 comments on commit 55a5407

Please sign in to comment.