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
+8
-12
@@ -1,11 +1,9 @@
|
||||
# libquant -- the built-in quantisers (spec §4.5). Host C++ only.
|
||||
#
|
||||
# It links rad_abi AND NOTHING ELSE, like every plugin: abi/rad_quant.h is the whole contract, and a
|
||||
# quantiser that reached into core/ would stop being substitutable -- which is the property that
|
||||
# lets a user ship a quantiser of their own beside it.
|
||||
# A plugin like any other: built here inside radiance's tree, or on its own against an installed
|
||||
# radiance (`cmake -S libquant -B build -DCMAKE_PREFIX_PATH=<radiance prefix>`) -- the same
|
||||
# rad_add_plugin either way (cmake/RadAddPlugin.cmake).
|
||||
# Links rad_abi and nothing else, like every plugin: abi/rad_quant.h is the whole contract, which
|
||||
# keeps it substitutable by a third-party quantiser.
|
||||
# Built in radiance's tree, or standalone against an installed radiance
|
||||
# (`cmake -S libquant -B build -DCMAKE_PREFIX_PATH=<radiance prefix>`); see cmake/RadAddPlugin.cmake.
|
||||
if(NOT COMMAND rad_add_plugin)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(libquant LANGUAGES CXX)
|
||||
@@ -17,14 +15,12 @@ file(GLOB LQ_SRC CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
|
||||
rad_add_plugin(libquant quantizers SOURCES ${LQ_SRC} INCLUDES ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# -ffp-contract=off because a quantiser's output is a stored file: the same weights converted by two
|
||||
# builds have to give the same bytes, and an FMA the compiler chose in one and not the other moves a
|
||||
# value on a rounding boundary into the next code.
|
||||
# -ffp-contract=off: quantiser output is a stored file, so two builds must produce the same bytes. A
|
||||
# compiler-chosen FMA can move a value on a rounding boundary into the next code.
|
||||
target_compile_options(libquant PRIVATE -ffp-contract=off)
|
||||
|
||||
# OpenMP over rows: GPTQ over a 512-expert layer is N*K^2/2 flops an expert, and round-to-nearest
|
||||
# over a 51 GB table is a long single-threaded loop. Rows are independent in both, so the result
|
||||
# does not depend on the thread count. Optional: without it everything is correct and serial.
|
||||
# Optional OpenMP over rows (GPTQ and round-to-nearest over large tables are long serial loops).
|
||||
# Rows are independent, so the result does not depend on the thread count.
|
||||
find_package(OpenMP QUIET)
|
||||
if(OpenMP_CXX_FOUND)
|
||||
target_link_libraries(libquant PRIVATE OpenMP::OpenMP_CXX)
|
||||
|
||||
Reference in new issue
Block a user