Add GLM 5.2 inference (SSD streaming and distributed) on ROCm for GLM-5.2-UD-IQ2_XXS_RoutedIQ2XXS_blk78Q2K.gguf - #617
Conversation
|
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. |
|
Thanks a lot! Tested it on my Strix Halo 128Gb with SSD streaming from 2xSamsung 990 PRO 1Tb in RAID0 on the GLM-5.2-UD-Q2_K_RoutedQ2K.gguf model. This patch series fixes significant performance degradation after 2048 token, which I observed before on the current main branch. Original: gen speed drops from ~2 t/s to 0.14 t/s after context reaching 2048 tokens. |
|
Thank you @kyuz0 ! Merged |
Add GLM 5.2 inference (SSD streaming and distributed) on ROCm for GLM-5.2-UD-IQ2_XXS_RoutedIQ2XXS_blk78Q2K.gguf
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