Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run fp16 MusicGen tests on CPU #30466

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

amyeroberts
Copy link
Collaborator

What does this PR do?

Another victim of the torch 2.3 release - fp16 is now marked as available for CPU, but the necessary operations are implemented for the MusicGen and MusicGen melody generation tests.

Adding an extract requirement that a torch accelerator is used to avoid running on CPU.

Fixes failing tests on main. Example run: https://app.circleci.com/pipelines/github/huggingface/transformers/90749/workflows/b93e2c68-695f-4aee-a944-9f86b6a1d369/jobs/1185031

@amyeroberts amyeroberts requested a review from ydshieh April 24, 2024 20:56
@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.

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Thanks sorry for delay

@amyeroberts amyeroberts merged commit aca4a10 into huggingface:main Apr 25, 2024
18 checks passed
@amyeroberts amyeroberts deleted the fix-fp16-musicgen-tests branch April 25, 2024 10:14
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.

None yet

3 participants