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:
Deadcode committed 2026-10-16 18:25:18 +02:00
1 parent b068190326
commit 1e968f6e1d
739 files changed
+128447 -84632

No files matched your search

+21 -23
View File
@@ -1,9 +1,8 @@
/* aql.h -- what the AQL backend's translation units share.
/* aql.h -- declarations shared by the AQL backend's translation units.
*
* Three files: aql_code.cpp reads code objects (the offload bundle, the ELF note, the msgpack
* metadata inside it), aql.cpp owns the queues and everything submitted to them, and
* aql_blit.hip holds the copy and fill kernels the backend dispatches for itself. The last one is
* compiled as HIP, so nothing in this header may pull in HSA or anything HIP would object to.
* aql_code.cpp reads code objects (offload bundle, ELF note, msgpack metadata), aql.cpp owns the
* queues and all submission, and aql_blit.hip holds the backend's own copy and fill kernels.
* aql_blit.hip is compiled as HIP, so this header must not pull in HSA.
*/
#pragma once
@@ -17,9 +16,9 @@ namespace aql {
/* ------------------------------------------------------------------ code objects */
/* One kernel argument as the code object's metadata lays it out. `hidden` names the implicit
* arguments the compiler appends after the declared ones; every other kind is an explicit
* parameter, and those map one to one, in order, onto hipLaunchKernel's `kernelParams`. */
/* One kernel argument as laid out in the code object's metadata. `hidden` names the implicit
* arguments the compiler appends; explicit parameters map in order onto hipLaunchKernel's
* `kernelParams`. */
enum class Hidden : uint8_t {
None, /* an explicit parameter */
Pad, /* hidden_none: bytes the compiler reserved and reads nothing from */
@@ -48,13 +47,12 @@ struct KernelMeta {
std::vector<KernelArg> args;
};
/* The code object a card runs, out of a clang offload bundle, or an empty span with `*why` naming
* what the bundle holds and what the card accepts. `isas` is the card's own list of the targets it
* accepts, in the runtime's order of preference: "amdgcn-amd-amdhsa--gfx1036", then the family's
* "amdgcn-amd-amdhsa--gfx10-3-generic", each carrying the modes the card runs in
* ("gfx942:sramecc+:xnack-"). The bundle carries no total length, so it is read entry by entry from
* its own header; a compressed bundle is refused rather than decompressed, because nothing in this
* tree builds one. */
/* Selects the card's code object from a clang offload bundle, or fails with `*why` naming what
* the bundle holds and what the card accepts. `isas` lists the card's accepted targets in the
* runtime's order of preference ("amdgcn-amd-amdhsa--gfx1036", then the family's
* "amdgcn-amd-amdhsa--gfx10-3-generic"), each with its modes ("gfx942:sramecc+:xnack-"). The
* bundle has no total length, so it is walked entry by entry. Compressed bundles are refused;
* nothing in this tree builds one. */
bool bundle_code_object(const void* bundle, const std::vector<std::string>& isas, const void** out,
size_t* out_size, std::string* why);
@@ -64,8 +62,8 @@ bool code_object_kernels(const void* elf, size_t size, std::vector<KernelMeta>*
/* ------------------------------------------------------------------ fence policy
*
* What the next dispatch on this thread has to be fenced at, beyond the agent scope every kernel
* gets. Set by the backend around its own blits and cleared by the dispatch that consumes it. */
* Extra fence scope for the next dispatch on this thread, beyond the agent scope every kernel
* gets. Set by the backend around its own blits; cleared by the dispatch that consumes it. */
enum : uint8_t { kFenceAcquireSystem = 1, kFenceReleaseSystem = 2 };
void set_next_fence(uint8_t f);
@@ -74,17 +72,17 @@ void set_next_fence(uint8_t f);
struct RadCopyRange;
/* The blit kernels' launchers, defined in aql_blit.hip. Each issues exactly one kernel onto
* `stream` through hipLaunchKernel, which the backend intercepts. Alignment is the caller's: the
* 16-byte forms need both addresses and the length 16-byte aligned. */
/* Blit kernel launchers, defined in aql_blit.hip. Each issues one kernel onto `stream` through
* hipLaunchKernel, which the backend intercepts. The caller guarantees alignment: the 16-byte
* forms need both addresses and the length 16-byte aligned. */
extern "C" {
/* `link` when either side is across the link (pinned host memory): one narrow workgroup instead
* of a grid that fills the card; aql_blit.hip says why. */
/* `link`: either side is pinned host memory, so use one narrow workgroup instead of a full grid
* (see aql_blit.hip). */
int rad_aql_blit_copy(void* dst, const void* src, uint64_t bytes, void* stream, bool link = false);
int rad_aql_blit_copy2d(void* dst, uint64_t dpitch, const void* src, uint64_t spitch,
uint64_t width, uint64_t height, void* stream);
int rad_aql_blit_fill(void* dst, int value, uint64_t bytes, void* stream);
/* rad_memcpy_ranges_async's kernel: `prefix` a multiple of sixteen and both bases 16-aligned. */
/* rad_memcpy_ranges_async's kernel: `prefix` a multiple of 16, both bases 16-byte aligned. */
int rad_aql_blit_ranges(void* dst, const void* src, uint64_t prefix, const RadCopyRange* ranges,
int n, void* stream);
}