Dense Qwen retains duplicate attention and FP8 input staging across graph capacities

Đang mở
#46 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
performance

Hướng nghiên cứu

Read the experimental branch linked in the issue and compare its scratch-bank capacity views with the upstream path at 1fd1f91. The issue does not name source files or tests to begin with; first trace the attention and FP8 input-staging lifetimes across graph capacities and full/recurrent layers. Done means a separately scoped implementation is chosen and validated on current main, with the stated regression and memory checks.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:memory area:preparation model:qwen3.8-27b performance triage:verify-for-closure
Measured problem

The attention change at prefill 4096 is not GPU-qualified.

Dense Qwen constructor allocations retain full-attention and TensorFP8 input intermediates separately across graph capacities and across full/recurrent layers. Sharing the CUDA graph pool alone does not remove those allocations. This leaves less memory for native prefix cache and contributes to 32GB preparation pressure with the official target plus a parallel drafter.

The focused MLP issue (https://github.com/NVIDIA/flare-local-inference/issues/45) handles four MLP buffers independently. This issue records the remaining attention/input-staging work and offers a separate experimental implementation: https://github.com/Maxrio9/flare-local-inference/tree/qwen38-dense-memory-experiments-20261023, the combined MLP/attention follow-up to the DFlash2 proposal branch. It is not an independently rebased current-main fix.

Evidence

On RTX PRO4500 Blackwell/SM120/32GB, official nvidia/Qwen3.8-27B-NVFP4@482ca0f plus calibrated maurienne-ai/Qwen3.8-27B-DFlash2-NVFP4-RTNcal@bd7a934, C4/64K/prefill1024, 2GiB reserve:

  • native fixed mappings approximately22.23→22.07GiB;
  • final cache budget7.02GiB, KV-token ceiling192512→196608, snapshot slots30→31.

These limits share a physical memory budget and are not simultaneous per-request guarantees. Retained allocation totals are not measured live-memory peaks. No throughput improvement is claimed for this storage change.

The implementation binds seven disjoint BF16 attention fields and FP8 input staging through capacity views in the existing prefill/decode Scratch banks. Full and recurrent target layers consume input staging serially. Persistent caches, verification records and draft windows remain independent. Other recipes' context projections or overlapping branches must not inherit these aliases without their own lifetime analysis.

Validation boundary and requested direction

On the original experimental stack: two CPU storage/tail tests;69 state/ring,21 MTP and one compiled-scoring GPU check per memory stage;C4 inactive-hole coverage. Target full-vocabulary logits at18 fixed prefixes/512-row compiled graphs were bit-exact before/after. A64K/prefill1024 exported package passed native long-prefix reuse and capacity checks; a131072-context package passed130800prompt+128generated tokens. These are not current-main rebase results.

The qualified4096 package contains only the earlier MLP change. The optional22-prefix/1024-row comparison needs its corrected reference fixture rerun. Full other-model/shared-path regressions, FP8 draft KV and embedding offload are not claimed.

Would you prefer a separate attention/staging PR after the DFlash2 integration, or an ordinary-dense-only port first? Upstream was checked at1fd1f91; equivalent paths in other recipes need individual lifetime review rather than a general switch.

Authored and scratch-lifetime-reviewed by Codex (GPT-6), AI-assisted. Claude's review is limited to accounting, tests and reporting, not restricted Opus scratch-design work.

Ngôn ngữ chính
Rust
Star
800
Fork
106
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/hyperflare-inference

Tất cả issue của NVIDIA/hyperflare-inference

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.