Skip to content

TP=2 Flash-Next: SparkQwen engine ports as opt-ins (W4A4 prefill, MTP drafter absorb, queued first chunks) — tracking + results #216

Open

Description

@AzeezIsh

Tracking SparkQwen's recent Qwen3.8-Flash-Next engine work (Enntity/atlas, AGPL-3.0; Enntity/sparkqwen 0.2.0–0.3.3) ported into Atlas as default-off opt-ins and measured at TP=EP=2 on our two-GB10 pair against #198's head (0164cce9c, now on main). Each port is on its own local branch off 0164cce9c. Every ported file/hunk credits the Enntity commit it came from. Results get posted here as they land.

port Enntity commits Atlas switch branch status
W4A4 routed-MoE prefill at the checkpoint's input scales 63221c58e, baa5d56a5 ATLAS_QWEN4EXP_PREFILL_MOE_W4A4=1 perf/fp4l-w4a4-prefill measured: TTFT −7…−8%, small NLL cost, cache-replay defect shared with PREFILL_MOE_BF16 → see #214
MTP drafter KV over verified rows + prompt; dynamic-depth window 166e2b1, e7d4e1a, 73c19db, 18a54e9, 294d2ba, 5f086bd, 23350fb, 1aa8d99 ATLAS_QWEN4EXP_MTP_ABSORB=1, ATLAS_QWEN4EXP_MTP_PREFILL=<rows>, ATLAS_MTP_DEEP_WINDOW / _START perf/fp4l-mtp-absorb gates + decode A/B queued
Queued first chunks behind prefills in flight 5eeeb1a, dc896cc, f1cc7cb, 7fd2412 ATLAS_PREFILL_QUEUE_FIRST_CHUNK=1 perf/prefill-queue-first-chunk measured below

Not ported (and why):

Queued first chunks (ATLAS_PREFILL_QUEUE_FIRST_CHUNK=1)

Scheduler-only. Rank 0 decides and the worker follows the command order, so it needs no startup-parity entry.

Setup: two GB10s, rc16 resident profile, --max-prefill-tokens 16384. Four cold prompts with no shared prefix (26.7K / 19.2K / 15.2K / 15.1K tokens, i.e. 2 / 2 / 1 / 1 chunks), streamed /v1/completions with max 32 tokens, arriving 1 s apart (run twice) and 2 s apart. Same binary, only the switch differs.

TTFT in arrival order (s):

1 s apart (run a) 1 s apart (run b) 2 s apart
off 21.14 / 21.57 / 11.53 / 14.85 21.57 / 22.01 / 11.94 / 15.28 16.97 / 20.98 / 9.58 / 15.59
on 16.68 / 21.59 / 7.04 / 10.38 16.68 / 21.76 / 7.03 / 10.38 12.35 / 20.86 / 5.05 / 10.74
  • The sum of TTFTs drops 19–22% and no request gets slower.
  • The one-chunk prompts still run at admission (as designed), so they finish ahead of the two-chunk ones in both arms.
  • Outputs unchanged: greedy C1 and C8 equal the serial references 8/8; tool probe 21/21; cross-contamination passes.
  • Observed under one fingerprint on one pair (receipts on reiner ~/code/night1027/out/j09-331691e9e/), not a cross-validated claim.

