Skip to content

Bump Replicate guard to torch 2.5#34838

Closed
qubvel wants to merge 1 commit intohuggingface:mainfrom
qubvel:fix-replicate-guard
Closed

Bump Replicate guard to torch 2.5#34838
qubvel wants to merge 1 commit intohuggingface:mainfrom
qubvel:fix-replicate-guard

Conversation

@qubvel
Copy link
Copy Markdown
Contributor

@qubvel qubvel commented Nov 20, 2024

What does this PR do?

With torch 2.4 transformers imports fail on

from torch.distributed.tensor import Replicate

this PR update import guard to torch >= 2.5

Fixes #34831

Who can review?

@qubvel qubvel requested a review from ArthurZucker November 20, 2024 23:09
@qubvel
Copy link
Copy Markdown
Contributor Author

qubvel commented Nov 20, 2024

Closed in favor of #34816

@qubvel qubvel closed this Nov 20, 2024
@qubvel qubvel removed the request for review from ArthurZucker November 20, 2024 23:27
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

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.

Unable to import SamModel

2 participants