Skip to content

Commit

Permalink
use same device for model and input
Browse files Browse the repository at this point in the history
  • Loading branch information
HRashidi committed Oct 30, 2024
1 parent eb3e2a5 commit 464e9d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion aana/deployments/hqq_text_generation_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ async def apply_config(self, config: dict[str, Any]):
self.dtype = Dtype.BFLOAT16

if config_obj.quantize_on_fly:
self.model_kwargs["device_map"] = "cpu"
self.model = AutoModelForCausalLM.from_pretrained(
self.model_id, torch_dtype=self.dtype.to_torch(), **self.model_kwargs
)
Expand Down

0 comments on commit 464e9d9

Please sign in to comment.