Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMarc committed Dec 4, 2023
1 parent 32b3bf6 commit 223a946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/big_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def dispatch_model(

# warn if there is any params on the meta device
offloaded_devices_str = " and ".join(
[device for device in set(device_map.values()) if device in ("cpu", "disk")]
[device for device in set(device_map.values()) if device in offloaded_devices]
)
if len(offloaded_devices_str) > 0:
logging.warning(
Expand Down

0 comments on commit 223a946

Please sign in to comment.