You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Transform] Fix accelerate import to keep it as optional dependency (#480)
Import has_offloaded_params from compressed_tensors.utils.offload instead of
accelerate.utils directly. This ensures accelerate remains optional and the
package can be imported without it installed.
The utils.offload module already has proper fallback handling with
@check_accelerate decorator that returns False when accelerate is not available.
Fixes ModuleNotFoundError when importing compressed_tensors without accelerate.
0 commit comments