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,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# build.sh -- configure and build.
|
||||
# build.sh -- configure, build and run the fast tests.
|
||||
#
|
||||
# With no arguments the build configures itself: if hipcc is present and a card can be enumerated,
|
||||
# device kernels are compiled for that card's architecture, and otherwise the host backend is
|
||||
@@ -10,19 +10,29 @@
|
||||
# have. Which of them actually get kernels is decided by the kernel libraries present; each one
|
||||
# declares the architectures it serves.
|
||||
#
|
||||
# ./build.sh configure + build + test
|
||||
# ./build.sh configure + build + the fast tests (ctest -L fast)
|
||||
# ./build.sh -c wipe the build directory first
|
||||
# ./build.sh --no-hip force the host backend even where hipcc exists
|
||||
# ./build.sh --asan AddressSanitizer + UBSan, host backend, in build-asan/
|
||||
# ./build.sh --tsan ThreadSanitizer, host backend, in build-tsan/
|
||||
# ./build.sh --debug CMAKE_BUILD_TYPE=Debug
|
||||
# ./build.sh -b DIR build in DIR instead of build/ (or build-asan/, build-tsan/)
|
||||
#
|
||||
# The other tiers (docs/GUIDE.md §1.3): ctest --test-dir build -LE 'gpu|oot' for everything that
|
||||
# runs without a card, plain ctest --test-dir build for everything.
|
||||
set -e
|
||||
|
||||
BUILD=build
|
||||
BUILD=
|
||||
CLEAN=0
|
||||
SAN=
|
||||
CMAKE_ARGS=""
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-c|--clean) rm -rf "$BUILD" ;;
|
||||
-c|--clean) CLEAN=1 ;;
|
||||
--no-hip) CMAKE_ARGS="$CMAKE_ARGS -DRAD_WITH_HIP=OFF" ;;
|
||||
--asan) CMAKE_ARGS="$CMAKE_ARGS -DRAD_ASAN=ON" ;;
|
||||
--asan) SAN=asan ;;
|
||||
--tsan) SAN=tsan ;;
|
||||
--debug) CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug" ;;
|
||||
-b) shift; BUILD="$1" ;;
|
||||
*) echo "build.sh: unknown option $1" >&2; exit 2 ;;
|
||||
@@ -30,6 +40,17 @@ while [ $# -gt 0 ]; do
|
||||
shift
|
||||
done
|
||||
|
||||
# A sanitised build gets a directory of its own, so it never reconfigures the normal tree. Host
|
||||
# code only: device kernels are not sanitised, and a sanitised engine is not one to serve from.
|
||||
case "$SAN" in
|
||||
asan) CMAKE_ARGS="$CMAKE_ARGS -DRAD_ASAN=ON -DRAD_TSAN=OFF -DRAD_WITH_HIP=OFF"
|
||||
BUILD=${BUILD:-build-asan} ;;
|
||||
tsan) CMAKE_ARGS="$CMAKE_ARGS -DRAD_TSAN=ON -DRAD_ASAN=OFF -DRAD_WITH_HIP=OFF"
|
||||
BUILD=${BUILD:-build-tsan} ;;
|
||||
*) BUILD=${BUILD:-build} ;;
|
||||
esac
|
||||
[ "$CLEAN" = 1 ] && rm -rf "$BUILD"
|
||||
|
||||
cmake -S . -B "$BUILD" -G Ninja $CMAKE_ARGS
|
||||
cmake --build "$BUILD" -j"$(nproc)"
|
||||
ctest --test-dir "$BUILD" --output-on-failure
|
||||
ctest --test-dir "$BUILD" -L '^fast$' -j8 --no-tests=error --output-on-failure
|
||||
Reference in new issue
Block a user