Skip to content

[Feat] dflash: Enable FA3 draft KV rings and NIXL PD transfer - #48842

Merged
ShangmingCai merged 6 commits into
sgl-project:mainfrom
Jzz1943:pr-dflash-sliding-window-kv
Dec 1, 2026
Merged

ShangmingCai merged 6 commits into
sgl-project:mainfrom
Jzz1943:pr-dflash-sliding-window-kv

Conversation

@Jzz1943

@Jzz1943 Jzz1943 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

With FA3 draft attention and NIXL PD, draft KV storage still scales with target KV capacity even when the draft model uses sliding-window attention. This consumes memory that could otherwise hold target KV.

The original version of this PR implemented a separate draft window pool that overlapped with #49664 and #49665. Since those PRs merged first, this PR has been reworked to reuse their upstream draft KV ring implementation and extend support to FA3 draft attention and NIXL PD.

Modifications

  • Enable FA3 to use the existing paged draft KV ring and shared attention metadata path.
  • Add NIXL transfer of upstream DRAFT_RING and REQUEST_ROW state, including draft KV data and each request's window floor.
  • Validate physical-row counts, buffer layouts, and attention TP compatibility for paged MHA draft rings; reuse upstream allocation and lifecycle management.
  • Reject NIXL draft rings combined with --disaggregation-enable-kv-checksum, since the current checksum does not cover draft ring rows and their window floor.
  • Extend existing regression tests and document usage.

Enable SGLANG_ENABLE_DFLASH_DRAFT_KV_RING=1 on both prefill and decode servers.

Request-private ring-buffer example (window = 4):

draft_request_ring_example_en

Each request owns a ring of physical KV rows. Old rows are reused as the window advances; logical token positions continue increasing. For paged rings, NIXL transfers the request's ring block together with the window floor that determines its logical interpretation.

Accuracy Tests

  • GLM-5.3-Flash + DFlash2, FA3 + NIXL PD, TP4 prefill, decode RadixCache disabled: GSM8K, 1,314 examples × 2 runs: 95.9%, 95.7%.
  • FA3 BF16/FP8 numerical and CUDA Graph regressions passed.

Speed Tests and Profiling

KV allocation on 4 × H200 per server, DFlash block size 8, FP8 target/draft KV, native draft attention window 2,048 tokens:

Metric Prefill (TP4/EP1, memory fraction 0.80) Decode (TP4/EP4, memory fraction 0.86)
Target KV capacity (tokens) 4.75M 5.08M
Target KV memory per GPU 26.51 GiB 28.38 GiB
Draft ring physical allocation (rows) 125,696 356,096
Draft KV memory per GPU ~0.30 GiB ~0.85 GiB

Decode is configured for 132 running requests and 6 PD extra slots. Each request's draft ring has 2,560 positions, including alignment and execution margin; the allocation totals also include reserved/padding rows. Target KV retains full history, and its capacity is not multiplied by TP size.

No material throughput regression was observed in the tested workload: enabling the ring changed output throughput by +0.52% at C8 and −0.48% at C32, with TPOT changes below 0.7%.

A/B uses the same seeded GSP requests: nominal 4K input / 2K output, 96.13% measured cache hit, and 256 requests × 2 runs per configuration. Both configurations simulate a commit length of 6 with real-draft-token; the table reports each configuration's highest-throughput run and its corresponding latency metrics. Accuracy results above use normal acceptance.

Concurrency Draft KV ring Output throughput (tok/s) Mean TTFT (ms) Mean TPOT (ms)
8 Off 2,743.97 388.63 2.726
8 On 2,758.28 395.68 2.708
32 Off 6,342.95 533.46 4.763
32 On 6,312.39 514.67 4.792

Reproduction

Single-node 8 × H200: prefill on GPUs 0–3, decode on GPUs 4–7. Run P, D, and Router in separate terminals using the same Python environment and PR checkout.

The commands below enable draft KV rings. For the baseline, set SGLANG_ENABLE_DFLASH_DRAFT_KV_RING=0 in both P and D terminals. Keep all other settings identical, and stop the previous configuration before starting the next one.

P, D, and Router launch commands (click to expand)

Run these exports in both P and D terminals. Leave speculative-acceptance simulation variables unset for accuracy evaluation:

