transformers
f01bc563 - Build the flex block mask without a nested compile when already compiling

Commit
1 day ago
Build the flex block mask without a nested compile when already compiling create_block_mask(_compile=True) wraps the mask builder in its own torch.compile. Inside a compiled forward that is a nested compilation, and recent torch versions warn about the flag first, which Dynamo cannot trace: fullgraph compilation of any flex attention model fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parents
Loading