Archived
radiance 1.7.0
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves every shipped container - Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime - /v1/messages works with Claude Code as it ships (gearwave00001) - a long agent conversation keeps its cached history when the client rewrites its last turn (manueloverride) - a stream's first event goes out with the first token, so llama-benchy measures prefill right - opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42) - four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b) - NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA adapters (baKon) - many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool arguments and the CPU's vision and audio encoders - plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
This commit is contained in:
1 parent
b068190326
commit
1e968f6e1d
739 files changed
+128447
-84632
No files matched your search
+12
-22
@@ -1,23 +1,16 @@
|
||||
#!/bin/sh
|
||||
# ops_doc_check.sh -- hold docs/OPS.md to the schemas the plugins actually declare.
|
||||
#
|
||||
# OPS.md is the authority for the ops it defines, and a document that claims that and is not
|
||||
# checked will drift: the ways it drifts are quiet ones -- a dropped optional operand,
|
||||
# a missing `:inout` marker, a parameter that moved into an operand, a section describing a
|
||||
# parameter no plugin declares. None of those look wrong on the page.
|
||||
#
|
||||
# The cost is that an architecture plugin gets written against the DOCUMENT. An op that lives in a
|
||||
# kernel library and in no schema anyone checked is an op whose caller is guessing, and a document
|
||||
# that is wrong is worse than one that is missing, because it is read instead of the source.
|
||||
# OPS.md is the authority for the ops it defines, and architecture plugins are written against it,
|
||||
# so its drift is caught here: a dropped optional operand, a missing `:inout` marker, a parameter
|
||||
# that moved into an operand, a parameter no plugin declares.
|
||||
#
|
||||
# tools/ops_doc_check.sh docs/OPS.md build/bin/rad-schemas build/radiance_home/kernels/*.so
|
||||
#
|
||||
# A row with a FOURTH column is exempt and its marker is printed -- that is how a proposal stays in
|
||||
# the document without being a lie. Exit 1 on any disagreement; exit 77 -- ctest's
|
||||
# SKIP_RETURN_CODE -- when a plugin will not dump, so a box without a card reports honestly
|
||||
# rather than green. The code and not a " SKIP " line, because ctest evaluates
|
||||
# SKIP_REGULAR_EXPRESSION BEFORE the return code and a skip line would then mask a real
|
||||
# disagreement found later in the same run.
|
||||
# A row with a fourth column (a proposal) is exempt and its marker is printed. Exit 1 on any
|
||||
# disagreement; exit 77 (ctest's SKIP_RETURN_CODE) when a plugin will not dump. A return code, not
|
||||
# a " SKIP " line: ctest evaluates SKIP_REGULAR_EXPRESSION before the return code, so a skip line
|
||||
# would mask a disagreement found later in the same run.
|
||||
set -e
|
||||
[ $# -ge 3 ] || { echo "usage: $0 <docs/OPS.md> <rad-schemas> <plugin.so>..." >&2; exit 2; }
|
||||
doc=$1; schemas=$2; shift 2
|
||||
@@ -37,8 +30,8 @@ function t_param(t, f,o) {
|
||||
f = (t ~ /:f64$/) ? ":f64" : ""; sub(/:(int|str|f64)$/, "", t); return t f o }
|
||||
function t_opd(t, q,w,io) {
|
||||
if (sub(/\?$/, "", t)) q = "?"
|
||||
# A WEIGHT TABLE is a weight operand whose issue names a RUN of handles, so it is annotated
|
||||
# apart: `w`wt in the document. See docs/OPS.md and RAD_WTAB in abi/rad_runtime.h.
|
||||
# A weight table is a weight operand whose issue names a run of handles, annotated apart:
|
||||
# `w`wt in the document. See docs/OPS.md and RAD_WTAB in abi/rad_runtime.h.
|
||||
if (sub(/:wtab$/, "", t)) w = "wt"
|
||||
if (sub(/:weight$/, "", t)) w = "w"
|
||||
if (sub(/:inout$/, "", t)) io = ":inout"
|
||||
@@ -59,7 +52,7 @@ function d_opd(t, n,r,w,io,q) {
|
||||
if (r ~ /:inout/) io = ":inout"
|
||||
if (r ~ /\?/) q = "?"
|
||||
return n w io q }
|
||||
# ---- the dump: FIRST declarer fixes the schema, which is the loader s rule (spec 2.3) -------
|
||||
# ---- the dump: the first declarer fixes the schema, as in the loader (spec 2.3) -------------
|
||||
FILENAME != doc {
|
||||
if ($0 ~ /^ [a-z]/) { op = $1; seen[op] = 1; next }
|
||||
if ($0 ~ /^ params /) { s = ""; for (i = 2; i <= NF; i++) s = s (i > 2 ? " " : "") t_param($i)
|
||||
@@ -79,11 +72,8 @@ FILENAME != doc {
|
||||
os = ""; no = split(oc, oa, /[ \t]+/)
|
||||
for (i = 1; i <= no; i++) { v = d_opd(oa[i]); if (v != "") os = os (os == "" ? "" : " ") v }
|
||||
rows++
|
||||
# An op no loaded plugin declares is not a disagreement, it is a row this CONFIGURATION cannot
|
||||
# check. A host-only build loads the reference library and no device library, so every
|
||||
# device-only op in the vocabulary is undeclared here -- and failing on that would make the
|
||||
# suite red on a machine with no card, which is a supported configuration (spec 18). It is
|
||||
# counted and named, so the coverage is visible rather than assumed.
|
||||
# An op no loaded plugin declares is a row this configuration cannot check, not a
|
||||
# disagreement: a host-only build (spec 18) loads no device library. It is counted and named.
|
||||
if (!(op in P)) { unchecked++; u_list = u_list (u_list == "" ? "" : " ") op; next }
|
||||
ok = 1
|
||||
if (ps != P[op]) { ok = 0; printf "PARAMS %-24s line %d\n doc %s\n real %s\n", op, FNR, ps, P[op] }
|
||||
|
||||
Reference in new issue
Block a user