unset SGLANG_SIMULATE_ACC_LEN SGLANG_SIMULATE_ACC_METHOD SGLANG_SIMULATE_ACC_TOKEN_MODE
export SGLANG_ENABLE_DFLASH_DRAFT_KV_RING=1
export SGLANG_USE_SGL_FA3_KERNEL=1
export SGLANG_DISAGGREGATION_NIXL_BACKEND=UCX
export SGLANG_DISAGG_STAGING_BUFFER=0
export UCX_NET_DEVICES=lo
export UCX_TLS=tcp,cuda_copy,cuda_ipc,self,sm
export NCCL_DEBUG=WARN
export NO_PROXY=localhost,127.0.0.1
export no_proxy="$NO_PROXY"

Prefill:

CUDA_VISIBLE_DEVICES=0,1,2,3 \
sglang serve \
  --model-path /path/to/GLM-5.3-Flash \
  --served-model-name llm \
  --trust-remote-code \
  --tp-size 4 \
  --ep-size 1 \
  --moe-runner-backend deep_gemm \
  --moe-a2a-backend none \
  --kv-cache-dtype fp8_e4m3 \
  --mamba-ssm-dtype bfloat16 \
  --dsa-prefill-backend tilelang \
  --dsa-decode-backend tilelang \
  --linear-attn-prefill-backend triton \
  --linear-attn-decode-backend triton \
  --mem-fraction-static 0.80 \
  --chunked-prefill-size 8192 \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path /path/to/GLM-5.3-Flash-DFlash2 \
  --speculative-dflash-block-size 8 \
  --speculative-draft-attention-backend fa3 \
  --speculative-draft-kv-cache-dtype fp8_e4m3 \
  --disaggregation-mode prefill \
  --disaggregation-transfer-backend nixl \
  --disaggregation-bootstrap-port 8998 \
  --cuda-graph-backend-prefill disabled \
  --enable-request-time-stats-logging \
  --reasoning-parser glm45 \
  --tool-call-parser glm47 \
  --tokenizer-worker-num 8 \
  --host 127.0.0.1 \
  --port 31000 \
  --nccl-port 29500 \
  --random-seed 42

Decode:

CUDA_VISIBLE_DEVICES=4,5,6,7 \
sglang serve \
  --model-path /path/to/GLM-5.3-Flash \
  --served-model-name llm \
  --trust-remote-code \
  --tp-size 4 \
  --ep-size 4 \
  --moe-runner-backend triton \
  --moe-a2a-backend none \
  --kv-cache-dtype fp8_e4m3 \
  --mamba-ssm-dtype bfloat16 \
  --dsa-prefill-backend tilelang \
  --dsa-decode-backend tilelang \
  --linear-attn-prefill-backend triton \
  --linear-attn-decode-backend triton \
  --linear-attn-verify-backend triton \
  --mem-fraction-static 0.86 \
  --max-mamba-cache-size 414 \
  --max-running-requests 132 \
  --cuda-graph-max-bs-decode 132 \
  --cuda-graph-bs-decode 1 2 4 8 16 24 32 48 64 80 88 96 104 112 116 120 128 132 \
  --chunked-prefill-size 8192 \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path /path/to/GLM-5.3-Flash-DFlash2 \
  --speculative-dflash-block-size 8 \
  --speculative-draft-attention-backend fa3 \
  --speculative-draft-kv-cache-dtype fp8_e4m3 \
  --enable-linear-replayssm-spec \
  --disaggregation-mode decode \
  --disaggregation-transfer-backend nixl \
  --disaggregation-decode-extra-slots 6 \
  --disaggregation-decode-polling-interval 1 \
  --enable-request-time-stats-logging \
  --log-level info \
  --reasoning-parser glm45 \
  --tool-call-parser glm47 \
  --tokenizer-worker-num 8 \
  --host 127.0.0.1 \
  --port 31500 \
  --nccl-port 29501 \
  --random-seed 42

Router:

export NO_PROXY=localhost,127.0.0.1
export no_proxy="$NO_PROXY"
python -m sglang_router.launch_router \
  --pd-disaggregation \
  --mini-lb \
  --prefill http://127.0.0.1:31000 8998 \
  --decode http://127.0.0.1:31500 \
  --host 127.0.0.1 \
  --port 8090
