Skip to content

Add poylfill for transformers >= 4.40#487

Open
bailey-coding wants to merge 1 commit into
datalab-to:masterfrom
bailey-coding:patch-1
Open

Add poylfill for transformers >= 4.40#487
bailey-coding wants to merge 1 commit into
datalab-to:masterfrom
bailey-coding:patch-1

Conversation

@bailey-coding

Copy link
Copy Markdown

Added a fallback implementation for find_pruneable_heads_and_indices in case of ImportError.

Fixes #486

Added a fallback implementation for find_pruneable_heads_and_indices in case of ImportError.

Fixes datalab-to#486
@github-actions

github-actions Bot commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@bailey-coding

Copy link
Copy Markdown
Author

It's been a while since I wrote a polyfill in Python, should I move the import below all the others or leave the polyfill up there?

@bailey-coding

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

[BUG: Breaking] ImportError on transformers >4.40

1 participant