Add GLM 5.2 inference (SSD streaming and distributed) on ROCm for GLM-5.2-UD-IQ2_XXS_RoutedIQ2XXS_blk78Q2K.gguf#617
Open
kyuz0 wants to merge 33 commits into
Open
Add GLM 5.2 inference (SSD streaming and distributed) on ROCm for GLM-5.2-UD-IQ2_XXS_RoutedIQ2XXS_blk78Q2K.gguf#617kyuz0 wants to merge 33 commits into
kyuz0 wants to merge 33 commits into
Conversation
added 30 commits
July 22, 2026 02:33
Author
|
I tested the same Both runs used ds4's tracked
The distributed run completed all 100 cases without ROCm errors, non-finite values, KV-cache mismatches, route failures, or worker crashes. Its quality metrics are effectively the same as the established SSD-streaming path. |
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.
This PR adds inference support for GLM 5.2 on AMD Strix Halo systems using the ROCm backend for for
GLM-5.2-UD-IQ2_XXS_RoutedIQ2XXS_blk78Q2K.gguf. This is both for SSD streaming and for distributed inference.The model can now be split by layer across two nodes and kept resident in memory. Each node maps and loads only its assigned layers, so distributed inference does not require SSD streaming.
It uses the ROCm fixes and optimized attention, projection, MoE, and decode paths needed to make GLM 5.2 inference correct and practical on
gfx1151.The FP16 hipBLAS attention approach was informed by mgiustiniani's GLM 5.2 work.
Running
The following example splits the 78 transformer layers across two Strix Halo systems:
0:37, address192.168.100.238:output, address192.168.100.1Start the coordinator:
Start the worker:
--dist-prefill-chunk 256 --dist-prefill-window 2is the tested prefill configuration.Testing
This was tested on two Strix Halo systems with 128 GiB of unified memory each, using ROCm 7.2.4 and:
Validation included:
Performance
Results for the two-node
0:37 / 38:outputsplit:The 8K prefill result measures the additional 4K suffix after an existing 4K context.
Caveats
GLM-5.2-UD-IQ2_XXS_RoutedIQ2XXS_blk78Q2K.gguftested