KEMBAR78
Fix CI: Tests failing on CPU due to `torch.device('cpu').index` being None by manueldeprada · Pull Request #39933 · huggingface/transformers · GitHub
Skip to content

Conversation

@manueldeprada
Copy link
Contributor

torch.device('cpu').index is None, hence int(routing_weights.device.index) fails on tests being run on CPU, see example here

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

[For maintainers] Suggested jobs to run (before merge)

run-slow: granitemoe, granitemoehybrid, granitemoeshared, jamba, jetmoe, olmoe, phimoe, qwen2_moe

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@manueldeprada manueldeprada requested a review from gante August 6, 2025 06:39
Copy link
Member

@Cyrilvallez Cyrilvallez left a comment

Choose a reason for hiding this comment

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

Indeed, saw it as well! Thanks!

@Cyrilvallez
Copy link
Member

Merging it to help CI!

@Cyrilvallez Cyrilvallez merged commit 910b319 into huggingface:main Aug 6, 2025
18 checks passed
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