CodeIssues73 (73)Pull requests81 (81)DiscussionsActionsSecurity and qualityInsightsMore items GLM: opt-in CUDA+HIP expert helper for mixed-vendor GPUs - #879#879OpenRenWuJun wants to merge 7 commits intomw00:mainmw00/project-maya:mainfrom RenWuJun:hengha/glm-hip-helperRenWuJun/project-maya:hengha/glm-hip-helperCopy head branch name to clipboardConversationCommits7 (7)ChecksFiles changedOpenGLM: opt-in CUDA+HIP expert helper for mixed-vendor GPUs#879RenWuJun wants to merge 7 commits intomw00:mainmw00/project-maya:mainfrom RenWuJun:hengha/glm-hip-helperRenWuJun/project-maya:hengha/glm-hip-helperCopy head branch name to clipboardConversation RenWuJun commented Nov 6, 2026 • edited Loading Uh oh! There was an error while loading. Please reload this page.
Copy link Copy Markdown I’m adding an opt-in HIP expert helper to Maya’s CUDA engine, so my RTX 5090 and Strix Halo Radeon 8060S can run GLM-5.3-Flash together.
CUDA keeps attention, dense/shared layers and its expert cache. A separately compiled HIP module stores and computes complementary experts in the same process. Both GPUs can contribute to prefill and decode; model routing is preserved.
I reused Maya’s expert-helper interface, existing kernels, staging pipeline and result combination. A small versioned C ABI keeps device pointers and runtime handles within their owning runtime. The helper adds bounded expert storage, checked uploads/readback and optional mapped input/result buffers.
Grouped HIP prefill and cost-based admission are opt-in. The adaptive policy uses observed helper and staging costs to adjust admitted work within the configured bounds. Maya’s automatic CUDA memory sizing is retained.
./setup-cuda-hip.sh The guided Ubuntu 26.04 x86_64 setup offers missing build dependencies, reuses normal model setup, and builds the CUDA engine and HIP executor sequentially into an isolated pair. Previous builds and configurations are preserved. Working GPU drivers remain prerequisites.
Setup checks the selected HIP device’s architecture, available memory and supported model geometry. The generated launcher supports the web UI, --bench and --report; startup checks that the source and both artifacts still match. Source updates require rebuilding the pair. Dependency installation has not been tested on a completely clean OS.
I ran Maya’s unchanged built-in benchmark twice per mode on a Ryzen AI Max+ 395 / Radeon 8060S, 128 GB unified RAM with 96 GiB BIOS UMA, and an RTX 5090 32 GB over PCIe 4.0 x4 OCuLink. Ubuntu 26.04, CUDA 13.1 / HIP 7.1; GLM-5.3-Flash Maya-M IQ2_S, context 9216, INT8 KV and automatic CUDA memory sizing. Each run starts from the same expert profile; greedy decoding, thinking off, three answers up to 256 tokens each.
Static prefill uses a 64-row per-expert cap and a 0.25 helper admission ceiling; adaptive prefill permits up to 128 rows after calibration. MTP and DFlash use static prefill. Sampled device-wide CUDA peaks were 31566–31590 MiB (30.83–30.85 GiB).
These are two-run means for the current CUDA+HIP configuration, not a fresh CUDA+CPU comparison or a general speed guarantee. The existing model pack was retained.
Fresh CUDA engine and CUDA/HIP 7.1 modules build on the rig. The Ubuntu server suite passes (946 tests, 55 skipped), as does the tools suite (959 tests, 41 skipped), plus HIP mappings and Release helper dispatch, reader-lifetime and cost-estimator checks.
All 108 real-weight expert outputs match the previous validated modules bitwise. At 1,025 tokens, static full-model endpoints and adaptive sequential logits match exactly. Adaptive batched endpoints have KL divergence below 4.3e-6 with the same top token; they are not bitwise identical. These are limited regression checks, not broad quality qualification.
Current scope is Linux, one CUDA primary and native GGUF GLM experts with width 4096, intermediate width 2048 and at most eight routes. This PR does not add DeepSeek, EXL3 or Windows support. The external helper remains synchronous; upstream’s native EXL3/async helper paths are preserved, and requesting native helper overlap with the plugin is rejected explicitly. Plugin grouped prefill overlap is supported.
Setup options and architecture: expert helper guide.
Exact settings and per-run results: benchmark details.
Hacker News LLM
Original Reporting Source
Explore features, ratings, and alternatives from our 19,000+ AI tools catalog.

AssistLoop's AI chatbots slash response times by 70% and boost satisfaction, scaling support for e-commerce and SaaS without extra hires.

Design professional websites effortlessly with AI.
Hypertxt.ai is an AI-powered SEO content writing tool that helps create high-quality, optimized content for improved search engine rankings. It offers various features to streamline the content creation process, from keyword research to content optimization and plagiarism checks.