Skip to content

Commit 2b97d0a

Browse files
committed
updated KB
1 parent 307b421 commit 2b97d0a

4 files changed

Lines changed: 73 additions & 5 deletions

File tree

knowledgebase/skills/skill-fp8-serving-eval.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: skill
44
title: FP8 Serving Evaluation
55
type: ""
66
category: precision
7-
summary: Validate mature FP8 deployment branches before investing in custom tensor-core kernel work on Hopper or Blackwell.
7+
summary: Validate packaged or synthesized FP8 deployment branches before investing in custom tensor-core kernel work on Hopper or Blackwell.
88
support_level: stable
99
reliability: ""
1010
review_status: ""
@@ -61,7 +61,9 @@ required_tools:
6161
- search_knowledge_base
6262
steps:
6363
- measure the higher-precision control path first
64-
- enable the strongest runtime-supported FP8 branch for the same benchmark suite
64+
- if the model already has a packaged FP8 checkpoint or runtime flavor, test that first
65+
- if no packaged FP8 checkpoint exists, try synthesizing one with TensorRT Model Optimizer, Transformer Engine, torchao float8 flows, or llm-compressor using the same benchmark suite
66+
- record calibration data, quantization configuration, and any higher-precision fallback modules
6567
- track quality drift and throughput together before any custom kernel work
6668
- only move beyond the FP8 path if the hot operator remains dominant after the runtime baseline
6769
verification:
@@ -73,6 +75,7 @@ benchmark_rubric:
7375
- store the exact runtime and calibration configuration with the result
7476
failure_recovery:
7577
- fallback to bf16 or fp16 for unstable layers
78+
- fallback to weight-only or mixed-precision quantization if full FP8 activation paths regress quality or fail in the runtime
7679
- switch to AWQ or KV-cache optimization if the remaining bottleneck is mostly memory traffic
7780
artifacts_to_save:
7881
- benchmark_json
@@ -87,6 +90,9 @@ reference_source_ids:
8790
- nvidia-transformer-engine
8891
- tensorrt-llm-docs
8992
- nvidia-blackwell-cutlass
93+
- nvidia-tensorrt-model-optimizer
94+
- llm-compressor
95+
- torchao
9096
backend: ""
9197
runtimes:
9298
- tensorrt-llm
@@ -102,7 +108,9 @@ path: ""
102108
## Steps
103109

104110
- measure the higher-precision control path first
105-
- enable the strongest runtime-supported FP8 branch for the same benchmark suite
111+
- if the model already has a packaged FP8 checkpoint or runtime flavor, test that first
112+
- if no packaged FP8 checkpoint exists, try synthesizing one with TensorRT Model Optimizer, Transformer Engine, torchao float8 flows, or llm-compressor using the same benchmark suite
113+
- record calibration data, quantization configuration, and any higher-precision fallback modules
106114
- track quality drift and throughput together before any custom kernel work
107115
- only move beyond the FP8 path if the hot operator remains dominant after the runtime baseline
108116

@@ -120,4 +128,5 @@ path: ""
120128
## Failure Recovery
121129

