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

+10 -18
View File
@@ -1,15 +1,10 @@
# libref -- every op in the conventional vocabulary, naively and generically (spec §17).
#
# It links radiance::abi AND NOTHING ELSE. A kernel plugin does not link the core: abi/ is the
# whole contract, and a plugin that reached into core/ would stop being substitutable, which is the
# one property the plugin boundary exists to have. What it shares with the engine -- the dtype
# conversions, the parameter readers -- it takes from the ABI headers, which define them inline.
#
# The glob is CONFIGURE_DEPENDS, so a new translation unit in this directory is picked up by the
# next build with no edit here.
# A plugin like any other: built here inside radiance's tree, or on its own against an installed
# radiance (`cmake -S libref -B build -DCMAKE_PREFIX_PATH=<radiance prefix>`) -- the same
# rad_add_plugin either way (cmake/RadAddPlugin.cmake).
# Links radiance::abi and nothing else: abi/ is the whole plugin contract, so the plugin stays
# substitutable. Shared helpers (dtype conversions, parameter readers) come inline from the ABI
# headers.
# Built in radiance's tree, or standalone against an installed radiance
# (`cmake -S libref -B build -DCMAKE_PREFIX_PATH=<radiance prefix>`); see cmake/RadAddPlugin.cmake.
if(NOT COMMAND rad_add_plugin)
cmake_minimum_required(VERSION 3.21)
project(libref LANGUAGES CXX)
@@ -21,16 +16,13 @@ file(GLOB REF_SRC CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
rad_add_plugin(libref kernels SOURCES ${REF_SRC})
# -ffp-contract=off IS A CORRECTNESS FLAG HERE, not a tuning one. rad-kbench compares resolved
# kernels against this plugin to a tolerance, so `a*b + c` has to round twice: a reference that
# contracts into an FMA disagrees with itself between two compilers, and one that reassociates
# cannot be trusted to a tolerance at all (libref/ref_common.h).
# -ffp-contract=off is a correctness flag: rad-kbench compares kernels against this reference to a
# tolerance, so `a*b + c` must round twice and give the same result under any compiler
# (libref/ref_common.h).
target_compile_options(libref PRIVATE -ffp-contract=off)
# OpenMP over the outer dimension only -- one thread owns whole output elements, and there is not
# one reduction() clause in the plugin, so two runs at different thread counts are bit-identical.
# Optional: without it the pragmas are ignored and the plugin is correct and slower, which is the
# right failure mode for a fallback.
# Optional OpenMP over the outer dimension only. One thread owns whole output elements and there is
# no reduction() clause, so results are bit-identical at any thread count.
find_package(OpenMP QUIET)
if(OpenMP_CXX_FOUND)
target_link_libraries(libref PRIVATE OpenMP::OpenMP_CXX)