ACE-Step Custom commited on
Commit
2538e84
·
1 Parent(s): fc9be45

Use device_map to force CUDA placement and prevent meta device

Browse files
Files changed (1) hide show
  1. acestep/handler.py +1 -2
acestep/handler.py CHANGED
@@ -498,8 +498,7 @@ class AceStepHandler:
498
  trust_remote_code=True,
499
  attn_implementation=candidate,
500
  torch_dtype=self.dtype,
501
- low_cpu_mem_usage=False, # Disable memory-efficient weight loading
502
- _fast_init=False, # Disable fast initialization
503
  )
504
  attn_implementation = candidate
505
  break
 
498
  trust_remote_code=True,
499
  attn_implementation=candidate,
500
  torch_dtype=self.dtype,
501
+ device_map={"": self.device}, # Force all components to target device immediately
 
502
  )
503
  attn_implementation = candidate
504
  break