GSM8K evaluation command (click to expand)
export NO_PROXY=localhost,127.0.0.1
export no_proxy="$NO_PROXY"
python -u -m sglang.test.run_eval \
  --host 127.0.0.1 \
  --port 8090 \
  --api chat \
  --model llm \
  --eval-name gsm8k \
  --gsm8k-data-path /path/to/gsm8k/test.jsonl \
  --num-examples 1314 \
  --num-shots 5 \
  --num-threads 8 \
  --repeat 2 \
  --max-tokens 4096 \
  --temperature 0 \
  --chat-template-kwargs '{"reasoning_effort":"low"}'

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): 🚫 Run #46587702268
Latest PR Test (Extra): ⊘ Skipped -- add the run-ci-nv-extra label to opt in.
Latest PR Test (AMD ROCm 10): ⚠️ Run #46587705323

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mintlify

mintlify Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 2d257ce.

Approve preview

@Wangyuaneee123

Copy link
Copy Markdown
Contributor

Thanks for the PR and the detailed validation results! Two concerns:

  1. KV checksum indexing for the new draft-window state (code). When both --speculative-draft-window-kv and --disaggregation-enable-kv-checksum are enabled, setup_state_kv_args() registers the draft K/V buffers as DRAFT_WINDOW, but state_indices_for_request() still derives indices only from target storage. For a plain MHA target, it returns None, so prefill hits the state_indices_gpu is not None assertion in KvChecksumComputer.compute() on a non-health-check request. I reproduced this with real GPU MHA pools and the production registration/checksum helpers. For a hybrid target, the target state indices instead get reused for draft token rows, so they do not describe the transferred draft suffix. Please include the complete aligned draft suffix in the per-component checksum indices, using each side's physical rows, or explicitly reject and document this flag combination until it is supported.

  2. Existing DFlash graph-eligibility test fixture (code). The new unconditional self.draft_window_layout read breaks test_scheduler_admission_reaches_the_draft_forward_batch: its fixture constructs the worker with object.__new__() and does not initialize this field. The unchanged test passes when using the base worker module, fails at head with AttributeError before reaching the draft runner, and passes after initializing draft_window_layout=None in the fixture. Please update the fixture to preserve the default-path test and add a case checking graph admission with window KV enabled.

@ShangmingCai ShangmingCai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the detailed write-up and the numbers. I read through the whole diff; the ring math itself looks right to me and I did not find a new correctness bug in the enabled path. However, main now has a per-request DFLASH draft ring (speculative/dflash_draft_ring.py, #49664 / #50740 / #49665 / #51386). It covers MLA + MHA drafts on trtllm_mla / cutedsl_mla / trtllm_mha / fa4 and PD over Mooncake, opt-in with SGLANG_ENABLE_DFLASH_DRAFT_KV_RING=1. What it does not cover is exactly this PR's niche: the fa3 draft backend and NIXL. Merging this as-is gives us two ring layouts, two state types (DRAFT_WINDOW / DRAFT_RING), two flags and two budget charges for one feature. I would much rather see this rebased as "add set_draft_kv_ring to FA3 + DRAFT_RING to NIXL maybe_send_extra + drop the mooncake-only reason in draft_kv_ring_unsupported_reason". Most of the PD plumbing here (bootstrap layout negotiation, is_abort_release_safe gating, slot-reuse events) then goes away because the ring already handles the floor via req_generation.

@@ -162,6 +162,10 @@ class Spec(msgspec.Struct):
resolvable=True,
),
] = None
speculative_draft_window_kv: A[

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overlaps with speculative_dflash_draft_kv_ring on main (resolved from SGLANG_ENABLE_DFLASH_DRAFT_KV_RING). Two user-facing switches for a per-request draft ring is going to confuse people, and the two resolve independently per PD role, which is exactly the mismatch #51386 just fixed. Please fold this into the existing ring resolution instead of a second flag.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Removed --speculative-draft-window-kv and the separate resolution path. Both PD roles now use the existing SGLANG_ENABLE_DFLASH_DRAFT_KV_RING resolution.

)


@dataclass(frozen=True)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New containers go through msgspec.Struct (.claude/rules/no-dataclasses.md), not @dataclass. frozen=True + __post_init__ map directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this dataclass along with the custom layout implementation. The PR now reuses the upstream ring directly, so no replacement container is needed.

