Skip to content

Commit d0df3fa

Browse files
authored
Merge branch 'main' into feat/deepseek-v4-inference-multinode
2 parents 3483ef7 + 618c6c8 commit d0df3fa

148 files changed

Lines changed: 340 additions & 11528 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/ISSUE_TEMPLATE/model_support_request.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ body:
2727
description: Pick the closest fit for the requested model.
2828
options:
2929
- Dense decoder-only (e.g. Llama, Qwen, Gemma, Mistral, Nemotron)
30-
- MoE decoder-only (e.g. DeepSeek V2/V3, OLMoE, Qwen3-MoE, MiniMax-M2)
30+
- MoE decoder-only (e.g. DeepSeek V3, OLMoE, Qwen3-MoE, MiniMax-M2)
3131
- VLM / multimodal (e.g. Qwen-VL, Gemma-VL, Nemotron-VL)
32-
- SSM / hybrid (e.g. Mamba, Nemotron-H)
32+
- SSM / hybrid (e.g. Mamba, Nemotron 3)
3333
- Encoder-decoder (e.g. T5)
3434
- Other / unsure
3535
validations:

‎README.md‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -221,34 +221,28 @@ For a deeper dive into conversion design and advanced usage, see the [models REA
221221

222222
Megatron Bridge provides out-of-the-box bridges and training recipes for a wide range of models, built on top of base model architectures from [Megatron Core](https://github.com/NVIDIA/Megatron-LM/tree/main/megatron/core). Refer to the [models directory](https://github.com/NVIDIA-NeMo/Megatron-Bridge/tree/main/src/megatron/bridge/models) for the full list of model bridges.
223223

224-
> **Deprecation notice:** Gemma 1 (2B/7B), Gemma 2 (2B/9B/27B), Llama 2,
225-
> Mistral 7B, Mistral Small 3 24B, Nemotron H v1 (4B/8B/47B/56B), and the
226-
> legacy `NemotronForCausalLM` bridge previously documented for Nemotron-4 340B
227-
> are no longer actively maintained or tested against current upstream
228-
> checkpoints. They will be removed in Megatron Bridge 0.7.0.
229-
230224
| Family | Supported variants |
231225
|----------------|--------------------|
232226
| [**BAGEL**](docs/models/bagel/bagel.md) | BAGEL-7B-MoT (requires the tested MCore `dev` revision and `bagel` extra) |
233227
| [**Bailing**](docs/models/bailing/index.md) | Ling 2.0 / Ling MoE V2 (Bailing) |
234228
| [**BERT**](docs/models/bert/index.md) | Megatron-Style BERT (`MegatronBertForMaskedLM`) |
235-
| [**DeepSeek**](docs/models/deepseek/index.md) | DeepSeek V2 / V2 Lite (deprecated), DeepSeek V3, DeepSeek V4 / V4 Flash |
229+
| [**DeepSeek**](docs/models/deepseek/index.md) | DeepSeek V3, DeepSeek V4 / V4 Flash |
236230
| [**Diffusion**](https://github.com/NVIDIA-NeMo/Megatron-Bridge/tree/main/src/megatron/bridge/diffusion/models) | FLUX, LLaDA 1.5, Nemotron-Labs Diffusion, WAN |
237231
| **Ernie** | [Ernie 4.5 MoE](https://github.com/NVIDIA-NeMo/Megatron-Bridge/tree/main/src/megatron/bridge/models/ernie), [Ernie 4.5 VL MoE](https://github.com/NVIDIA-NeMo/Megatron-Bridge/tree/main/src/megatron/bridge/models/ernie_vl) |
238232
| [**EXAONE**](docs/models/exaone/exaone.md) | EXAONE 4.0, EXAONE 4.5 VL, K-EXAONE MoE |
239233
| [**Falcon**](docs/models/falcon/index.md) | Falcon H1 |
240-
| [**Gemma**](docs/models/gemma/index.md) | Gemma / Gemma 2 (deprecated), Gemma 3, Gemma 3-VL, Gemma 4 (26B-A4B MoE / 31B dense), Gemma 4-VL (26B-A4B MoE) |
234+
| [**Gemma**](docs/models/gemma/index.md) | Gemma 3, Gemma 3-VL, Gemma 4 (26B-A4B MoE / 31B dense), Gemma 4-VL (26B-A4B MoE) |
241235
| [**GLM**](docs/models/glm/index.md) | GLM-4.5 / GLM-4.7 / GLM-4.7-Flash, GLM-4.5V, GLM-5 / GLM-5.1 / GLM-5.2 / [GLM-5.3](docs/models/glm/glm5-2.md) |
242236
| [**GPT-OSS**](docs/models/gpt_oss/index.md) | GPT-oss |
243237
| [**HY V3**](https://huggingface.co/tencent/Hy3-preview-Base) | Hy3 preview-Base (HF → Megatron checkpoint conversion) |
244238
| [**Kimi**](docs/models/kimi/index.md) | Kimi K2, Kimi-K2.5-VL, Kimi K3 |
245-
| [**Llama**](docs/models/llama/index.md) | Llama 2 (deprecated), Llama 3 / 3.1 / 3.2 / 3.3 |
239+
| [**Llama**](docs/models/llama/index.md) | Llama 3 / 3.1 / 3.2 / 3.3 |
246240
| [**MiniMax**](docs/models/minimax/index.md) | MiniMax-M2 / M2.5 / M2.7, MiniMax-M3 |
247-
| [**Mistral**](docs/models/mistral/index.md) | Mistral 7B / Small 3 24B (deprecated), Ministral 3 (3B/8B/14B) |
241+
| [**Mistral**](docs/models/mistral/index.md) | Ministral 3 (3B/8B/14B) |
248242
| [**Xiaomi-MiMo**](docs/models/mimo/index.md) | Xiaomi-MiMo, MiMo-V2-Flash |
249243
| [**Moonlight**](docs/models/moonlight/index.md) | Moonlight |
250244
| [**Muse Glimmer**](docs/models/muse_glimmer/muse-glimmer.md) | Muse Glimmer 30B |
251-
| [**Nemotron**](docs/models/nemotron/index.md) | Nemotron H v1 (deprecated), Nemotron Nano v2 (deprecated), Nemotron-3 Nano, Nemotron-3 Super, Nemotron-3 Ultra, Llama Nemotron (deprecated), Nemotron Nano v2 VL (deprecated), Nemotron-3 Nano Omni |
245+
| [**Nemotron**](docs/models/nemotron/index.md) | Nemotron-3 Nano, Nemotron-3 Super, Nemotron-3 Ultra, Nemotron-3 Nano Omni |
252246
| [**OLMoE**](docs/models/olmoe/index.md) | OLMoE |
253247
| [**Qwen**](docs/models/qwen/index.md) | Qwen2 / Qwen2.5, Qwen3, Qwen3-MoE, Qwen3 Next, Qwen3.5 (dense/MoE), Qwen2.5-VL, Qwen3-VL, Qwen3.5-VL, Qwen3.6-VL, Qwen2 Audio, Qwen2.5-Omni, Qwen3-Omni, Qwen3-ASR |
254248
| [**Sarvam**](docs/models/sarvam/index.md) | Sarvam |

‎docs/bridge-guide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ from megatron.bridge import AutoBridge
6363

6464
# Load with specific settings
6565
bridge = AutoBridge.from_hf_pretrained(
66-
"meta-llama/Llama-2-7b-hf",
66+
"meta-llama/Meta-Llama-3-8B",
6767
torch_dtype=torch.float16,
6868
device_map="auto",
6969
trust_remote_code=True,

‎docs/fern/versions/_nav_order.yml‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,15 @@
88
"./versions/nightly/pages/modelopt/quantization.mdx": 1
99
"./versions/nightly/pages/models/README.mdx": 1
1010
"./versions/nightly/pages/models/bailing/ling-2.mdx": 1
11-
"./versions/nightly/pages/models/deepseek/deepseek-v2.mdx": 1
1211
"./versions/nightly/pages/models/falcon/falcon-h1.mdx": 1
13-
"./versions/nightly/pages/models/gemma/gemma.mdx": 1
1412
"./versions/nightly/pages/models/glm/glm45.mdx": 1
1513
"./versions/nightly/pages/models/gpt_oss/gpt-oss-20b.mdx": 1
1614
"./versions/nightly/pages/models/gpt_oss/gpt-oss-120b.mdx": 2
1715
"./versions/nightly/pages/models/kimi/kimi-k2.mdx": 1
18-
"./versions/nightly/pages/models/llama/llama2.mdx": 1
1916
"./versions/nightly/pages/models/mimo/mimo.mdx": 1
2017
"./versions/nightly/pages/models/minimax/minimax-m2.mdx": 1
2118
"./versions/nightly/pages/models/minimax/minimax-m3.mdx": 2
22-
"./versions/nightly/pages/models/mistral/mistral.mdx": 1
2319
"./versions/nightly/pages/models/moonlight/moonlight.mdx": 1
24-
"./versions/nightly/pages/models/nemotron/llama-nemotron.mdx": 1
2520
"./versions/nightly/pages/models/olmoe/olmoe.mdx": 1
2621
"./versions/nightly/pages/models/qwen/qwen3-235b-a22b.mdx": 1
2722
"./versions/nightly/pages/models/qwen/qwen3-30b-a3b.mdx": 2
@@ -37,12 +32,10 @@
3732
"./versions/nightly/pages/modelopt/distillation.mdx": 2
3833
"./versions/nightly/pages/models/bailing/index.mdx": 2
3934
"./versions/nightly/pages/models/deepseek/deepseek-v3.mdx": 2
40-
"./versions/nightly/pages/models/gemma/gemma2.mdx": 2
4135
"./versions/nightly/pages/models/glm/glm-45v.mdx": 2
4236
"./versions/nightly/pages/models/kimi/kimi-k25-vl.mdx": 2
4337
"./versions/nightly/pages/models/llama/llama3.mdx": 2
4438
"./versions/nightly/pages/models/mistral/ministral3.mdx": 2
45-
"./versions/nightly/pages/models/nemotron/nemotronh.mdx": 2
4639
"./versions/nightly/pages/models/qwen/qwen3-moe.mdx": 4
4740
"./versions/nightly/pages/performance-guide.mdx": 2
4841
"./versions/nightly/pages/performance-summary-archive.mdx": 2
@@ -75,8 +68,7 @@
7568
"./versions/nightly/pages/megatron-lm-to-megatron-bridge.mdx": 5
7669
"./versions/nightly/pages/models/gemma/gemma4-vl.mdx": 5
7770
"./versions/nightly/pages/models/gemma/index.mdx": 5
78-
"./versions/nightly/pages/models/nemotron/nemotron3.5-lightning.mdx": 8
79-
"./versions/nightly/pages/models/nemotron/nemotron-nano-v2-vl.mdx": 11
71+
"./versions/nightly/pages/models/nemotron/nemotron3.5-lightning.mdx": 6
8072
"./versions/nightly/pages/models/qwen/qwen3-vl.mdx": 7
8173
"./versions/nightly/pages/releases/known-issues.mdx": 5
8274
"./versions/nightly/pages/training/optimizer-scheduler.mdx": 5

‎docs/fern/versions/nightly.yml‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ navigation:
4646
path: ./nightly/pages/models/bailing/ling-2.mdx
4747
section: Bailing
4848
- contents:
49-
- page: DeepSeek V2
50-
path: ./nightly/pages/models/deepseek/deepseek-v2.mdx
5149
- page: DeepSeek V3
5250
path: ./nightly/pages/models/deepseek/deepseek-v3.mdx
5351
- page: DeepSeek V4
@@ -58,10 +56,6 @@ navigation:
5856
path: ./nightly/pages/models/falcon/falcon-h1.mdx
5957
section: Falcon
6058
- contents:
61-
- page: Gemma
62-
path: ./nightly/pages/models/gemma/gemma.mdx
63-
- page: Gemma 2
64-
path: ./nightly/pages/models/gemma/gemma2.mdx
6559
- page: Gemma 3
6660
path: ./nightly/pages/models/gemma/gemma3.mdx
6761
- page: Gemma 3 VL (Vision-Language)
@@ -96,8 +90,6 @@ navigation:
9690
path: ./nightly/pages/models/kimi/kimi-k3.mdx
9791
section: Kimi
9892
- contents:
99-
- page: Llama 2
100-
path: ./nightly/pages/models/llama/llama2.mdx
10193
- page: Llama 3
10294
path: ./nightly/pages/models/llama/llama3.mdx
10395
section: Llama
@@ -108,8 +100,6 @@ navigation:
108100
path: ./nightly/pages/models/minimax/minimax-m3.mdx
109101
section: MiniMax
110102
- contents:
111-
- page: Mistral
112-
path: ./nightly/pages/models/mistral/mistral.mdx
113103
- page: Ministral 3
114104
path: ./nightly/pages/models/mistral/ministral3.mdx
115105
section: Mistral
@@ -122,10 +112,6 @@ navigation:
122112
path: ./nightly/pages/models/moonlight/moonlight.mdx
123113
section: Moonlight
124114
- contents:
125-
- page: Llama Nemotron
126-
path: ./nightly/pages/models/nemotron/llama-nemotron.mdx
127-
- page: Nemotron H and Nemotron Nano v2
128-
path: ./nightly/pages/models/nemotron/nemotronh.mdx
129115
- page: Nemotron 3 Nano 30B-A3B
130116
path: ./nightly/pages/models/nemotron/nemotron3-nano.mdx
131117
- page: Nemotron 3 Nano 4B
@@ -139,8 +125,6 @@ navigation:
139125
- page: Nemotron 3.5 Lightning
140126
path: ./nightly/pages/models/nemotron/nemotron3.5-lightning.mdx
141127
# Super VL guides remain in GitHub, but are excluded from publication.
142-
- page: Nemotron Nano V2 VL
143-
path: ./nightly/pages/models/nemotron/nemotron-nano-v2-vl.mdx
144128
section: Nemotron
145129
- contents:
146130
- page: OLMoE

‎docs/fern/versions/nightly/pages/bridge-guide.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ from megatron.bridge import AutoBridge
6363

6464
# Load with specific settings
6565
bridge = AutoBridge.from_hf_pretrained(
66-
"meta-llama/Llama-2-7b-hf",
66+
"meta-llama/Meta-Llama-3-8B",
6767
torch_dtype=torch.float16,
6868
device_map="auto",
6969
trust_remote_code=True,

‎docs/fern/versions/nightly/pages/index.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,18 @@ Megatron Bridge provides out-of-the-box bridges and training recipes for a wide
206206
| Family | Supported variants |
207207
|----------------|--------------------|
208208
| [**Bailing**](docs/models/bailing/index.md) | Ling 2.0 (Bailing) |
209-
| [**DeepSeek**](docs/models/deepseek/index.md) | DeepSeek V2 / V2 Lite, DeepSeek V3, DeepSeek V4 |
209+
| [**DeepSeek**](docs/models/deepseek/index.md) | DeepSeek V3, DeepSeek V4 |
210210
| [**Falcon**](docs/models/falcon/index.md) | Falcon H1 |
211-
| [**Gemma**](docs/models/gemma/index.md) | Gemma / Gemma 2, Gemma 3, Gemma 3-VL, Gemma 4-VL (26B-A4B MoE) |
211+
| [**Gemma**](docs/models/gemma/index.md) | Gemma 3, Gemma 3-VL, Gemma 4-VL (26B-A4B MoE) |
212212
| [**GLM**](docs/models/glm/index.md) | GLM-4.5 / 4.7 / 4.7-Flash, GLM-4.5V, GLM-5 / 5.1 |
213213
| [**GPT-OSS**](docs/models/gpt_oss/index.md) | GPT-oss |
214214
| [**Kimi**](docs/models/kimi/index.md) | Kimi K2, Kimi-K2.5-VL |
215-
| [**Llama**](docs/models/llama/index.md) | Llama 2, Llama 3 / 3.1 / 3.2 / 3.3 |
215+
| [**Llama**](docs/models/llama/index.md) | Llama 3 / 3.1 / 3.2 / 3.3 |
216216
| [**MiniMax**](docs/models/minimax/index.md) | MiniMax-M2 / M2.5 / M2.7 |
217-
| [**Mistral**](docs/models/mistral/index.md) | Mistral, Ministral 3 (3B/8B/14B) |
217+
| [**Mistral**](docs/models/mistral/index.md) | Ministral 3 (3B/8B/14B) |
218218
| [**Xiaomi-MiMo**](docs/models/mimo/index.md) | Xiaomi-MiMo |
219219
| [**Moonlight**](docs/models/moonlight/index.md) | Moonlight |
220-
| [**Nemotron**](docs/models/nemotron/index.md) | Nemotron H, Nemotron Nano v2, Nemotron-3 Nano, Nemotron-3 Super, Llama Nemotron, Nemotron Nano v2 VL, Nemotron-3 Nano Omni |
220+
| [**Nemotron**](docs/models/nemotron/index.md) | Nemotron-3 Nano, Nemotron-3 Super, Nemotron-3 Nano Omni |
221221
| [**OLMoE**](docs/models/olmoe/index.md) | OLMoE |
222222
| [**Qwen**](docs/models/qwen/index.md) | Qwen2 / Qwen2.5, Qwen3, Qwen3-MoE, Qwen3 Next, Qwen2.5-VL, Qwen3-VL, Qwen3.5-VL, Qwen3.6-VL, Qwen2 Audio, Qwen2.5-Omni, Qwen3-Omni, Qwen3-ASR |
223223
| [**Sarvam**](docs/models/sarvam/index.md) | Sarvam |

‎docs/fern/versions/nightly/pages/modelopt/quantization.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ and ModelOpt scale suffixes, so a pattern can target the logical parameter name
188188
| Llama-3.2-1B | ✅ | ✅ |
189189
| Qwen3-8B | ✅ | ✅ |
190190
| Qwen3-30B-A3B | ✅ | ✅ |
191-
| Nemotron-H-8B-Base-8K | ✅ | ✅ |
192191
| Qwen3-VL-8B-Instruct | ✅ | ✅ |
193192
| Qwen3-VL-30B-A3B-Instruct | ✅ | ✅ |
194193

Lines changed: 4 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,7 @@
1-
# DeepSeek V2
1+
# DeepSeek V2 support removed
22

3-
> **Deprecation notice:** DeepSeek V2 and DeepSeek V2 Lite support is no
4-
> longer actively maintained or tested against current upstream checkpoints and
5-
> will be removed in Megatron Bridge 0.7.0.
3+
{/* Keep this notice for previews that use navigation from main. */}
64

7-
[DeepSeek-V2](https://github.com/deepseek-ai/DeepSeek-V2) is a Mixture-of-Experts (MoE) language model that uses innovative Multi-head Latent Attention (MLA) for efficient inference and DeepSeekMoE architecture for economical training and inference. The model achieves performance comparable to GPT-4 while using significantly fewer activated parameters. More information is available in the companion paper ["DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model"](https://arxiv.org/abs/2405.04434).
5+
Support for DeepSeek V2 and V2 Lite has been removed from Megatron Bridge. The former conversion and training instructions no longer apply.
86

9-
DeepSeek V2 models are supported via the Bridge system with auto-detected configuration and weight mapping.
10-
11-
## Available Models
12-
13-
Megatron Bridge supports the following DeepSeek V2 model variants:
14-
15-
- **DeepSeek-V2**: 236B parameters (21B activated per token)
16-
- **DeepSeek-V2-Lite**: 16B parameters (2.4B activated per token)
17-
18-
Both models support pretraining with expert parallelism for efficient MoE training.
19-
20-
## Model Architecture Features
21-
22-
- **Multi-head Latent Attention (MLA)**: Novel attention mechanism that reduces KV cache requirements
23-
- **DeepSeekMoE**: Efficient MoE architecture with routed and shared experts
24-
- **Expert Parallelism**: Distributes experts across GPUs for scalable training
25-
- **RoPE Embeddings**: Rotary position embeddings for position encoding
26-
- **128K Context Length**: Native support for long sequences (DeepSeek-V2)
27-
- **Pre-normalization**: RMSNorm before each transformer sub-layer
28-
29-
## Conversion with 🤗 Hugging Face
30-
31-
### Load HF → Megatron
32-
33-
```python
34-
from megatron.bridge import AutoBridge
35-
36-
# Example: DeepSeek-V2-Lite
37-
bridge = AutoBridge.from_hf_pretrained("deepseek-ai/DeepSeek-V2-Lite", trust_remote_code=True)
38-
provider = bridge.to_megatron_provider()
39-
40-
# Optionally configure parallelism before instantiating the model
41-
provider.tensor_model_parallel_size = 1
42-
provider.pipeline_model_parallel_size = 1
43-
provider.expert_model_parallel_size = 8
44-
45-
model = provider.provide_distributed_model(wrap_with_ddp=False)
46-
```
47-
48-
### Import Checkpoint from HF
49-
50-
```bash
51-
./scripts/conversion/convert.sh import \
52-
--hf-model deepseek-ai/DeepSeek-V2-Lite \
53-
--megatron-path /checkpoints/deepseek_v2_lite_megatron \
54-
--trust-remote-code
55-
```
56-
57-
### Export Megatron → HF
58-
59-
```python
60-
from megatron.bridge import AutoBridge
61-
62-
# Load the bridge from HF model ID
63-
bridge = AutoBridge.from_hf_pretrained("deepseek-ai/DeepSeek-V2-Lite", trust_remote_code=True)
64-
65-
# Export a trained Megatron checkpoint to HF format
66-
bridge.export_ckpt(
67-
megatron_path="/results/deepseek_v2_lite/checkpoints/iter_0000500",
68-
hf_path="/exports/deepseek_v2_lite_hf",
69-
)
70-
```
71-
72-
### Run Inference on Converted Checkpoint
73-
74-
```bash
75-
uv run python examples/conversion/hf_to_megatron_generate_text.py \
76-
--hf_model_path deepseek-ai/DeepSeek-V2-Lite \
77-
--megatron_model_path /checkpoints/deepseek_v2_lite_megatron \
78-
--prompt "What is artificial intelligence?" \
79-
--max_new_tokens 100 \
80-
--ep 8 \
81-
--trust-remote-code
82-
```
83-
84-
For more details, see [examples/conversion/hf_to_megatron_generate_text.py](https://github.com/NVIDIA-NeMo/Megatron-Bridge/blob/main/examples/conversion/hf_to_megatron_generate_text.py)
85-
86-
## Recipes
87-
88-
See: [bridge.recipes.deepseek.deepseek_v2](../../apidocs/bridge/bridge.recipes.deepseek.deepseek_v2.md)
89-
90-
### Available Recipes
91-
92-
- **Pretrain recipes**:
93-
- `deepseek_v2_lite_pretrain_config`: Pre-training for DeepSeek-V2-Lite (16B parameters, 2.4B activated per token)
94-
- `deepseek_v2_pretrain_config`: Pre-training for DeepSeek-V2 (236B parameters, 21B activated per token)
95-
96-
### Parallelism Configurations
97-
98-
| Model | TP | PP | EP | Total GPUs | Use Case |
99-
|-------|----|----|----|-----------:|----------|
100-
| **DeepSeek-V2-Lite** | 1 | 1 | 8 | 8 | Pre-training (single node) |
101-
| **DeepSeek-V2** | 1 | 4 | 32 | 128 | Pre-training (16 nodes) |
102-
103-
**Key Features**:
104-
- **Expert Parallelism**: EP=8 (V2-Lite) or EP=32 (V2) for efficient MoE training
105-
- **Selective Recomputation**: Enabled by default for memory optimization
106-
- **Sequence Length**: Default 4096, V2 supports up to 128K tokens
107-
108-
### Pre-training Examples
109-
110-
#### DeepSeek-V2-Lite (16B)
111-
112-
```python
113-
from megatron.bridge.recipes.deepseek import deepseek_v2_lite_pretrain_config
114-
115-
config = deepseek_v2_lite_pretrain_config()
116-
config.dataset.blend = [["/path/to/dataset_text_document"], None]
117-
config.checkpoint.save = "/results/deepseek_v2_lite/checkpoints"
118-
config.checkpoint.load = "/results/deepseek_v2_lite/checkpoints"
119-
config.logger.tensorboard_dir = "/results/deepseek_v2_lite/tb_logs"
120-
config.train.train_iters = 500_000
121-
config.train.global_batch_size = 512
122-
config.model.seq_length = 4096
123-
config.dataset.seq_length = 4096
124-
# Uses TP=1, PP=1, EP=8 (8 GPUs) automatically
125-
```
126-
127-
#### DeepSeek-V2 (236B)
128-
129-
```python
130-
from megatron.bridge.recipes.deepseek import deepseek_v2_pretrain_config
131-
132-
config = deepseek_v2_pretrain_config()
133-
config.dataset.blend = [["/path/to/dataset_text_document"], None]
134-
config.checkpoint.save = "/results/deepseek_v2/checkpoints"
135-
config.checkpoint.load = "/results/deepseek_v2/checkpoints"
136-
config.logger.tensorboard_dir = "/results/deepseek_v2/tb_logs"
137-
config.train.train_iters = 500_000
138-
config.train.global_batch_size = 512
139-
config.model.seq_length = 4096
140-
config.dataset.seq_length = 4096
141-
# Uses TP=1, PP=4, EP=32 (128 GPUs) automatically
142-
```
143-
144-
### Finetuning Recipes
145-
146-
Finetuning recipes for DeepSeek V2 models are not currently available.
147-
148-
## Hugging Face Model Cards & References
149-
150-
### Hugging Face Model Cards
151-
- DeepSeek-V2: https://huggingface.co/deepseek-ai/DeepSeek-V2
152-
- DeepSeek-V2-Lite: https://huggingface.co/deepseek-ai/DeepSeek-V2-Lite
153-
- DeepSeek-V2-Chat: https://huggingface.co/deepseek-ai/DeepSeek-V2-Chat
154-
- DeepSeek-V2-Lite-Chat: https://huggingface.co/deepseek-ai/DeepSeek-V2-Lite-Chat
155-
156-
### Technical Papers
157-
- DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model: [arXiv:2405.04434](https://arxiv.org/abs/2405.04434)
158-
159-
### Additional Resources
160-
- GitHub Repository: https://github.com/deepseek-ai/DeepSeek-V2
161-
162-
## Related Docs
163-
- Recipe usage: [Recipe usage](../../recipe-usage.md)
164-
- Customizing the training recipe configuration: [Configuration overview](../../training/config-container-overview.md)
165-
- Training entry points: [Entry points](../../training/entry-points.md)
7+
See the [family overview](index.mdx) for supported models.

‎docs/fern/versions/nightly/pages/models/deepseek/index.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ DeepSeek model documentation is organized by model variant.
44

55
| Variant | Guide |
66
|---------|-------|
7-
| DeepSeek V2 | [deepseek-v2.md](deepseek-v2.md) |
87
| DeepSeek V3 | [deepseek-v3.md](deepseek-v3.md) |
98
| DeepSeek V4 | [deepseek-v4.md](deepseek-v4.md) |

0 commit comments

Comments
 (0)