Repository navigation
docs/hrx: the GPU's matrix units (WMMA rates and layouts on gfx1151) - #160
Merged
Merged
Conversation
From AMD's matrix instruction calculator (2ef9189): f16/bf16/iu8 at 1024 per WGP per clock, iu4 at 2048; lane replication in wave32; the peak this box's 20 WGPs at 2.9 GHz give, marked as computed, not measured. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Docs7 for 1bit-monster/engine
Commit |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 24, 2026
…its upstream bound is now the hold window plus the resume (#3484) engine#3478 (found while closing #3350). A held turn waits inside Lemonade's load path with NO bytes on the wire until the hold ends (Router::wait_for_slot_clearance, third_party/lemonade src/cpp/server/router.cpp:783/:829; the hold is taken by 1bit-heavy, POST /api/v1/hold), and the appliance page's fetch has no timeout of its own (os/v3/puppy/embed/opt/1bit/webapp/index.html:232). So 1bit-webapp-proxy's upstream socket timeout was the only deadline a held turn had: 900 s (os/v3/puppy/embed/usr/local/bin/1bit-webapp-proxy:91), while 1bit-heavy's default hold window is 3600 s (os/v3/puppy/embed/usr/local/bin/1bit-heavy: maxs=3600, --help "(default 3600)"). A hold between 15 and 60 minutes cut the page's turn - the socket timeout lands in the proxy's OSError arm, so the page got 502 "Lemonade is not answering" - while the hold was healthy. - the proxy's bound is now UPSTREAM_TIMEOUT = HOLD_WINDOW + RESUME_GRACE = 3600 + 900 = 4500 s: the window a held turn can wait (Lemonade ends the hold at max_seconds even if the wrapper is alive, heavy_work_hold.cpp:120-130) plus the reload of the captured models before the waiting request runs (measured first loads: 93 s stick / 154 s disk, docs/releases.md). 900 s was the proxy's previous whole-request bound, so nothing that fitted inside one socket timeout before gets a shorter one after a hold. - ONEBIT_WEBAPP_UPSTREAM_TIMEOUT overrides the bound (the test drives it in seconds; an operator can raise it). - tests/webapp_proxy_hold_timeout_test.sh: the window in 1bit-heavy and the proxy's HOLD_WINDOW are one number (CI fails if they drift), the bound is window + resume, and a fake silent (held) Lemonade is forwarded inside the bound and answers 502 AT the bound, not at the stall. CMake row webapp_proxy_hold_timeout. - os/v3/puppy/README.md's 1bit-heavy row now carries the contract - a held turn waits up to 3600 s, the page's proxy 4500 s - and the streaming caveat: a held streaming turn is silent, there is no ": held" keepalive yet (the Lemonade-fork half of #3478, not this lane). Not done here: the ": held" keepalive needs the Lemonade fork plus a pin bump. A hold taken with --max-seconds above 3600 can still outlast the page's proxy; that is the operator opting past the appliance's default window, and the README says so. Evidence: $ sh tests/webapp_proxy_hold_timeout_test.sh # branch ok 1bit-heavy carries the hold window (maxs=3600) ok the proxy's hold window (3600 s) is 1bit-heavy's --max-seconds default (3600 s) ok the upstream timeout (4500 s) is the window plus the resume (3600 + 900) ok the resume does not go below the 900 s the socket allowed before (900 s) ok the bound outlasts a whole default hold (4500 s > 3600 s) ok a silent (held) upstream inside the bound is forwarded: HTTP 200 after 1 s, {"answered": true} ok a stall past the bound answers 502 at the bound (HTTP 502 after 1 s for a 3 s stall, bound 1 s) webapp_proxy_hold_timeout_test: ok Control: the same test file in a throwaway worktree at origin/main (ad10a17), scripts untouched, test copied in: ok 1bit-heavy carries the hold window (maxs=3600) FAIL the proxy derives its bound from the hold window (HOLD_WINDOW/RESUME_GRACE/UPSTREAM_TIMEOUT: none) - it still hardcodes 900 s, shorter than the 3600 s hold window ok a silent (held) upstream inside the bound is forwarded: HTTP 200 after 1 s, {"answered": true} FAIL a stall past the bound answers 502 at the bound (HTTP 200 after 3 s for a 3 s stall, bound 1 s) webapp_proxy_hold_timeout_test: FAIL (exit 1) $ ctest --test-dir build -R 'webapp_proxy_hold_timeout|heavy_wrapper|release_check_hold_cycle' --output-on-failure 1/3 Test #80: heavy_wrapper .................... Passed 31.18 sec 2/3 Test #81: webapp_proxy_hold_timeout ........ Passed 2.39 sec 3/3 Test #160: release_check_hold_cycle ......... Passed 0.02 sec 100% tests passed, 0 tests failed out of 3 Gate: scripts/pre-pr-checks.sh --tree-only --base origin/main pre-pr-checks: all 15 check(s) green, 3 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only) Refs #3478. Co-authored-by: bong-water-water-bong <[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.
Adds a section to
docs/hrx.mdon the Radeon 8060S's matrix instructions:2ef9189), with the command that prints them;rocminfo, and the theoretical peak they give (~59 TFLOPS f16, ~119 TOPS int4), marked as computed, not measured;Documentation only.
🤖 Generated with Claude Code