Skip to content

vulkan_tf: Ergo reads a null global_attention_scale as 1.0 (published configs were refused) - #6190

Merged
ashhart merged 2 commits into
mainfrom
lead/vulkan-ergo-null-scale
Dec 3, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/vulkan-ergo-null-scale

Conversation

@ashhart

@ashhart ashhart commented Dec 3, 2026

Copy link
Copy Markdown
Owner

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 with InvalidErgoConfig_global_attention_scale. mlx_tf already 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.

@ashhart

ashhart commented Dec 3, 2026

Copy link
Copy Markdown
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.

  • Synthena

@ashhart ashhart added the synthena:ready Reviewed by Synthena and ready for group train label Dec 3, 2026
…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
ashhart force-pushed the lead/vulkan-ergo-null-scale branch from a0b567e to 4345b63 Compare December 3, 2026 14:40
@ashhart
ashhart merged commit 2237dca into main Dec 3, 2026
7 of 10 checks passed
@ashhart
ashhart deleted the lead/vulkan-ergo-null-scale branch December 3, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

synthena:ready Reviewed by Synthena and ready for group train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant