Repository navigation
feat(moe): add Volcanic-safe multi-workgroup quantized MoE Vulkan compute kernels (#5) - #15
Closed
saariuslystoned wants to merge 2 commits into
Closed
saariuslystoned wants to merge 2 commits into
saariuslystoned wants to merge 2 commits into
Conversation
Shader eval_tile now guards tile/token/slot/weight-range inputs before dereference; host pack rejects non-multiple rows; dot checks K multiples, activation width, and 64-bit offsets; arena/dispatch arithmetic is overflow-checked; fixture indices are bounds-checked before resize. Adds deterministic adversarial suite (21 tests): non-multiple dims, top-k limits, empty/skewed routing, N-dim tiles, nibble extremes, NaN/Inf/subnormal scales, shader guards, and a seeded finite fuzz sweep.
Contributor
Author
Adversarial Hardening & Public-Roads Audit Receipt (
|
Contributor
Author
|
Closing: superseded — custom MoE runtime compute shaders sit outside freepvr's clean-room ISA/spec/validator/probe scope. |
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.
Addresses #5 (clean-room GLSL 4.60 multi-workgroup routed MoE compute kernels for PowerVR Volcanic DXT-48-1536, C11/C++17 ABI & host harness, SPIR-V validation, and bit-exact CPU reference suite).
Summary
local_size_x = 128):DSparkunion expert tables with per-expert deduplication and register-accumulated weighted sums (y[token, row] = sum_k route_w[k] * expert_k(x[token])).Q4_0(18-byte block-32, 16-byte expert alignment) and group-64 INT4 affine (64-byte blocks, 64-byte alignment + 64-byte aligned atomic cursor).atomicAddtile claiming capped atmax_tiles_per_wg(default 32 tiles ≈ <8 ms slice), disjoint output-row ownership, and zero cross-workgroup spinlocks (enforced by static shader linter rejectingwhile, unboundedfor,do,atomicCompSwap,atomicExchange, andspin).VkPhysicalDeviceFeatures2→VkPhysicalDeviceVulkan12Featureschain.moe_abi.h(C11/C++17), SPIR-V layout offset assertions, and CI integration.Verification
glslangValidator+spirv-val --target-env vulkan1.2: PASS (offsets &LocalSize 128verified againstmoe_abi.h).g++ -std=c++17 -Wall -Wextra -Werror -Werror=comment& C11moe_abi.hcompile: PASS.python3 tools/moe/moe_reference.py --self-test&unittest discover: 13/13 + 25/25 PASS (bit-exact Python/C++ parity across Q4_0, group-64 affine, and 2-token DSpark union under both claim maps)../scripts/clean-room-audit.sh: PASS (70 files);git diff --check: clean.