radiance 1.4.0

- Qwen3.8-Flash-Next on one card: the heat engine moves 64 experts a step (was 8), its copies and
  the prefill's expert staging run on the card's DMA engines instead of as copy kernels, and at
  decode the next layer's likeliest experts are copied onto the card ahead of its GEMMs. Against
  1.3.0 at --tp 1: prefill +17-20% from 8K tokens up, throughput under load +16-20%
- deploy/compose/flashnext-tp1.yaml: Qwen3.8-Flash-Next on one card and 64 GB of host RAM
  (4096-token prefill steps, 4 sequences, a 301K-token cache)
- #61: --busy-prefill-chunk (default auto): a long prefill leaves the rest of the step to the
  requests decoding beside it and to new arrivals, instead of taking all of it (baKon)
- LiquidAI's LFM2 and LFM2-VL, and d1's /v1/systemone (after zivius's PR #50)
- a startup report: every option with its value and where it came from, the hardware, and what
  on it costs speed with the fix; /diagnostics serves it (behind the API key; without one, only
  to the same machine)
- #69: a GPU memory fault names the buffer and kernel argument behind it and ends the server at
  once (exit status 70), instead of hanging or writing a core of tens of gigabytes
- #64: a card without Resizable BAR is refused at startup, naming what to turn on, instead of
  crashing at the first launch
- the image is built with ROCm 10.1 (the host's amdgpu driver must support it), with ROCm's
  libLLVM rebuilt so the same source compiles to the same kernels every time; a source build
  takes ROCm 10.1 or 7.2
- #71: the image ships curl, jq and a CA bundle, so --model <HF repo id> works in the container,
  and hfget.sh runs under its busybox (baKon)
- --profile-ops shows how long each op's lane sat idle before it; cardclock.py skips an
  integrated GPU instead of stopping
This commit is contained in:
Deadcode committed 2026-10-12 11:46:14 +02:00
1 parent d5b65cddc6
commit dc339b4cd2
153 files changed
+12956 -1067

No files matched your search

+14 -4
View File
@@ -39,8 +39,8 @@
# particular must be proven under a SUSTAINED hot load, not a short test: an offset that passes a
# minute-long selftest can wedge a card twenty minutes into real traffic once it runs at 90 C.
#
# Needs Linux amdgpu with a gpu_metrics v1.3 table (RDNA3 / RDNA4 discrete cards); any other layout
# is refused rather than misread.
# Needs Linux amdgpu with a gpu_metrics v1.3 table (RDNA3 / RDNA4 discrete cards); a card with any
# other layout is skipped rather than misread.
import argparse, glob, json, os, random, re, statistics as st, struct, sys, threading, time, urllib.request
BITS = {0: "PPT0", 1: "PPT1", 2: "PPT2", 3: "PPT3", 4: "SPL", 5: "FPPT", 6: "SPPT", 7: "SPPT_APU",
@@ -107,8 +107,18 @@ def find_cards():
for dev in sorted(glob.glob("/sys/class/drm/card*/device")):
if not re.fullmatch(r"card\d+", dev.split("/")[-2]): continue
if rd(dev + "/vendor") != "0x1002" or not os.path.exists(dev + "/gpu_metrics"): continue
c = Card(dev); out.setdefault(c.bdf, c)
if not out: raise SystemExit("no AMD card with a gpu_metrics table under /sys/class/drm")
c = Card(dev)
# ANOTHER LAYOUT IS ANOTHER KIND OF PART, not a reason to stop: an APU's integrated graphics
# beside the discrete cards reports a v2.x table, and the engine does not serve on it.
try:
size, fr, cr = struct.unpack_from("<HBB", open(dev + "/gpu_metrics", "rb").read(4))
if (fr, cr) != (1, 3) or size != 120:
print(f"{c.bdf}: gpu_metrics v{fr}.{cr} ({size} bytes), not v1.3 -- skipped", file=sys.stderr)
continue
except (OSError, struct.error):
pass
out.setdefault(c.bdf, c)
if not out: raise SystemExit("no AMD card with a gpu_metrics v1.3 table under /sys/class/drm")
return list(out.values())