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

オープン
#22,930 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@laikhtewari がすでに取り組んでいます。

2026年11月26日 から。

  • #22931 @HaoyangPing0324 による — オープン

評価

この issue はまだ評価されていません。

説明

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.
主要言語
Python
スター
15.2k
フォーク
3k
平均マージ
2日 21時間
マージ済み PR(30日)
477

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/TensorRT-LLM のほかの issue

NVIDIA/TensorRT-LLM の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。