Activity

  1. AzeezIsh commented on Oct 27, 2026

    @AzeezIsh
    ContributorAuthor

    MTP drafter series (absorb + prompt rows + decision window), first gates. Branch perf/fp4l-mtp-absorb @ 392264cb2, binary a175050c. Same pair, same session, one boot per arm. A1 = ATLAS_QWEN4EXP_MTP_ABSORB=1 ATLAS_QWEN4EXP_MTP_PREFILL=16384 ATLAS_MTP_DEEP_WINDOW=16, SparkQwen's shipped set.

    Exactness (draft-only work, so target tokens must not move):

    • Switches off: tokens identical to serial, and acceptance identical to the shipped binary (4.27 vs 4.27).
    • A1: greedy text equals serial at C1, C8, cache warm/hit C4, and behind a 4.4K-token cached prefix at C1/C4 (8/8 each).
    • A1: tool probe 21/21; cross-contamination passes; ssm-state-poisoning-gate 12/12 byte-identical; no drafter warnings in the log.
    • GPU tests: the drafter's KV-only rows match a full decode (Enntity's 1aa8d99 parity test), and the MTP batch test passes.

    Speed (A1 vs shipped 0164cce9c, same session):

    shipped A1
    decode-floor (3 runs), acceptance 84.5 / 84.5 / 84.3, 4.27 94.4 / 94.3 / 94.5, 5.24 (+11.8%)
    sparkDash C1 structured (2 runs) 103.0 / 102.2 124.6 / 124.5 (+21%)
    sparkDash C1 prose 72.2 / 71.7 75.2 / 75.1 (+4.5%)
    sparkDash C1 code 93.2 / 93.1 104.2 / 103.6 (+11.6%)
    sparkDash C1 json 78.0 / 78.5 91.8 / 92.6 (+17.8%)
    sparkDash C8 aggregate, structured / prose / code / json 399 / 267 / 277 / 320 420 / 266 / 282 / 337
    cold TTFT 2K / 8K / 16K / 28K 0.93 / 2.68 / 5.76 / 9.58 s (earlier boot) 0.96 / 2.85 / 5.74 / 9.59 s

    That's in line with SparkQwen's drafter release (+17% code, +22% structured on RigMark). Observed under one fingerprint on one pair; receipts on reiner ~/code/night1027/out/j06-392264cb2/ (fingerprints, sparkDash be35be9f).

  2. AzeezIsh commented on Oct 27, 2026

    @AzeezIsh
    ContributorAuthor

    Drafter series on the MLPerf edge agentic perf leg (2.5 h dataset, 1,007 turns, concurrency 1, temp 0, seed 42; same harness config as #198's Oct 21 run except report_dir; same session, one boot per arm):

    shipped 0164cce9c + MTP_ABSORB=1 MTP_PREFILL=16384 MTP_DEEP_WINDOW=16
    turns completed / failed 1007 / 0 1007 / 0
    duration 4,024 s 3,962 s (−1.6%)
    TPS 39.04 39.65
    TTFT p50 / p90 / p99 361 / 601 / 1,159 ms 360 / 608 / 1,176 ms
    TPOT p50 / p90 / p99 24.2 / 26.4 / 28.2 ms 23.8 / 25.7 / 27.9 ms
    inline action score 0.5871 0.5871 (identical outputs)

    The shipped arm reproduces #198's Oct 21 receipt (4,027 s, TPS 39.02, score 0.5871). On this leg the drafter gain is small (+1.6%) because single-stream agent turns are dominated by prefill and short outputs (median 85 tokens). The +12% (decode-floor) / +5–21% (sparkDash C1) gains apply to longer generations. A 4-concurrent agentic run is queued next.

  3. AzeezIsh commented on Oct 27, 2026

    @AzeezIsh
    ContributorAuthor

    Agentic tool traffic at 4 concurrent trajectories (the MLPerf edge agentic config with target_concurrency / num_workers / max_connections = 4; same session, one boot per arm). The server showed 2–4 sequences decoding at once.

    • P = integ/fp4l-sparkqwen-ports @ 52bd4b11d (drafter series + queued first chunks, zero merge conflicts) with MTP_ABSORB=1 MTP_PREFILL=16384 MTP_DEEP_WINDOW=16 PREFILL_QUEUE_FIRST_CHUNK=1.
    shipped 0164cce9c P
    turns issued / scored / failed 1007 / 1006 / 0 1007 / 1006 / 0
    duration 2,927 s 2,401 s (−18%)
    TPS 49.35 58.90 (+19%)
    TTFT p50 / p90 / p99 791 / 13,252 / 28,556 ms 889 / 10,993 / 23,882 ms
    TPOT p50 / p90 / p99 62.5 / 86.2 / 112.4 ms 52.0 / 73.2 / 91.9 ms
    inline action score 0.5869 0.5873

    At 4 concurrent agents the ports give +19% throughput and a 16–17% shorter TTFT tail. The median TTFT is 12% higher, which is the price of queueing long first chunks behind prefills already in flight. This is the regime where @maplepaladin73 saw #198 ~30% behind Enntity's production build (on their own driver). Single run per arm, observed under one fingerprint (receipts on reiner ~/code/night1027/out/j13-52bd4b11d/). The two arms' transcripts aren't byte-identical at C4 (score 0.5873 vs 0.5869), so this isn't an output-identity claim for concurrent agent traffic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions