Skip to content

Conversation

@leizhenyuan
Copy link
Contributor

@leizhenyuan leizhenyuan commented Jun 26, 2025

Fix issue like below:
File "unsloth\unsloth\models_utils.py", line 565, in is_big_gpu
avail_sms = prop.multi_processor_count
^^^^^^^^^^^^^^^^^^^^^^^^^^
torch._inductor.exc.InductorError: LoweringException: AttributeError: 'torch._C._XpuDeviceProperties' object has no attribute 'multi_processor_count'

Currently usage is aligned with torch code
https://github.com/pytorch/pytorch/blob/455dfd258980294f0745bd90aee12a323e37224d/torch/_inductor/utils.py#L1416

@danielhanchen danielhanchen merged commit 396531e into unslothai:main Jun 26, 2025
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.

2 participants