Skip to content

Conversation

xadupre
Copy link
Collaborator

@xadupre xadupre commented Sep 16, 2025

PR huggingface/transformers#40791 fails torch.export.export. This PR turns it into a property.

@sdpython sdpython changed the title Add opset to folder name Added a patch for PR 40791 in transformers Sep 16, 2025
@sdpython sdpython merged commit 0f9667b into main Sep 16, 2025
34 checks passed
@sdpython sdpython deleted the ops branch September 16, 2025 17:49
self.keys = torch.empty(new_shape, dtype=self.dtype, device=self.device)
self.values = torch.empty(new_shape, dtype=self.dtype, device=self.device)
if patch_is_initialized:
self.is_initialized = True
Copy link
Collaborator

Choose a reason for hiding this comment

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

I image before this PR, we got AttributeError?

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.

3 participants