Repository navigation
docs: organize the site by component, add a UMBP overview, deploy the whole site - #973
Merged
Merged
Conversation
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
…ORI-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 <[email protected]>
yangyuhuiling
pushed a commit
that referenced
this pull request
Nov 10, 2026
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
yangyuhuiling
added a commit
that referenced
this pull request
Nov 11, 2026
* 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> --------- Co-authored-by: Xiang.Chen <[email protected]> Co-authored-by: Claude <[email protected]>
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.
Stacked on #972. This PR's base is #972's branch, because it moves pages that #972 fixes. Once #972 merges it will be retargeted to
main.The site grouped pages by kind (user guides, benchmarks, developer guides). That split each component across three or four sections: UMBP's six pages sat in three, and none of them was an overview. About 12k lines of user-facing documentation lived only on GitHub. The deploy also kept every page whose source had been removed.
Navigation by component
MORI-FUSED, a section of its own
The fused GEMM + collective 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 ownfusedlane. Their docs are now a section of their own, next to MORI-EP, rather than one page under MORI-CCO.The section is built from the existing guide, split along its own sections:
window_bytes_for, the call (every argument and the return value), one subsection per public method, shapes and limits with the error each raises, choosing settings, performance, a complete example, testing and benchmarking, and troubleshooting.mori.ops.gemm_ar.Like every other module's, the operators' READMEs stay on GitHub. They are design and measurement records, not user documentation; gemm_ar's alone is 2230 lines of experiments and negative results. One fix to them is kept: gemm_ar's README linked four archives by local paths outside the repository, which no reader could open, and it now names those archives without a link.
The CCO guide points to the new section. The README row is split in #968.
New on the site
Eight documents that existed only on GitHub are now rendered on the site. Each
docs/page is a MyST{include}of the file where it lives, so the source stays next to its code and is still edited there.src/umbp/doc/runtime-env-vars.mdsrc/umbp/doc/pure-ssd-mode.mdsrc/umbp/doc/numa-tier-placement.mdsrc/umbp/doc/kv-indexer-export.mdexamples/monitoring/README.mdpython/mori/cco/device/README.mdexamples/cco/README.mdbenchmark/cco/README.mdTheir relative links are now absolute, so they work both on GitHub and on the site. What no longer matched the code was fixed first, and each fix was checked against the source:
UMBP_*variable.UMBP_SSD_GET_MAX_ATTEMPTSare gone.NO_SLOTis dropped.block_size.New
umbp-overviewpage: what UMBP is, its architecture (clients, master, peers, transfer engines, local eviction), deployment modes (embedded, distributed, standalone server, simulation), tiers, build, configuration and observability, and where every other UMBP page fits. Each statement was checked against the code.Removed:
MORI_IR_INTEGRATION, a three-line page that only linked to the IR README, and an architecture image that nothing referenced.Deploy the whole site
The deploy used
keep_files: trueto preservenightly/on gh-pages. That also kept every page whose source had been removed. For example,MORI-GEMM-AR-BENCHMARK.html(folded into the gemm_ar README in #913) is still served, unlinked.nightly/now only holds a page that points at theamd-mori-nightlyPyPI project. It is now built with the site (docs/_extra,html_extra_path), and the deploy useskeep_files: false.Compared with the current gh-pages, a deploy of this tree would stop serving exactly these files:
MORI-GEMM-AR-BENCHMARK.htmlandMORI_IR_INTEGRATION.html, with their_sources;_sources/installation.rst.txt;_downloadsthat no page references.Checks
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.pychecks 3277 local links and the images in 43 pages, with 0 errors.nightly/index.htmlin the build is byte-identical to the one on gh-pages.Not in this PR
Content that needs the component owners:
The UMBP design notes stay in
src/umbp/doc/. Several of them describe designs that the code has since moved past.UMBP owners, a look at
umbp-overview.mdand the changes to the published UMBP documents would be welcome.🤖 Generated with Claude Code