@@ -357,6 +359,7 @@ def __init__(
self.kv_layout = args.kv_layout
self.dsv41_spec_layout = get_dsv41_spec_layout(args)
self.spec_kv_layout = get_spec_kv_layout(args)
self.draft_window_kv_layout = getattr(args, "draft_window_kv_layout", None)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KVArgs declares draft_window_kv_layout in this PR, so this should be args.draft_window_kv_layout. The getattr only hides a rename.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this custom field and its getattr access. NIXL now uses the upstream ring state and existing transfer metadata.

@@ -1818,6 +1818,25 @@ def setup_state_kv_args(
if isinstance(owner_view, DeepSeekV4TokenToKVPool)
else None
)

if getattr(draft_token_to_kv_pool, "draft_window_size", None) is not None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

draft_window_size / draft_window_layout are monkey-patched onto the MHATokenToKVPool instance in dflash_worker_v2.py and then sniffed with getattr here, in prefill.py, decode.py and kv_pool_runtime.py. Please declare them on the pool (default None) and do a plain is not None check, or better, pass the layout in explicitly the way setup_state_kv_args takes the ring on main.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Followed the explicit-ring approach you suggested. Removed the custom pool attributes and their layout-detection checks; state registration now follows the upstream setup_state_kv_args ring path.

raise ValueError(
"Draft window KV requires contiguous NHD BF16 or tensor-scaled FP8 storage"
)
pool.draft_window_size = window

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: these two assignments turn the pool into an ad-hoc bag. Declare the attributes on the pool class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed both custom assignments. The worker now uses the existing upstream ring object without adding layout attributes to the KV pool.

@@ -2686,7 +2786,28 @@ def forward_batch_generation(
)

seq_lens_cpu = self._draft_seq_lens_cpu_buf[:bs]
if self.use_compact_draft_cache:
window_layout = self.draft_window_layout

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This read is unconditional, and self.draft_window_layout is only set in __init__ / alloc_memory_pool, so test_dflash_draft_graph_eligibility.py (fixture via object.__new__) now dies with AttributeError before it reaches the draft runner. Already reported above; still open at 7e38b17.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the custom draft_window_layout read and updated the fixture for the current upstream worker. The existing test now covers both full-history and ring modes, including graph admission and preservation of the ring write locations. The regression tests pass.

@@ -3142,7 +3143,29 @@ def maybe_send_extra(
)
dst_lids = dst_state_layer_ids[i] if i < len(dst_state_layer_ids) else []

if st == StateType.MAMBA:
if st == StateType.DRAFT_WINDOW:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main already has DRAFT_RING handling for Mooncake in this dispatch's sibling. If this lands on top of the ring, this branch becomes "NIXL sends DRAFT_RING flat with force_flat=True" and nothing else here is new.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented this using upstream DRAFT_RING and REQUEST_ROW state with force_flat=True, including the request’s window floor. The NIXL path also validates row counts, buffer layouts, and attention TP compatibility for paged MHA rings.


if is_retracted and (
dsv4_needs_rebootstrap(self.token_to_kv_pool_allocator)
or uses_draft_window_kv()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes every decode retraction a full re-prefill under the flag, and backup_kv_cache aborts anything that is not resumable_by_rebootstrap. That is a user-visible behavior change for an opt-in memory optimization. Main's ring instead resets the request's window floor on resume and just loses acceptance for a few steps. Why not do the same here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Removed the custom re-prefill behavior and reused upstream ring generation/floor handling on resume. This PR no longer introduces a separate retraction policy.

Comment thread python/sglang/srt/mem_cache/common.py Outdated
if dsv4_needs_rebootstrap(token_to_kv_pool_allocator):
from sglang.srt.mem_cache.draft_window import uses_draft_window_kv

if dsv4_needs_rebootstrap(token_to_kv_pool_allocator) or uses_draft_window_kv():

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the decode.py comment: with this clause a retracted non-resumable request is aborted rather than backed up. Needs at least a doc line, but I think the floor reset is the right fix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this additional abort condition. Backup and recovery now follow the upstream behavior, including its existing ring-floor handling.

@Jzz1943

Jzz1943 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

@ShangmingCai Thanks for the detailed feedback. I agree that extending the existing upstream draft ring is preferable to maintaining a parallel implementation. I’ll rework this PR around FA3 and NIXL support for DRAFT_RING, reuse the existing configuration and lifecycle handling, and address the test coverage and retraction concerns.

@JustinTong0323

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Nov 26, 2026
@Jzz1943
Jzz1943 force-pushed the pr-dflash-sliding-window-kv branch from 7e38b17 to 38265a9 Compare November 27, 2026 07:12
@Jzz1943
Jzz1943 requested a review from hebiao064 as a code owner November 27, 2026 07:12
@Jzz1943 Jzz1943 changed the title [Feat] dflash: Support sliding-window draft KV pools for NIXL PD [Feat] dflash: Enable FA3 draft KV rings and NIXL PD transfer Nov 27, 2026
@Jzz1943

Jzz1943 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

@ShangmingCai @JustinTong0323
Thanks for the detailed review and guidance. I’ve rebased and reworked the PR to reuse the upstream draft KV ring, focusing on FA3 support and NIXL transfer. The duplicate flag, layout, and custom lifecycle handling have been removed. FA3 numerical/CUDA Graph checks and both GSM8K runs passed. Could you take another look when you have time?

@JustinTong0323

Copy link
Copy Markdown
Collaborator

/approve-ci

@Jzz1943
Jzz1943 requested a review from ShangmingCai November 27, 2026 09:09
@Jzz1943

Jzz1943 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

/approve-ci

@JustinTong0323
CI approval has passed, but check-changes fails during partition computation: base-c-test-2-gpu-gb300 requires 2 shards but contains only 1 test file. Could you help check the CI partition configuration? All downstream tests are skipped because of this failure.

@JustinTong0323

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@JustinTong0323

Copy link
Copy Markdown
Collaborator

/rerun-failed-ci

@Jzz1943

Jzz1943 commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Hi @JustinTong0323 @ShangmingCai , the reworked PR now passes CI, including the required pr-test-finish check. Could you take another look and approve/merge it if everything looks good? Thanks!

@JustinTong0323

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

…ksum guard

test_dflash_draft_graph_eligibility.py was deleted on main by sgl-project#53964 and came
back through the merge; it exercises main's ring routing, not this change.
KvChecksumComputer.for_kv_args already leaves the ring entries out on every
transport, so NIXL needs no extra rejection of --disaggregation-enable-kv-checksum.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@ShangmingCai

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@ShangmingCai

Copy link
Copy Markdown
Collaborator

@claude review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the reworked version of this PR and didn't find any bugs. It adds a new NIXL transfer path for draft-ring state and has CODEOWNERS on both the nixl and speculative directories, so a maintainer should still look at it.

What was reviewed:

  • The new DRAFT_RING/REQUEST_ROW branch in NixlKVManager.maybe_send_extra. It skips empty PP-stage components, checks that MHA attention TP sizes match, and checks index lengths, pointer counts and item lengths. DCP non-owner rows are dropped through draft_kv_ring_row_pairs before the flat send. REQUEST_ROW was also removed from the path that pairs by state TP.
  • The ring gating in dflash_draft_ring.py (fa3 added to the MHA backends, nixl accepted) and the new docs section, which match the code.
  • One mismatch with the description: it says NIXL draft rings are rejected together with --disaggregation-enable-kv-checksum, but nothing in this diff or in draft_kv_ring_unsupported_reason/pd_disaggregation_hook.py adds that check. The docs don't mention it either.
Extended reasoning...

The change adds a NIXL transfer branch for DFlash draft KV ring state in nixl/conn.py, allows fa3 and nixl in the ring gating in dflash_draft_ring.py, rewords one error message, and adds docs and unit tests. It touches no auth, crypto or data-exposure surface. I deferred because the transfer path is new and has CODEOWNERS, and because a CHANGES_REQUESTED review from another reviewer still stands in the timeline. The checksum rejection the description promises is not in the code.

@ShangmingCai ShangmingCai added the bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) label Dec 1, 2026
@JustinTong0323

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@ShangmingCai
ShangmingCai merged commit e45b059 into sgl-project:main Dec 1, 2026
84 of 89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) documentation Improvements or additions to documentation run-ci CI: run the baseline test suite on this PR speculative-decoding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants