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
@@ -1,9 +1,7 @@
|
||||
# radiance-config.cmake -- what `find_package(radiance)` gets.
|
||||
#
|
||||
# This file exists so that a plugin can be built from a repository that is not this one, against
|
||||
# the installed ABI headers rather than a copy of abi/ taken out of a checkout, and installed into
|
||||
# the $RADIANCE_HOME the engine's loader scans. A plugin boundary that can only be crossed from
|
||||
# inside the tree is not a plugin boundary; it is a build layout.
|
||||
# Lets a plugin in another repository build against the installed ABI headers and install into
|
||||
# the $RADIANCE_HOME the engine's loader scans.
|
||||
#
|
||||
# What a consumer gets:
|
||||
# radiance::abi the header-only ABI target -- abi/ plus RAD_DEFAULT_HOME,
|
||||
@@ -21,49 +19,39 @@
|
||||
# target (arch/common/ is installed under ${RADIANCE_INCLUDE_DIR}/arch)
|
||||
# RAD_GPU_TARGETS the offload architectures a device plugin is compiled for: the
|
||||
# consumer's -DRAD_GPU_TARGETS when given, else the ones radiance was
|
||||
# built for. The engine itself runs on every AMD GPU family, so a
|
||||
# plugin for a card the engine's build machine does not have is
|
||||
# ordinary.
|
||||
# built for. The engine itself runs on every AMD GPU family.
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
# The ABI version is not written here; it is read out of abi/rad_abi.h at radiance's
|
||||
# configure time and carried through. One number, in the header the loader compares against, so a
|
||||
# bump cannot be half-applied.
|
||||
# Read from abi/rad_abi.h at radiance's configure time, so the header stays the single source.
|
||||
set(RADIANCE_ABI_VERSION @RAD_ABI_VERSION@)
|
||||
|
||||
set_and_check(RADIANCE_INCLUDE_DIR "@PACKAGE_RAD_INCLUDE_RELDIR@")
|
||||
|
||||
# $RADIANCE_HOME, as a CACHE PATH so that a consumer building a plugin for an installed engine can
|
||||
# see and override where it is going in ccmake, and so that `cmake --install` on their project puts
|
||||
# the .so where this engine's loader will scan for it. Computed from PACKAGE_PREFIX_DIR rather than
|
||||
# baked absolute, so a relocated prefix still answers correctly.
|
||||
# $RADIANCE_HOME as a CACHE PATH, so a consumer can override it. Relative to PACKAGE_PREFIX_DIR, so
|
||||
# a relocated prefix still resolves.
|
||||
set(RADIANCE_HOME "@PACKAGE_RAD_HOME_RELDIR@" CACHE PATH
|
||||
"\$RADIANCE_HOME of the radiance installation found by find_package(radiance)")
|
||||
set(RADIANCE_KERNELS_DIR "${RADIANCE_HOME}/kernels")
|
||||
set(RADIANCE_ARCHITECTURES_DIR "${RADIANCE_HOME}/architectures")
|
||||
set(RADIANCE_QUANTIZERS_DIR "${RADIANCE_HOME}/quantizers")
|
||||
# Where rad_add_plugin installs: under the home of the engine this consumer built against, which is
|
||||
# the one whose loader will scan it. A consumer installing somewhere else -- a home of its own on
|
||||
# $RADIANCE_HOME's search path, say -- sets this.
|
||||
# Where rad_add_plugin installs: the home of the engine this consumer built against. Override to
|
||||
# install elsewhere.
|
||||
set(RAD_PLUGIN_INSTALL_HOME "${RADIANCE_HOME}" CACHE PATH
|
||||
"the \$RADIANCE_HOME rad_add_plugin installs plugins under")
|
||||
|
||||
# The imported targets: radiance::abi, and whatever else the export set carries.
|
||||
# The imported targets, including radiance::abi.
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/radianceTargets.cmake")
|
||||
|
||||
# The device-build facts rad_add_plugin needs, recorded at radiance's configure time and replayed
|
||||
# here under the same names the in-tree build uses -- one function body, one set of variable names.
|
||||
# A plugin compiled for a different gfx target than the engine that dlopens it is not a link error
|
||||
# and not a load error: it is a kernel that launches and computes garbage, so the target list is
|
||||
# carried across rather than re-detected.
|
||||
# Device-build facts rad_add_plugin needs, recorded at radiance's configure time under the in-tree
|
||||
# names. The target list is carried over, not re-detected: a plugin built for the wrong gfx target
|
||||
# loads and launches, then computes garbage.
|
||||
set(RAD_HIP_FOUND @RAD_HIP_FOUND@)
|
||||
if(NOT DEFINED RAD_GPU_TARGETS)
|
||||
set(RAD_GPU_TARGETS "@RAD_GPU_TARGETS@")
|
||||
endif()
|
||||
# The HIP runtime and headers as radiance found them, and where this machine has them when the
|
||||
# recorded path is not here -- a consumer building against an installed radiance on another
|
||||
# machine, or inside a container whose ROCm sits elsewhere.
|
||||
# The HIP runtime and headers as radiance found them, or this machine's copies when the recorded
|
||||
# path does not exist (another machine, or a container with ROCm elsewhere).
|
||||
set(RAD_HIP_RUNTIME "@RAD_HIP_RUNTIME@")
|
||||
if(RAD_HIP_FOUND)
|
||||
if(NOT EXISTS "${RAD_HIP_RUNTIME}")
|
||||
@@ -81,24 +69,17 @@ if(RAD_HIP_FOUND)
|
||||
set_property(TARGET radiance::abi APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${_rad_rocm_inc}")
|
||||
set_property(TARGET radiance::abi APPEND PROPERTY INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_rad_rocm_inc}")
|
||||
endif()
|
||||
# The HIP compiler's two omissions the tree fixes for itself (CMakeLists.txt): no depfile, so no
|
||||
# header is a dependency of a .hip object, and no system-include flag. Only where unset.
|
||||
if(NOT CMAKE_DEPFILE_FLAGS_HIP)
|
||||
set(CMAKE_DEPFILE_FLAGS_HIP "-MD -MT <DEP_TARGET> -MF <DEP_FILE>")
|
||||
endif()
|
||||
if(NOT CMAKE_INCLUDE_SYSTEM_FLAG_HIP)
|
||||
set(CMAKE_INCLUDE_SYSTEM_FLAG_HIP "-isystem ")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# The build-tree $RADIANCE_HOME for the CONSUMER's build, so that a freshly built out-of-tree plugin
|
||||
# can be exercised with RADIANCE_HOME=<their build dir>/radiance_home before it is installed --
|
||||
# which is how an in-tree plugin is tested, and there is no reason the boundary should make that
|
||||
# harder. Not forced: a consumer who has already set it keeps their own.
|
||||
# The consumer's build-tree $RADIANCE_HOME, so a plugin can be tested with
|
||||
# RADIANCE_HOME=<build dir>/radiance_home before install. A value already set is kept.
|
||||
if(NOT DEFINED RAD_PLUGIN_OUT)
|
||||
set(RAD_PLUGIN_OUT ${CMAKE_BINARY_DIR}/radiance_home)
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/RadAddPlugin.cmake")
|
||||
if(RAD_HIP_FOUND)
|
||||
rad_hip_rule_fixes()
|
||||
endif()
|
||||
|
||||
check_required_components(radiance)
|
||||
Reference in new issue
Block a user