跳到正文
DEV Community· Super Protocol Dev·· 34 分鐘前AI 評分48

Blackwell GPU 上機密運算模式的推理成本:實測數據

What confidential mode costs on Blackwell GPUs: our inference numbers

AI 導讀

在 Blackwell GPU 上,調校過的機密運算堆疊啟用機密模式後,推理吞吐量仍可達標準模式的 ≥97%,首個 token 時間增加 ≤5%。MedGemma 27B 在單張 B200、128K 上下文的 TEE 模式下達 64.2 tokens/s;微調的 8 GPU 訓練目前以開銷 ≤10% 為目標,並計劃於 2027 年降至 ≤5%。

正文

Super Protocol profile image Super Protocol Dev

The first question engineers ask about confidential computing on GPUs is how much speed it costs. The honest answer used to be "a lot, depending on how you set it up." On current hardware with a tuned stack, it's a few percent.

Our measurements

Same hardware, same model, same load, with confidential mode on and off:

  • ≥97% of standard throughput retained in confidential mode
  • ≤+5% time to first token under identical load
  • 64.2 tokens/s for MedGemma 27B at 128K context on a single B200 in TEE mode

Frontier open models, served in confidential mode:

Model Hardware Concurrent Speed per active user TTFT p95
GPT-OSS 120B 2× B300 16 80+ tokens/s ≤ 0.8 s
Qwen3.5 397B-A17B 8× B300 32 50+ tokens/s ≤ 1.5 s
DeepSeek-R1 671B 8× B300 32 35+ tokens/s ≤ 2.0 s

Method: warm models, 2K input / 512 output tokens, 16–32 concurrent requests, FP4/FP8 on Blackwell. Speed is the median tokens/s per active request; TTFT is p95 including queueing. We treat these as a floor, not a best case.

How that compares with other published numbers

Source Setup Throughput retained
Independent study, default stacks Untuned configurations 60–70%
Independent study, tuned stacks Configured correctly 97–99%
NVIDIA reference, Qwen3.5 397B HGX B300, Intel TDX, SGLang, 4–256 concurrent 92.5–99%
NVIDIA reference, DeepSeek-R1 8× B200, Intel TDX 96.1–98.2%

These aren't a like-for-like race: models, hardware and load differ between sources. The useful takeaway is the gap between the first two rows. An untuned confidential stack can lose 30–40% of its throughput; a tuned one loses a few percent. Most of the "confidential computing is slow" reputation comes from the first case.

Training is a different story

For fine-tuning on 8 GPUs, our target overhead today is ≤10%, going to ≤5% by 2027. If you're planning a confidential training job, budget for that rather than the inference figures above.

Sources and full report

The full report with per-configuration tables is available on request through superprotocol.com/contact.

If you've measured confidential mode on your own stack, what overhead did you see?

來源:DEV Community · dev.to