Repository navigation
vulkan_tf: Ergo reads a null global_attention_scale as 1.0 (published configs were refused) - #6190
Merged
Merged
Conversation
Owner
Author
|
READY to land on this head. engines/vulkan_tf only: a present null global_attention_scale in an Ergo config reads as 1.0 instead of being refused; every published Ergo config writes that null, so Vulkan refused all of them. A missing key or wrong type is still refused. A new test fails before the fix; the Vulkan host suite passes 250 of 251 (1 skipped); the three published configs parse with the expected shape. Load-time config only: no kernel or arithmetic change.
|
…gs write it, is no extra scale The published Ergo configs (the release, its bf16 copy and the TFQ checkpoint) all write "global_attention_scale": null. Vulkan's published-field reader took it as a number and refused every one with InvalidErgoConfig_global_attention_scale, so no published Ergo checkpoint loaded on Vulkan. A present null now reads as 1.0, as mlx_tf reads it (and #6037's readers): a global layer's attention scale is then the local one exactly. The key must still be present, and a wrong type is still refused by name. The null-refusal test skips this one field; a new test parses a null scale as 1.0 and checks a global layer's attention scale equals a local layer's.
ashhart
force-pushed
the
lead/vulkan-ergo-null-scale
branch
from
December 3, 2026 14:40
a0b567e to
4345b63
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
engines/vulkan_tf: Ergo refused every published Ergo checkpoint. All three published configs (Amazon-FMR/Ergo, Amazon-FMR/Ergo-bf16, TensorFold/Ergo-TFQ-Balanced) write"global_attention_scale": null, and the Vulkan config parser refused a null withInvalidErgoConfig_global_attention_scale.mlx_tfalready reads it as 1.0.A present null now reads as 1.0, so a global layer's attention scale equals the local one; a missing key or a wrong type is still refused. A new test on the repo's own sample config fails before the fix. The Vulkan host suite passes 250 of 251 (1 skipped). Run against the three published configs, the parser accepts each with the expected shape (64 layers, hidden 8192, 256 experts with top-8, window 512, a global layer every 4). The config files themselves aren't added to the repo.