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

Fix RuntimeError in ZSBert #61

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Conversation

marmg
Copy link
Collaborator

@marmg marmg commented Aug 24, 2023

Status Type ⚠️ Core Change Issue
Ready Bug No #59

Problem

With transformers>=4.31.0 ZSBert raised a RuntimeError while loading the state dict

Solution

Add strict=False to load_state_dict

@marmg marmg self-assigned this Aug 24, 2023
…ld transformer library (4.21.3)

Signed-off-by: Marcos Martinez <Marcos.Martinez.Galindo@ibm.com>
@marmg marmg force-pushed the support_latest_transformers_lib_for_zsbert branch from 498402f to 9318c2a Compare August 24, 2023 12:34
@marmg marmg merged commit f5fcf7f into main Aug 24, 2023
@marmg marmg deleted the support_latest_transformers_lib_for_zsbert branch August 24, 2023 13:12
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.

1 participant