arch, data/recipes, deploy: Sage-A1.5's routed trunk with its vision tower, and DFlash2 in place of the MTP head

Sage-A1.5 (InternScience) is Qwen3.5-MoE's routed trunk with the Qwen3.5 vision tower beside it -- a shape qwen35moe_fp8 already declares, but no fixture covered the two together: the MoE fixture had no tower, the VL fixture was dense. arch_test gains q35moe_vl_meta, and checks the tower declares once for the build (not a copy a rank), that it is withheld when no encoder budget is given, and that the routed blocks, the folded shared expert and the MTP layer's own router are still declared beside it.

sage-a1.5-fp8.recipe puts every trunk linear -- attention, the delta net's in- and out-projections, the routed and shared experts of all 40 blocks, and the MTP layer at index 40 -- into block fp8, the head likewise, and keeps the routers, the shared-expert gates, the delta net's parameters, the norms, the embedding and the whole vision tower as the checkpoint ships them. recipe_test reads the shipped file and asserts all of that.

sage-a1.5-fp8-df2.recipe is the same trunk with incoai/Qwen3.6-35B-A3B-DFlash2's tensors in place of the MTP head, which the shared source declares through declare_dflash2. On two R9700s it decodes 392.9 tok/s against 281.6 with the MTP head, at 49.3% acceptance and depth 7; on one card, 231.6 against 168.3.

Compose: sage-a1.5.yaml (two cards, four 32k sessions), sage-a1.5-tp1.yaml (one card, an 8 GiB pinned host pool, one 262,144-token session) and sage-a1.5-df2.yaml. README, DOCKER.md and ARCHITECTURES.md list the containers and the drafter.
This commit is contained in:
Juup authored and StillDeadcode committed 2026-10-22 11:07:23 +02:00
1 parent c4a47673f2
commit ef219c2192
10 files changed
+264

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# Sage-A1.5 with incoai's Qwen3.6-35B-A3B DFlash2 drafter in place of the MTP head, made by
# data/recipes/sage-a1.5-fp8-df2.recipe. The drafter proposes seven tokens in one block pass
# (block 8, acceptance ~49% at depth 7); measured 393 tok/s decode on two cards against 282 with
# MTP. Sampling is the model card's (temp 1.0, top_p 0.95, top_k 20, presence 1.5).
#
# The profile below is the measured one: four 32,768-token sessions, the whole expert plane in
# VRAM. A single 262,144-token session instead is `--max-num-seqs 1 --max-model-len 262144`.
name: radiance-sage-a1.5-df2
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-sage-a1.5-df2
command: >
--model /models/sage-a1.5-fp8-df2.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 4 --max-model-len 32768 --kv-cache-dtype fp8
--num-speculative-tokens auto --max-num-batched-tokens 2048
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
+20
View File
@@ -0,0 +1,20 @@
# Sage-A1.5 on one card: the same block-fp8 container, its experts partly in a pinned host pool
# because 34.5 GiB of weights do not fit 31.9 GiB of VRAM. Measured on a R9700 (warm, 3 runs,
# --max-model-len 131072): 168 tok/s decode and ~11,000 tok/s prefill, against 282 tok/s decode
# and ~11,000 tok/s prefill at --tp 2. Prefill is bandwidth-bound and one card does it; the
# second card buys decode only. This profile: 25.12 GiB of experts in VRAM, 5.79 GiB in the 8
# GiB pool (about 1.5 GiB more than the measured run), the cache holding one full 262,144-token
# session. For two short sessions instead use --max-num-seqs 2 --max-model-len 32768
# --host-pool-mib 6144 (3.80 GiB of experts in the pool). Sampling is the model card's.
name: radiance-sage-a1.5-tp1
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-sage-a1.5-tp1
command: >
--model /models/sage-a1.5-fp8.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 1 --max-num-seqs 1 --max-model-len 262144 --kv-cache-dtype fp8
--num-speculative-tokens 3 --max-num-batched-tokens 2048
--placement expert_tiered --host-pool-mib 8192
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
+21
View File
@@ -0,0 +1,21 @@
# Sage-A1.5, InternScience's Qwen3.5-35B-A3B-VL post-train: FP8 with one scale per 128x128
# block, its routed MTP head and the vision tower, as data/recipes/sage-a1.5-fp8.recipe makes
# it. Sampling is the model card's (temp 1.0, top_p 0.95, top_k 20, presence 1.5). Thinking and
# the opt-in verification mode are switched per request (chat_template_kwargs).
#
# The profile below is the measured one: four 32,768-token sessions, the whole expert plane in
# VRAM. A single 262,144-token session instead is `--max-num-seqs 1 --max-model-len 262144`:
# the planner charges ~1.5 GiB of KV a card for it (1.49 GiB backs 262,176 tokens in the tp2
# boot log). Eight of them are ~12 GiB of KV a card, which does not fit beside 15.5 GiB of
# resident experts and 1.9 GiB of static weights once the arena for eight sequences is charged.
name: radiance-sage-a1.5
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-sage-a1.5
command: >
--model /models/sage-a1.5-fp8.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 4 --max-model-len 32768 --kv-cache-dtype fp8
--num-speculative-tokens 3 --max-num-batched-tokens 2048
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5