You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/post_training/modelopt/README.md
+51-9Lines changed: 51 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ knowledge distillation, pruning, speculative decoding, and more.
20
20
21
21
## Major Features
22
22
23
-
-Start from Hugging Face pretrained model checkpoint with on-the-fly conversion to Megatron-LM checkpoint format.
23
+
-Optimize Megatron-Core distributed checkpoints.
24
24
- Support all kinds of model parallelism (TP, EP, ETP, PP).
25
25
- Export to TensorRT-LLM, vLLM, and SGLang ready unified checkpoint.
26
26
@@ -50,13 +50,58 @@ Alternatively, you can install from [source](https://github.com/NVIDIA/Model-Opt
50
50
to try our latest features.
51
51
52
52
> **❗ IMPORTANT:** The first positional argument (e.g. `meta-llama/Llama-3.2-1B-Instruct`) of each script
53
-
> is the config name used to match the supported model config in `conf/`. The pretrained HF checkpoint should
54
-
> be downloaded and provided through `${HF_MODEL_CKPT}`.
53
+
> is the config name used to match the supported model config in `conf/`.
54
+
55
+
### Megatron-Core Checkpoint Prerequisite
56
+
57
+
All examples in this folder, including examples for post-training quantization (PTQ) and quantization-aware training (QAT) or distillation (QAD), require a Megatron-Core
58
+
distributed checkpoint. Direct Hugging Face import in the ModelOpt scripts is deprecated; use the
0 commit comments