122130
- fallback to bf16 or fp16 for unstable layers
131+
- fallback to weight-only or mixed-precision quantization if full FP8 activation paths regress quality or fail in the runtime
123132
- switch to AWQ or KV-cache optimization if the remaining bottleneck is mostly memory traffic
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
id: llm-compressor
3+
kind: source
4+
title: LLM Compressor
5+
type: official-doc
6+
category: quantization
7+
summary: vLLM's LLM Compressor supports FP8, FP4, INT8, and INT4 quantization, calibration, and model export flows for deployment on vLLM-compatible runtimes.
8+
reliability: official
9+
review_status: reviewed
10+
url: https://docs.vllm.ai/usage/quantization/llm_compressor/
11+
tags:
12+
- vllm
13+
- llm-compressor
14+
- quantization
15+
- fp8
16+
- fp4
17+
- int4
18+
---
19+
20+
## Key Features
21+
22+
- One-shot quantization and calibration for vLLM-ready model artifacts
23+
- FP8, FP4, INT8, and INT4 support with runtime-oriented compression schemes
24+
- Useful when a model does not ship a packaged FP8 checkpoint but the target runtime can consume a converted artifact
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
id: nvidia-tensorrt-model-optimizer
3+
kind: source
4+
title: NVIDIA TensorRT Model Optimizer
5+
type: official-doc
6+
category: quantization
7+
summary: NVIDIA Model Optimizer supports post-training quantization and checkpoint conversion flows, including FP8 export paths for TensorRT-LLM and related serving stacks.
8+
reliability: official
9+
review_status: reviewed
10+
url: https://github.com/NVIDIA/TensorRT-Model-Optimizer
11+
tags:
12+
- nvidia
13+
- modelopt
14+
- tensorrt-llm
15+
- quantization
16+
- fp8
17+
- nvfp4
18+
---
19+
20+
## Key Features
21+
22+
- Offline quantization from bf16 or fp16 checkpoints when no packaged low-precision checkpoint exists
23+
- Calibration and export flows for TensorRT-LLM deployment
24+
- FP8, FP4, and other post-training quantization recipes on NVIDIA GPU stacks
25+
- Useful as a search branch before custom kernel work on Hopper or Blackwell

knowledgebase/strategies/fp8-transformer-engine.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ source_ids:
2424
- nvidia-h100
2525
- nvidia-blackwell-architecture
2626
- tensorrt-llm-docs
27+
- nvidia-tensorrt-model-optimizer
28+
- llm-compressor
29+
- nvidia-transformer-engine
30+
- torchao
2731
workloads:
2832
- prefill
2933
- decode
@@ -53,7 +57,9 @@ preconditions:
5357
- the model tolerates FP8 calibration and validation
5458
- runtime stack supports the chosen FP8 serving path
5559
actions:
56-
- benchmark an FP8 path in TensorRT-LLM or an equivalent mature serving runtime first
60+
- benchmark a packaged FP8 path in TensorRT-LLM, vLLM, SGLang, or an equivalent mature serving runtime first when one already exists
61+
- if no packaged FP8 checkpoint exists, synthesize one with NVIDIA Model Optimizer, Transformer Engine, torchao float8 flows, or llm-compressor when the runtime and GPU support it
62+
- run calibration, save the quantization recipe, and validate output quality before spending time on custom kernels
5763
- validate accuracy before investing in more custom kernel work
5864
- only hand-write kernels after the FP8 baseline is known
5965
metrics:
@@ -63,6 +69,7 @@ metrics:
6369
tradeoffs:
6470
- calibration quality matters
6571
- some model components may need fallback higher-precision paths
72+
- FP8 conversion can improve throughput and memory use, but unsupported operators or unstable layers may force mixed-precision fallbacks
6673
preferred_backends: []
6774
required_tools: []
6875
steps: []
@@ -83,14 +90,17 @@ path: ""
8390

8491
## Actions
8592

86-
- benchmark an FP8 path in TensorRT-LLM or an equivalent mature serving runtime first
93+
- benchmark a packaged FP8 path in TensorRT-LLM, vLLM, SGLang, or an equivalent mature serving runtime first when one already exists
94+
- if no packaged FP8 checkpoint exists, synthesize one with NVIDIA Model Optimizer, Transformer Engine, torchao float8 flows, or llm-compressor when the runtime and GPU support it
95+
- run calibration, save the quantization recipe, and validate output quality before spending time on custom kernels
8796
- validate accuracy before investing in more custom kernel work
8897
- only hand-write kernels after the FP8 baseline is known
8998

9099
## Tradeoffs
91100

92101
- calibration quality matters
93102
- some model components may need fallback higher-precision paths
103+
- FP8 conversion can improve throughput and memory use, but unsupported operators or unstable layers may force mixed-precision fallbacks
94104

95105
## Metrics
96106

0 commit comments

Comments
 (0)