Archived
A third build of the qwen35 source, as qwen35moe_fp8 is, claiming (qwen35, w8a8_fwht128). Behind QWEN35_W8A8: check_format's method and fmt, a probe of the first delta-net input projection that learns the trunk is rotated int8 before the activations are declared (and refuses one that is not, plain int8 included: the descriptor names the rotation), and the plugin identity; the four trunk activations then carry int8 code pairs. It declines imported checkpoints (RAD_ARCH_SERVES_IMPORTS(0)): as the family's second quantised plugin it would make every imported Qwen3.8 release (Quark, ParoQuant, GPTQ, NVFP4) refuse, so those stay with qwen35_fp8. arch_test: every trunk linear an i8a8h GEMM behind its own quantiser at one and two ranks, the refusals (no int8 trunk, a plain one, another format, no fmt), lint clean with the MTP head and with DFlash2, and two ArchCases (pinned graphs; libref's vocabulary serves it at one rank). shipped_plugins_test lists the new key and holds each shipped family to at most one plugin that takes imports. ARCHITECTURES.md and GUIDE.md list the plugin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
1.1 KiB
C++
20 lines
1.1 KiB
C++
/* qwen35_w8a8 -- Qwen3.5 / 3.6 / 3.8 dense with an int8 trunk: i8 weights with a bf16 scale a 128
|
|
* of K, rotated by a 128-wide Hadamard, against int8 activations quantised under the same rotation.
|
|
*
|
|
* This is arch/qwen35_fp8/qwen35_fp8.cpp built again, as qwen35moe_fp8 is: the same gated
|
|
* attention, gated delta net, MLP, layer schedule, rope, vocabulary edges, drafters and vision
|
|
* tower. A linear's weight encoding makes it int8 (arch/common/rad_fp8.h: LinearFP8):
|
|
* `i8*bf16[1x128]/fwht128` is gemm_nt_q at i8a8h behind had_quant_act_i8g, each linear quantising
|
|
* its own input from the bf16 plane its producer already writes. The places this build differs are
|
|
* behind `#if QWEN35_W8A8` in that file.
|
|
*
|
|
* A plugin of its own rather than qwen35_fp8 serving any encoding it is handed, because the
|
|
* quantisation descriptor is half of the selection key (spec §2.4): a container converted with
|
|
* data/recipes/q38-27b-w8a8-df2.recipe says `w8a8_fwht128`.
|
|
*/
|
|
#define QWEN35_W8A8 1
|
|
#define QWEN35_NS qwen35_w8a8
|
|
#define QWEN35_ARCH_ID "qwen35"
|
|
|
|
#include "../qwen35_fp8/qwen35_fp8.cpp"
|