Archived
New models: - Fish Audio drama-3: speech with speaker tags and inline direction, voices cloned from reference clips (the `references` field of /v1/audio/speech and the streaming session), two cards - Gemma 4 E2B/E4B (KV-shared layers, per-layer embeddings, clipped vision linears), with NVIDIA-Nemotron-3.5-Bolt-E4B in bf16 with DFlash and vision on one card, and E4B recipes Speed: - MXFP4 GEMMs for one to 64 rows and a tiled prefill GEMM at TN=4 from 1024 rows: the 27B MXFP4 with DFlash2 decodes about 1% faster at c1, 5% at c4 and 14% at c16 - The fp8 and int8 LM heads read their weight once for 65 to 128 rows - A prefill step of one sequence runs in two pieces on a second lane at two ranks (qwen35_fp8, gemma3): a 45K-token prompt on the 27B fp8 in 15.1 s instead of 16.2 s - Gemma 3's fused all-reduce junctions also under a lossy wire - --draft-short-from N: a block drafter runs its shorter block from N decoding sequences on (off by default; with 8 on the 27B MXFP4: c8 +12%, c16 +18%, c64 +32%, c1 unchanged) - --tp-attn-split rows: GLM-5.3-Flash's MLA attention split by rows over the ranks, 18 to 21% faster prefill; lossy, `heads` stays the default - --draft-coupling on: Qwen3.8-Flash-Next's MTP drafter samples its proposals from its reranked top-8 and the target's draw is coupled to it; pays at high temperatures (c1 at T 1.0: 155 -> 178 tok/s), costs at low ones; off by default Features: - Edited prompts on windowed models (Gemma 4) reuse their prefix: periodic window snapshots, and snapshot-backed prefix KV kept across recomputes (an edited tail on Gemma 4 31B: 96 s -> 2.6 s) - DELETE /sessions/<label> and DELETE /sessions?id=<id> forget one stored conversation - --state-cache-dtype f16: the delta-net state cache at half the memory (qwen35 plugins; lossy) Fixes: - A browser's CORS preflight allows DELETE Changes: Plugin ABI 27: out-of-tree plugins must be rebuilt. The environment switches the PRs added are flags now (--tp-attn-split, --draft-coupling, --state-cache-dtype).
50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/* abi_c_test.c -- abi/ as a C plugin sees it.
|
|
*
|
|
* Every header is included in one translation unit compiled as strict C11 (-pedantic-errors, see
|
|
* tests/CMakeLists.txt), so a header that only C++ accepts fails the build. The struct layouts a
|
|
* C compiler gives them, and rad_yarn.h's C definitions, are handed to abi_layout_test.cpp, which
|
|
* compares them with its own. */
|
|
#include "rad_abi.h"
|
|
#include "rad_builder.h"
|
|
#include "rad_device.h"
|
|
#include "rad_encoding.h"
|
|
#include "rad_format.h"
|
|
#include "rad_philox.h"
|
|
#include "rad_planes.h"
|
|
#include "rad_plugin.h"
|
|
#include "rad_quant.h"
|
|
#include "rad_runtime.h"
|
|
#include "rad_sample.h"
|
|
#include "rad_spechub.h"
|
|
#include "rad_types.h"
|
|
#include "rad_yarn.h"
|
|
|
|
#include "abi_layout.h"
|
|
|
|
const AbiRow abi_c_rows[] = {
|
|
#define ABI_STRUCT(T) { #T, "", 0, sizeof(T) },
|
|
#define ABI_FIELD(T, f) { #T, #f, offsetof(T, f), sizeof(((T*)0)->f) },
|
|
#include "abi_layout_rows.h"
|
|
#undef ABI_STRUCT
|
|
#undef ABI_FIELD
|
|
};
|
|
const size_t abi_c_n_rows = sizeof abi_c_rows / sizeof abi_c_rows[0];
|
|
|
|
float abi_c_yarn_frequency(float factor, float low, float high, float magnitude, float inv, int i) {
|
|
RadYarn y;
|
|
y.factor = factor;
|
|
y.low = low;
|
|
y.high = high;
|
|
y.magnitude = magnitude;
|
|
return rad_yarn_frequency(&y, inv, i);
|
|
}
|
|
|
|
int abi_c_yarn_valid(float factor, float low, float high, float magnitude) {
|
|
RadYarn y;
|
|
y.factor = factor;
|
|
y.low = low;
|
|
y.high = high;
|
|
y.magnitude = magnitude;
|
|
return rad_yarn_valid(&y);
|
|
}
|