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,6 +1,5 @@
|
||||
# A plugin like any other: built here inside radiance's tree, or on its own against an installed
|
||||
# radiance (`cmake -S arch/qwen35moe_fp8 -B build -DCMAKE_PREFIX_PATH=<radiance prefix>`) -- the same
|
||||
# rad_add_plugin either way (cmake/RadAddPlugin.cmake).
|
||||
# Built in radiance's tree, or standalone against an installed radiance
|
||||
# (`cmake -S arch/qwen35moe_fp8 -B build -DCMAKE_PREFIX_PATH=<radiance prefix>`); see cmake/RadAddPlugin.cmake.
|
||||
if(NOT COMMAND rad_add_plugin)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(qwen35moe_fp8 LANGUAGES CXX)
|
||||
|
||||
@@ -1,21 +1,14 @@
|
||||
/* qwen35moe_fp8 -- Qwen3.5 / 3.6 MoE (35B-A3B), block-scaled FP8 weights and FP8 activations.
|
||||
*
|
||||
* IT IS arch/qwen35_fp8/qwen35_fp8.cpp WITH THE FEED-FORWARD ROUTED, and that is the whole of this
|
||||
* file: three macros and an include. Everything above the FFN -- the gated attention, the gated
|
||||
* delta net, the layer schedule, the rope, the vocabulary edges, the MTP head, every switch and
|
||||
* every bisect -- is identical between the two members of this family, and reading the two
|
||||
* config.json files side by side that is not an approximation. The six places where a routed
|
||||
* feed-forward differs are behind `#if QWEN35_MOE` in that file, each with its own comment.
|
||||
* This is arch/qwen35_fp8/qwen35_fp8.cpp with a routed feed-forward: three macros and an include.
|
||||
* Everything above the FFN (gated attention, gated delta net, layer schedule, rope, vocabulary
|
||||
* edges, MTP head) is identical between the dense and MoE configs. The places where a routed
|
||||
* feed-forward differs are behind `#if QWEN35_MOE` in that file.
|
||||
*
|
||||
* WHY A SECOND TRANSLATION UNIT AT ALL, rather than one plugin that branches on `n_expert`: the
|
||||
* architecture id and the quantisation descriptor are the SELECTION KEY (spec §2.4). A container
|
||||
* converted from `model_type: qwen3_5_moe` reports `qwen35moe`, the dense one reports `qwen35`, and
|
||||
* the loader picks by that pair. One .so cannot claim both ids, and it should not: an operator
|
||||
* looking at what is installed should see two plugins for two architectures.
|
||||
*
|
||||
* The precedent is libr4d's attention dispatches -- one set of kernel templates, three translation
|
||||
* units instantiating them at three geometries. The alternative is a second 1300-line plugin kept
|
||||
* in step by hand.
|
||||
* A second translation unit rather than a branch on `n_expert`, because the architecture id and
|
||||
* quantisation descriptor are the selection key (spec §2.4): a container converted from
|
||||
* `model_type: qwen3_5_moe` reports `qwen35moe`, the dense one `qwen35`, and one .so cannot claim
|
||||
* both ids.
|
||||
*/
|
||||
#define QWEN35_MOE 1
|
||||
#define QWEN35_NS qwen35moe_fp8
|
||||
|
||||
Reference in new issue
Block a user