feat(windows): gfx1102 CPU-MoE serve stack (hybrid, 8 GB) - #7
Merged
Merged
Conversation
Build _cpu_moe with clang-cl, Windows physical-core topology, skip missing torch.distributed, and keep ZMQ TCP ports below the ephemeral range. Validated on Framework 16 / RX 7700S / gpt-oss-20b at ~10.5 tok/s with hybrid fetch disabled. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Bundled Windows/ROCm changes from the gfx1102 report on #82, ported onto this fork (not a dump of FlashML PR FlashML-org#132).
On a Framework Laptop 16 (RX 7700S, gfx1102, 8 GB, 96 GB RAM with 8.2 GB hardware reserved)
openai/gpt-oss-20bserved at ~10.5 tok/s with CPU experts and PCIe fetch off. Offload / default hybrid stay at ~0.02 tok/s;--moe-hybrid-max-fetch 0is a bypass, not a HIP gather fix.This fork already has TCP ZMQ, a global Selector policy, and GPU offload TDR work. This PR adds what was still missing for the 8 GB CPU-MoE path:
_cpu_moeon Windows with clang-cl + compiler-rt (MSVC would be scalar-only). Hoist<windows.h>out of the anonymous namespace so clang-cl atomics compile. Includehip_compat.cuhon ROCm.physical_core_cpus()viaGetLogicalProcessorInformationEx(sysfs fallback counted SMT as cores: 16 threads on 8, ~3x less CPU-MoE bandwidth).init_process_groupwhen TheRock torch isUSE_DISTRIBUTED=0at TP size 1; guardall_reduce/shutdown.zmq_addr():zmq.has("ipc"), crc32, ports below 49152, per-instance suffix (the previous SHA1 ports could land in the Windows ephemeral range and did not isolate two servers).loop="asyncio:SelectorEventLoop"(policy alone is not enough on uvicorn 0.52). Flooruvicorn>=0.36.tvm-ffi hipcc flags are still a separate overlay: https://github.com/AronVanAmmers/tvm-ffi/tree/windows-hip-0.1.13-post3 (
TVM_FFI_ROCM_ARCH_LIST=gfx1102).Test plan
pytest tests/utils/test_zmq_addr.py/health) as the readiness gate