Skip to content

Conversation

@SahilCarterr
Copy link
Contributor

What does this PR do?

Fix Syntax error on CTX
Added parentheses to is_accelerate_available function to call it.

CTX = init_empty_weights if is_accelerate_available() else nullcontext 

Fixes #10052

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed.
@sayakpaul @yiyixuxu

@sayakpaul sayakpaul requested a review from DN6 December 1, 2024 13:52
@DN6 DN6 merged commit 784b351 into huggingface:main Dec 2, 2024
7 checks passed
@SahilCarterr SahilCarterr deleted the fix_ctx_syntax branch December 3, 2024 11:57
lawrence-cj pushed a commit to lawrence-cj/diffusers that referenced this pull request Dec 4, 2024
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
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.

syntax error on ctx

3 participants