Skip to content

make compilation optional, return None for empty attention graph#30

Merged
sfluegel05 merged 1 commit intodevfrom
fix/attention-graph
Feb 24, 2026
Merged

make compilation optional, return None for empty attention graph#30
sfluegel05 merged 1 commit intodevfrom
fix/attention-graph

Conversation

@sfluegel05
Copy link
Contributor

I had some trouble with the ELECTRA attention graph (the server crashes when trying to load the graph). The reason is that models are compiled in eager mode by default. The attention graph requires attention weights that are not accessible in eager mode. Therefore, I made compilation optional. In addition, if the model makes predictions but (for some reason) still does not return attention weights, the graph is silently hidden.

@sfluegel05 sfluegel05 merged commit cadb16a into dev Feb 24, 2026
2 checks passed
@sfluegel05 sfluegel05 deleted the fix/attention-graph branch February 24, 2026 15:44
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