Skip to content

Fix unpassable 53_casual_attention performance test (input range -100..100 -> -1..1) - #333

Open
kunal-mansukhani wants to merge 5 commits into
mainfrom
fix-53-perf-test-range
Open

kunal-mansukhani wants to merge 5 commits into
mainfrom
fix-53-perf-test-range

Conversation

@kunal-mansukhani

Copy link
Copy Markdown
Contributor

Fixes #332.

The performance test drew Q, K, V from U(-100, 100) with d=128 while atol = rtol = 1e-5, so logits have std ~3333 and fp32 reassociation alone puts correct kernels ~0.046 off the reference. This changes the perf-test range to U(-1, 1), matching 112_attention_with_sinks (same M=5000, d=128, same tolerance), and updates the matching constraint in challenge.html.

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.

53_casual_attention performance test is numerically unpassable (logits ~1e5 vs atol=1e-5)

1 participant