Skip to content

Conversation

@mengniwang95
Copy link
Contributor

Bug fix

hasattr(self.model, "hf_device_map")
and len(self.model.hf_device_map) > 0
and self.pipe.device != self.model.device
and torch.device(self.model.device).type in ["cuda", "xpu"]
Copy link
Contributor

@wenhuach21 wenhuach21 Nov 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use not to support other devices in the future

not in ["cpu","hpu"]

@wenhuach21 wenhuach21 self-requested a review November 7, 2025 06:37
@wenhuach21 wenhuach21 merged commit f6745fd into main Nov 7, 2025
23 checks passed
@wenhuach21 wenhuach21 deleted the mengni/ut_fix branch November 7, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants