Repository navigation
docs: organize the site by component, and fix pages that no longer match the code - #972
Conversation
Each change below was checked against the code it describes. Snippets and commands that fail as written: - Profiler (quickstart, EP guide, PROFILER, api/profiler): mori.cpp.get_debug_time_buf(op._handle) returns a (pointer, length) tuple, which export_to_perfetto rejects on .is_cuda. Use op.get_debug_time_buf() (and op.get_debug_time_offset()), which return tensors, and say ENABLE_PROFILER=ON must also be set at run time: the JIT only compiles the instrumented kernels then. - The inter-node EP script takes --cmd bench, not --bench. torchrun starts it once per node: it reads the node count from WORLD_SIZE and starts the node's ranks itself, so --nproc_per_node=8 was wrong. - bench_dispatch_combine.py spawns its own ranks; under torchrun x8 it ran 64 of them. Run it with python3. - SHMEM: MPI-communicator init cannot be done from Python (shmem_init_attr only takes a unique ID); show the C++ call instead. - IO benchmark: run build/tests/cpp/bench_engine, not the source path. - RDMA bandwidth page: name tools/profiler/analyze_ep_kernel_trace.py, not two scripts that do not exist. Values and facts: - SHMEM: MORI_SHMEM_MODE takes static_heap / vmm_heap / isolation (other values fall back to static_heap with a warning); the heap defaults to 4 GB / 16 GB; MORI_NUM_QP_PER_PE defaults to 4; IO, CCO and EPv2 do not use shmem. - EP: InterNodeV1LL's AUTO fallback is 256/128/8; manual IntraNode uses per-kernel launch defaults; combine() takes the dispatched weights; add IntraNodeLL (5) to both kernel-type tables; the bindings live in src/pybind/mori.cpp and pybind_ops.cpp, tests in test_dispatch_combine_*. - EPv2 defaults to the HIP backend on gfx125x. - IO: TCP exists only in simulation mode; BackendType also has FABRIC and OFI. Show the two MORI-IO diagrams: MyST does not copy images referenced by raw <img> tags, so both returned 404 on the site. Use Markdown image syntax. Also replace personal paths in the EP benchmark page. Co-Authored-By: Claude <noreply@anthropic.com>
… code - PD benchmark: the build step ran `UMBP=ON bash build.sh`, but main has never had a build.sh and the switch is BUILD_UMBP. Build with `MORI_PYBUILD_DIR=build_$(hostname) BUILD_UMBP=ON pip install .`, which keeps each node's build in its own directory of the shared checkout -- exactly where the launchers already look for umbp_master. Say that UMBP needs gRPC and Protobuf, without which the build skips it with a warning. - api/umbp and the master-client demo: the CMake option is -DBUILD_UMBP=ON, not -DUMBP=ON. - api/umbp: StandaloneClient was removed. In standalone-process mode the client is StandaloneProcessClient, which forwards the external-KV queries to the node's server. - Tier-management benchmark: the per-peer backend limit is 16 (kMaxBackendsPerPeer), not eight. - runtime-env-vars and the master design note: UMBP_LOG_LEVEL is not read anywhere; MORI_UMBP_LOG_LEVEL takes trace..critical. - Single-node smoke test: drop UMBP_SSD_STAGING_BYTES and the troubleshooting entry built on ssd_staging_buffer_size; neither exists, and SSD staging is now a page arena that needs no sizing (SsdStagingPages). The script reads MORI_PIP_FLAGS and RUN_GSM8K, not MORI_BRANCH / SGLANG_BRANCH. Remove a personal skill path and personal example paths. Co-Authored-By: Claude <noreply@anthropic.com>
- GemmAllReduceOp and GemmReduceScatterOp have no mode= parameter; only the other four operators have mode="split". - GemmAllReduceOp's quant is blockscale, mxfp8, mxfp8_raw or bf16 (added in #872, with a bf16-only scatter wire); "ptpc" raises. GemmAgOp's fp8 quants are described by the shared scale layouts rather than "exactly as GemmAllReduceOp". - Only the gemm_a2a, gemm_ag, ag_gemm and a2a_gemm constructors refuse a communicator without SDMA queues; for gemm_ar, self_test() is the only guard. - State the prerequisites the page left out: the GEMMs are FlyDSL kernels for gfx950, and FlyDSL is the optional [flydsl] extra. - The quantize_* calls in the examples are not MORI functions; say they stand for the caller's own quantiser. Co-Authored-By: Claude <noreply@anthropic.com>
check_docs_links.py now also checks that every local <img src> in the rendered site exists. MORI-IO-GUIDE's two diagrams were raw <img> tags, which MyST does not copy into the build, so both were 404 on the site and nothing noticed; against a build of the current main the check reports exactly those two. The theme expanded every page's sections in every page's sidebar (~336 entries each). Collapse it to the page titles plus the current page's sections (23-63 entries). Co-Authored-By: Claude <noreply@anthropic.com>
|
GPU CI for
Test groups (the steps that run in those jobs): umbp. Lanes follow the changed files. Adding |
|
Sorry for the close/reopen noise on this PR. I closed and reopened it only to re-trigger its CI on the current main. PR CI there runs just the tests that a PR's changed files need (#970), and a plain re-run would have kept the old workflow, which runs the full suite. It took two rounds, because the first reopen still picked up the old merge commit. Nothing in the PR was changed, and the earlier runs that were still queued were cancelled. CI for this PR now runs only the build and the UMBP unit test (for |
… whole site (#973) * docs: fix the UMBP and CCO READMEs before they go on the site The next commit renders these files on the documentation site from where they live. Fix what in them no longer matches the code, and make their relative links absolute so they work both on GitHub and on the site. - runtime-env-vars.md: drop five variables nothing reads (UMBP_RELEASE_LEASE_MAX_RETRIES, UMBP_SSD_GET_MAX_ATTEMPTS, UMBP_SSD_GET_RETRY_BACKOFF_MS, UMBP_RELEASE_LEASE_TIMEOUT_MS, UMBP_SSD_PREPARE_TIMEOUT_MS) -- they belonged to the SSD lease protocol that was removed. Describe the DRAM and SSD read leases and the auto- flush threshold as the code uses them now (every backend has the flush hook; an SSD backend treats 0 as 1). The embedded DRAM page size defaults to 64 KiB, not 2 MiB. test_umbp_inner.sh does not exist. Do not claim the page lists every UMBP_* variable; it does not. - pure-ssd-mode.md: SSD staging is a page arena (4 GiB by default, capped at the tier) that a batch waits on rather than missing; the slot/size formula and UMBP_SSD_GET_MAX_ATTEMPTS are gone. The master does expire dead clients, after heartbeat_ttl x max_missed_heartbeats. Drop the NO_SLOT / lease-expired troubleshooting row. - kv-indexer-export.md: the KvBlockMetadata argument is block_size. - examples/cco/README.md: pybind11 is a declared build dependency, so the pip path does not need it installed first (the plain-CMake path, which keeps the line, does); say deploy-mori is an agent skill. Co-Authored-By: Claude <noreply@anthropic.com> * docs: organize the site by component, and add a UMBP overview The sidebar grouped pages by kind (user guides, benchmarks, developer guides), which split each component across three or four sections: UMBP's six pages sat in three, none of them an overview. Group by component instead -- Getting Started, MORI-EP, MORI-SHMEM and MORI-IR, MORI-CCO, MORI-IO, MORI-UMBP, Tools, API Reference, Developer Guides -- with short navigation labels. No page is renamed, so every existing URL still works. - Render eight user-facing documents that lived only on GitHub, from where they live (each docs/ page is a MyST include, so the source stays next to its code and is edited there): - UMBP: configuration and environment variables, pure-SSD mode, NUMA placement, KV indexer export, monitoring; - CCO: the FlyDSL/Triton device API, the examples, the benchmarks. - New umbp-overview page: what UMBP is, its architecture, deployment modes, tiers, build, configuration and observability, and where every other UMBP page fits. Each statement was checked against the code. - The home page shows the architecture diagram, and its component table gains a "Start here" column; MORI-IR and MORI-CCL get rows. - The single-node UMBP smoke test is a developer runbook; it moves under Developer Guides. - Remove MORI_IR_INTEGRATION, a three-line page that only linked to the IR README, and an architecture image nothing references. Co-Authored-By: Claude <noreply@anthropic.com> * docs: deploy the whole site, so removed pages stop being served The deploy used keep_files: true to preserve nightly/ on gh-pages, which also kept every page whose source had since been removed or renamed: MORI-GEMM-AR-BENCHMARK.html (folded into the gemm_ar README in #913) is still served, unlinked, along with stale _sources and _downloads files. nightly/ now only holds the page that points at the amd-mori-nightly PyPI project. Build it with the site (docs/_extra, html_extra_path) and deploy with keep_files: false. Against the current gh-pages, a deploy of this tree drops exactly MORI-GEMM-AR-BENCHMARK, MORI_IR_INTEGRATION (removed in the previous commit), their _sources, an old installation.rst.txt, and two _downloads no page references. Co-Authored-By: Claude <noreply@anthropic.com> * docs: give the fused GEMM + collective operators their own section, MORI-FUSED The fused operators are their own modules (mori.ops.gemm_ar, gemm_ag, gemm_a2a, ag_gemm, a2a_gemm), like EP's, and CI already runs them as their own "fused" lane, but the site filed them under MORI-CCO as one page, and their READMEs -- where the designs and measurements live -- were only on GitHub. Give them a section of their own, next to MORI-EP: - the guide (its file name, and so its URL, is unchanged; its title is now "MORI-FUSED: Fused GEMM + Collective Operators"); - one page per operator, rendered from its README where it lives; - the GEMM + all-gather benchmark README. The guide links to the operator pages instead of GitHub, the CCO guide points to the new section, and the home page's component table gets a MORI-FUSED row. The READMEs needed two kinds of link fixes to render: gemm_ag's and its benchmark's relative links (to sibling sources, tests and each other) are now absolute GitHub URLs, which work in both places; and gemm_ar linked four archives by local paths outside the repository, which no reader could open, so those name the archive without a link. Co-Authored-By: Claude <noreply@anthropic.com> * docs: build MORI-FUSED from the guide, not from the operators' READMEs The previous commit rendered each operator's README as its page. Those READMEs are design and measurement records -- gemm_ar's alone is 2230 lines of experiments, negative results and archives -- not user documentation, and no other module puts its code-side README on the site: every guide is written for the site in docs/ and links the README. Split the existing guide instead, which already has one section per operator: - Overview (MORI-CCO-FUSED-OPS-GUIDE, URL unchanged): what the six have in common and the headline numbers; - one page per operator, from its section of the guide (how to call it, its parameters and limits, its measurements), each ending with a link to its README on GitHub; - Tests and benchmarks, from the guide's last section. The text is the guide's; only its cross-references changed, to point across pages. The benchmark README page is dropped, and gemm_ag's README and its benchmark README get their relative links back, since they are no longer rendered. gemm_ar's README keeps the fix for its four links to paths outside the repository, which no reader could open. Co-Authored-By: Claude <noreply@anthropic.com> * docs: give GEMM + reduce-scatter its own page in MORI-FUSED GemmAllReduceOp and GemmReduceScatterOp shared one page because they share a module (mori.ops.gemm_ar), but every other operator has a page of its own. Split it: - GEMM + all-reduce keeps the all-reduce's options (the fp8 wire, schedule="wo_b"), the standalone mxfp8 GEMM and its measurements; - GEMM + reduce-scatter says what it shares (quant options, shapes, the window) and what it does not take: the reduce-scatter constructor has no gather/scatter wire options and no schedule. Its example is the mxfp8 path it was measured on, with the A scales through preshuffle_a_scale, as the operator's tests feed them. Co-Authored-By: Claude <noreply@anthropic.com> * docs: make each MORI-FUSED operator page a full user guide Each operator page was one section of the guide, 50-76 lines with no structure. Rewrite them as user guides in the EP guide's shape, with the same numbered sections on every page: Quick Reference, what it computes, how it works, requirements, the constructor (every parameter with type, default and meaning) and window_bytes_for, calling the operator (every argument's shape, dtype and layout, the return value and its aliasing), one subsection per public method, shapes and limits with the error each raises, choosing settings (what the defaults pick, when to override, the environment variables read), performance, a complete example, testing and benchmarking, troubleshooting. Parameters, defaults, limits and errors were checked against the code; every number in the performance sections is the operator README's (or the previous page's), with its hardware and method, and none was recomputed. Two statements the old pages got wrong are corrected: gemm_ar runs on 2, 4 or 8 ranks, not "2 to 8" (512 threads must divide by P), and the reduce-scatter constructor rejects the all-reduce's wire and schedule arguments with a TypeError. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Xiang.Chen <xiangch@amd.com> Co-authored-by: Claude <noreply@anthropic.com>
* docs: link the README to the documentation site The README is the PyPI long description (pyproject.toml), and PyPI renders relative links as written: on the amd-mori 1.2.5 page its eight relative links -- five guides, the IO benchmark, the IR README and the architecture diagram -- point at paths under pypi.org/project/amd-mori/ that do not exist. The README also never links https://rocm.github.io/mori/ (it appears only in the deprecated nightly note) and covers five of the site's pages. - Add a header with documentation, PyPI and nightly badges and a row of quick links to the site. - Point the documentation table at the published pages and cover the whole site: getting started, CCO and the fused operators, UMBP, the benchmarks, the API reference and the internals, next to the existing five topics. - Make the remaining links absolute: the IR README on GitHub, the architecture diagram on raw.githubusercontent.com. - tools/check_docs_links.py --markdown checks a Markdown file's links into the site against the rendered tree, and the docs workflow runs it on README.md, so a renamed page fails the docs build instead of leaving the README on a 404. The installation section the site includes from the README is unchanged. Co-Authored-By: Claude <noreply@anthropic.com> * docs: move the EP API and backend page under MORI-EP in the README Choosing an EP API and backend only concerns MORI-EP, so it does not belong in the header next to Installation and Quickstart. Drop it from the quick links and from the Getting started row, and link it from the MORI-EP row. Co-Authored-By: Claude <noreply@anthropic.com> * docs: fix EP, SHMEM, IO and profiler pages that no longer match the code Each change below was checked against the code it describes. Snippets and commands that fail as written: - Profiler (quickstart, EP guide, PROFILER, api/profiler): mori.cpp.get_debug_time_buf(op._handle) returns a (pointer, length) tuple, which export_to_perfetto rejects on .is_cuda. Use op.get_debug_time_buf() (and op.get_debug_time_offset()), which return tensors, and say ENABLE_PROFILER=ON must also be set at run time: the JIT only compiles the instrumented kernels then. - The inter-node EP script takes --cmd bench, not --bench. torchrun starts it once per node: it reads the node count from WORLD_SIZE and starts the node's ranks itself, so --nproc_per_node=8 was wrong. - bench_dispatch_combine.py spawns its own ranks; under torchrun x8 it ran 64 of them. Run it with python3. - SHMEM: MPI-communicator init cannot be done from Python (shmem_init_attr only takes a unique ID); show the C++ call instead. - IO benchmark: run build/tests/cpp/bench_engine, not the source path. - RDMA bandwidth page: name tools/profiler/analyze_ep_kernel_trace.py, not two scripts that do not exist. Values and facts: - SHMEM: MORI_SHMEM_MODE takes static_heap / vmm_heap / isolation (other values fall back to static_heap with a warning); the heap defaults to 4 GB / 16 GB; MORI_NUM_QP_PER_PE defaults to 4; IO, CCO and EPv2 do not use shmem. - EP: InterNodeV1LL's AUTO fallback is 256/128/8; manual IntraNode uses per-kernel launch defaults; combine() takes the dispatched weights; add IntraNodeLL (5) to both kernel-type tables; the bindings live in src/pybind/mori.cpp and pybind_ops.cpp, tests in test_dispatch_combine_*. - EPv2 defaults to the HIP backend on gfx125x. - IO: TCP exists only in simulation mode; BackendType also has FABRIC and OFI. Show the two MORI-IO diagrams: MyST does not copy images referenced by raw <img> tags, so both returned 404 on the site. Use Markdown image syntax. Also replace personal paths in the EP benchmark page. Co-Authored-By: Claude <noreply@anthropic.com> * docs: fix UMBP build steps, flags and values that no longer match the code - PD benchmark: the build step ran `UMBP=ON bash build.sh`, but main has never had a build.sh and the switch is BUILD_UMBP. Build with `MORI_PYBUILD_DIR=build_$(hostname) BUILD_UMBP=ON pip install .`, which keeps each node's build in its own directory of the shared checkout -- exactly where the launchers already look for umbp_master. Say that UMBP needs gRPC and Protobuf, without which the build skips it with a warning. - api/umbp and the master-client demo: the CMake option is -DBUILD_UMBP=ON, not -DUMBP=ON. - api/umbp: StandaloneClient was removed. In standalone-process mode the client is StandaloneProcessClient, which forwards the external-KV queries to the node's server. - Tier-management benchmark: the per-peer backend limit is 16 (kMaxBackendsPerPeer), not eight. - runtime-env-vars and the master design note: UMBP_LOG_LEVEL is not read anywhere; MORI_UMBP_LOG_LEVEL takes trace..critical. - Single-node smoke test: drop UMBP_SSD_STAGING_BYTES and the troubleshooting entry built on ssd_staging_buffer_size; neither exists, and SSD staging is now a page arena that needs no sizing (SsdStagingPages). The script reads MORI_PIP_FLAGS and RUN_GSM8K, not MORI_BRANCH / SGLANG_BRANCH. Remove a personal skill path and personal example paths. Co-Authored-By: Claude <noreply@anthropic.com> * docs: correct the fused GEMM + collective guide against the operators - GemmAllReduceOp and GemmReduceScatterOp have no mode= parameter; only the other four operators have mode="split". - GemmAllReduceOp's quant is blockscale, mxfp8, mxfp8_raw or bf16 (added in #872, with a bf16-only scatter wire); "ptpc" raises. GemmAgOp's fp8 quants are described by the shared scale layouts rather than "exactly as GemmAllReduceOp". - Only the gemm_a2a, gemm_ag, ag_gemm and a2a_gemm constructors refuse a communicator without SDMA queues; for gemm_ar, self_test() is the only guard. - State the prerequisites the page left out: the GEMMs are FlyDSL kernels for gfx950, and FlyDSL is the optional [flydsl] extra. - The quantize_* calls in the examples are not MORI functions; say they stand for the caller's own quantiser. Co-Authored-By: Claude <noreply@anthropic.com> * docs: check images in the rendered site, and collapse the sidebar check_docs_links.py now also checks that every local <img src> in the rendered site exists. MORI-IO-GUIDE's two diagrams were raw <img> tags, which MyST does not copy into the build, so both were 404 on the site and nothing noticed; against the current main build the check reports exactly those two. The theme expanded every page's sections in every page's sidebar (~336 entries each). Collapse it to the page titles plus the current page's sections (23-63 entries). Co-Authored-By: Claude <noreply@anthropic.com> * Revert the page fixes; they move to their own PR This PR is the README change. The four commits that fixed site pages against the code (1124a5c, 4e08d82, cb4da05, 0d5847c) are reverted here and proposed separately in #972. Co-Authored-By: Claude <noreply@anthropic.com> * docs: list MORI-FUSED in the README as a module of its own The fused GEMM + collective operators get their own row in the documentation table and their own entry under Applications, next to MORI-EP, instead of sharing MORI-CCO's row. The row links the guide; the per-operator pages come with the site's MORI-FUSED section (#973). Co-Authored-By: Claude <noreply@anthropic.com> * docs: drop the one-line summary under the README title The header keeps the title, the badges and the quick links. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Xiang.Chen <xiangch@amd.com> Co-authored-by: Claude <noreply@anthropic.com>
One conflict, in src/umbp/doc/runtime-env-vars.md, three rows of the pool-client table: - UMBP_EVICTION_MODE: main's row (#779 adds the keys passed to BatchTouch to what a node reports on its heartbeats). - UMBP_DRAM_READ_LEASE_MS, UMBP_SSD_READ_LEASE_MS: this branch's rows. main did not change them, and its code still matches them: both are read once per process through a function-local static in pool_platform.cpp, and UMBP_SSD_PREPARE_TIMEOUT_MS and lease_ttl_ms, which the old rows mention, appear nowhere in the code. tools/check_docs_links.py and docs.yml merged on their own: #968's --markdown README check sits next to this branch's image check. Co-Authored-By: Claude <noreply@anthropic.com>
Brings in #696 and #923. Two conflicts, both from #696: - docs/ep_backends.rst: both sides corrected the default-backend sentence (HIP on gfx125x, FlyDSL elsewhere); take main's wording, so the file matches main. - docs/index.rst: #696 listed its new EPv2_PERF page in the old Benchmarks toctree, which this branch replaced with per-component sections. It goes into MORI-EP, next to the EP benchmark, as "V1 vs V2 inter-node performance"; the other pages of that list already have their sections. Co-Authored-By: Claude <noreply@anthropic.com>
- README: describe MORI-EP as two generations (EPv1 built on MORI-SHMEM, EPv2 built on MORI-CCO), give CCO its full name, list the fused GEMM + collective operators, and link the fused-ops guide. Testing lists the EPv2 tests before EPv1, in the same shape. - MORI-EP-GUIDE: add an EP Generations section (how to choose, EPv2 paths, quick start, restrictions, validation); gfx1250 supports EPv2 only. Link the EPv2 package guide by URL, since Sphinx -W rejects a relative link to a file outside docs/. - MORI-CCO-GUIDE: full name, symmetric memory, and a pointer to the fusion guide. - quickstart, installation, index: point EP selection at the EP guide and update the CCO description. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
9d220e0 to
2727b05
Compare
|
#969 link this issue, update docs for MORI-EPv2 / CCO / CCO-based compute-communication fusion. |
…MEM from the README topics - MORI-IR-GUIDE: new CCO IR section before the SHMEM IR content: layers, the three transports, bitcode lookup, host setup, Triton and FlyDSL examples, requirements, examples and tests. The intro and table of contents cover both. - README: remove the MORI-SHMEM row from the Documentation table. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…CO guides - MORI-SHMEM-GUIDE: new "Device Bitcode and IR" section with the SHMEM bitcode, `mori.ir` API, device function table, Triton and raw-bitcode integration, JIT, examples and tests. - MORI-CCO-GUIDE: new "CCO IR (FlyDSL and Triton)" subsection in section 6. - Remove docs/MORI-IR-GUIDE.md, the MORI-IR rows and toctree entry, and the README MORI-IR topic. Retarget the links in quickstart and the API page. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
jhchouuu
left a comment
There was a problem hiding this comment.
Thanks for pulling the docs together; the new structure reads much better. I checked the changed pages against the code at c7367bc. The site structure holds up: every toctree entry exists with no orphans, relative links and anchors resolve, and keep_files: false only drops pages that no longer exist. The fused operator pages match the code closely (signatures, defaults, alignment rules, error messages and the §9 numbers).
The inline comments mark statements that disagree with the code or mislead, plus internal hosts and IPs that shouldn't go on the public site. Smaller items:
PR description and issue
- The description still lists under "Not in this PR" structural changes this branch now makes (#973 was merged into it, plus later commits). Please update it.
- Please link #969, as asked in the thread.
Content dropped
- The README no longer has the "Test MORI-IR" commands, and nothing links to
python/mori/ir/README.mdany more. - The IR guide now lives in MORI-SHMEM-GUIDE ("Device Bitcode and IR"), so
MORI-IR-GUIDE.htmlandMORI_IR_INTEGRATION.htmlwill 404 after the deploy. A small redirect page in_extrawould keep old links working.
Smaller items
- README.md:37: two "and"s ("..., and MORI-CCO (...), and MORI-FUSED ...").
- MORI-CCO-GUIDE.md:282:
cco.GdaCallerOrderedis not quite "the same": it has nosignal(seepython/mori/ir/triton/cco/handles.py). - MORI-SHMEM-GUIDE.md:302 links to itself (carried over from the IR guide).
python/mori/ops/dispatch_combine_v2/README.md:8still says FlyDSL is the default backend; the EP guide says HIP on gfx125x.- docs/api/profiler.rst:92:
get_cur_device_wall_clock_freq_mhz()returns kHz despite its name (kernel_profilerdivides it by 1e6 to get GHz). - fused-a2a-gemm.md:416: the run line lacks
MORI_ENABLE_SDMA=1, so the example's constructor raises. - fused-gemm-ar.md:492 and fused-gemm-a2a.md:278, :473:
anvil.cpp:237is stale (thehsaKmtCreateQueueExtcall is at line 249 now, and the runtime error prints its own line). Citing justanvil.cppwon't drift. - fused-gemm-a2a.md:127: the a2a test worker sizes the VMM as
(len(runs) + 1) * wb + (256 << 20), not2 * window_bytes_for(...). - fused-gemm-ar.md:106-110: the window list leaves out the
tmpregion (about 28 MiB at that shape); the totals are right. - runtime-env-vars.md:196:
MORI_UMBP_LOG_LEVEL's default is effectivelyerror, not "unset". - design-master-control-plane.md:856, :862 still describe
StandaloneClientandinclude/umbp/local/standalone_client.h, which no longer exist. - docs/conf.py:90: "expanding every page's put ~330 entries" is missing a word ("every page's sections").
Checked against main after merging it: #975, #964 and the anvil changes landed since the last merge. EP: - gfx1250 is EPv2 only: since #975, EPv1 refuses wave32 GPUs. IntraNode's gfx125x launch default goes with it. - The HIP backend also has the gfx125x push combine (fp8_blockwise or FP4, plus the per-call bf16 push on gfx1250). The package README said FlyDSL was the default everywhere and that HIP only gathers. - The quick start's combine passes no weights: the weight fold is for training backward. The package README has no per_rank_vmm section. - README: the backend-parity test and bench_ep.py run under torchrun, and the intranode test's matrix is for gfx942/gfx950. CCO and CCL: - Single-node GDA is gda_connection_type = GDA_CONNECTION_FULL; MORI_CCO_GDA_CONN is only example 03's switch. - GdaCallerOrdered has no signal, and only its own flushes release posts. - mori.ccl no longer binds AllGatherIntoTensor, and HierAllGather crosses nodes over an RDMA ring. Fused operators: - gemm_ar's fp8 gather is an LSA pull by default, its window has a tmp slot, and its op test runs on 2 ranks. bf16 also takes block_m=128. Only bench_a2a_gemm runs every mode by default. - a2a_gemm: mismatched chunks hang or give wrong results, depending on which side has more. The example needs MORI_ENABLE_SDMA=1. - anvil.cpp is cited without a line number. The a2a VMM sizing is the overview's, not the tests'. UMBP: - Single-node script: MORI_PIP_FLAGS never reaches pip, SGLANG_REPO is not used, and the server runs from NFS_BASE whatever MORI_REPO says. - Only clients log the activity summary, and at INFO while the default level is error. Remote puts fail at once on a full SSD staging arena. - StandaloneClient is gone; the design doc now gives CreateUMBPClient's current choices. Site: - MORI-IR-GUIDE.html and MORI_IR_INTEGRATION.html redirect to the SHMEM guide's IR section. The README has the MORI-IR tests again, and the SHMEM guide links python/mori/ir/README.md. - Internal hosts, private IPs, local paths and archive names are replaced with placeholders or dropped. - Smaller fixes: the profiler's clock helper returns kHz, a self-link, a doubled "and", a conf.py comment. python -m sphinx -E -n -W --keep-going -b html passes, and tools/check_docs_links.py reports 0 errors over 3330 local links. Co-Authored-By: Claude <noreply@anthropic.com>
|
Thanks for the careful review. a6ca0cb sits on a merge of current main; #975 and #964 changed a couple of the answers (details inline). From the summary:
The description is updated and links #969. Checks: |
…-IR; add MORI-CCO to the hardware matrix The MORI-CCO column follows the supported GPUs and NICs in MORI-CCO-GUIDE. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The hardware list on the index page and the gfx1250 benchmark note in the JIT v2 design page named an unreleased GPU. Keep the architecture (gfx1250) and drop the model name. Co-Authored-By: Claude <noreply@anthropic.com>
Remove the MORI-CCL row from the index page's component table and the mention of MORI-CCL in the opening paragraph of the SHMEM guide. Co-Authored-By: Claude <noreply@anthropic.com>
EP guide: the EPv2 material sat in an unnumbered "EP Generations" section ahead of the numbered EPv1 sections 1-12, and Build Options and Source Files were unnumbered. Lay it out the way the CCO guide is: an unnumbered Quick Reference, now holding the EPv2 and EPv1 quick starts, then 1. Choosing a Generation, 2. EPv2 (paths, restrictions, validation), 3-14 EPv1, and 15-16 Build Options and Source Files. SHMEM guide: number the four sections after section 8 (9-12) and add the missing Rail-only connections entry to its table of contents. The site's section ids drop the leading number, so existing anchors such as #epv2-paths, #epv2-restrictions and #device-bitcode-and-ir keep working. Co-Authored-By: Claude <noreply@anthropic.com>
Several site pages had examples, commands or values that no longer match the code, and the site's sidebar split each component across several sections. This PR fixes both. I checked each page against the code on
main, and every fix below was verified against the source it describes. The commit messages give the details.Addresses #969 (documentation for MORI-EPv2, CCO and CCO-based compute-communication fusion).
Outside the documentation, the PR changes only one error message in the UMBP master-client demo, the docs link checker, and the docs deploy workflow.
Snippets and commands that fail as written
mori.cpp.get_debug_time_buf(op._handle)returns a(pointer, length)tuple, whichexport_to_perfettorejects on.is_cuda. The pages now useop.get_debug_time_buf()andop.get_debug_time_offset(), which return tensors.ENABLE_PROFILER=ONis also needed at run time, because the JIT compiles the instrumented kernels only then.--cmd bench, not--bench.torchrun --nproc_per_node=1: it reads the node count fromWORLD_SIZEand starts the node's ranks itself. One example used--nproc_per_node=8.bench_dispatch_combine.pyalso starts its own ranks, so undertorchrun ×8it ran 64.shmem_init_attronly takes a unique ID. The page now shows the C++ call.UMBP=ON bash build.sh, butmainhas never had abuild.sh, and the switch isBUILD_UMBP. It now runsMORI_PYBUILD_DIR=build_$(hostname) BUILD_UMBP=ON pip install .. That keeps each node's build in its own directory, which is where the launchers already look forumbp_master.-DBUILD_UMBP=ON, not-DUMBP=ON, in api/umbp and in the master-client demo.build/tests/cpp/bench_engine, not the source path.tools/profiler/analyze_ep_kernel_trace.py.Values and facts
MORI_SHMEM_MODEtakesstatic_heap/vmm_heap/isolation. Other values fall back tostatic_heapwith a warning.MORI_NUM_QP_PER_PEdefaults to 4.combine()takes the dispatched weights.IntraNodeLL(5) was missing from both kernel-type tables.BackendTypealso has FABRIC and OFI.kMaxBackendsPerPeer), not 8.MORI_UMBP_LOG_LEVEL.StandaloneClientwas removed.GemmAllReduceOp/GemmReduceScatterOphave nomode.quanthas noptpcbut does havebf16.quantize_*calls in the examples stand for the caller's own quantiser.Personal paths (
/apps/ditian12, a personal skill path) are replaced.Site structure (#973, merged into this branch)
EP and IR content
MORI-IR-GUIDE.htmlandMORI_IR_INTEGRATION.htmlare redirect pages, so old links still work.Site
<img>tags. MyST does not copy those into the build, so both returned 404 on the site. They now use Markdown image syntax.tools/check_docs_links.pynow also checks that every local<img src>in the rendered site exists.Checks
main,python -m sphinx -E -n -W --keep-going -b html docs docs/_build/htmlpasses (Sphinx 8.1.3, MyST 4.0.1, Python 3.10).tools/check_docs_links.py docs/_build/html --markdown README.md, as CI runs it, checks 3330 local links in 45 pages and 28 README links into the site, with 0 errors.Not in this PR
python/mori/ccl/__init__.pystill assigns the removedAllGatherIntoTensorbinding inside itstry, soDataTypeandsize_ofare never exported. That is a code fix, for a separate PR.🤖 Generated with Claude Code