[Feature Request] Limit DeepSeek FP8 MLA projection dequantization to locally owned TP heads at load time

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

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

@laikhtewari đang làm issue này rồi.

Từ ngày 26/11/2026.

  • #22931 của @HaoyangPing0324 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

feature request Model optimization
🚀 The feature, motivation and pitch

When an FP8 block-scaled checkpoint uses the BF16 kv_b_proj fallback, every tensor-parallel (TP) rank copies the entire packed projection and its scales to CUDA, dequantizes all heads, then retains its own heads. For DeepSeek-V3 at TP8, a rank owns 16 of 128 heads. Please limit the copy and dequantization to the local head rows, preserving global scale-block alignment for unaligned shards and full replication for attention data parallelism.

Alternatives

No response

Additional context

A single-layer loader benchmark on one NVIDIA H20 exercised TP8 rank 3 with real safetensors slices containing seeded synthetic DeepSeek-V3-shaped weights. The current loader took 1.329 ms (median of 12 warm, CUDA-synchronized runs), passed 16,781,312 input bytes to CUDA, and peaked at 50,335,744 extra allocated GPU bytes. This is a per-rank model-loading measurement.

Before submitting a new issue...
  • Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Ngôn ngữ chính
Python
Star
15.2k
Fork
3k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
477

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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/TensorRT-LLM

Tất cả issue của NVIDIA/TensorRT-LLM

Issue tương tự

Thêm issue về Python

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.