Skip to content

Update deepseek recipes to use bridge, add recipe tests - #895

Merged
yaoyu-33 merged 18 commits into
mainfrom
yuya/update-deepseek-recipes
Oct 16, 2025
Merged

Update deepseek recipes to use bridge, add recipe tests#895
yaoyu-33 merged 18 commits into
mainfrom
yuya/update-deepseek-recipes

Conversation

@yaoyu-33

@yaoyu-33 yaoyu-33 commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 8, 2025

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33

yaoyu-33 commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test 5f31518

@ananthsub ananthsub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like the configs map 1:1 with what was previously there

Comment thread src/megatron/bridge/recipes/deepseek/deepseek_v2.py Outdated
Comment thread src/megatron/bridge/recipes/deepseek/deepseek_v2.py
Comment thread src/megatron/bridge/recipes/deepseek/deepseek_v2.py
Comment thread src/megatron/bridge/recipes/deepseek/deepseek_v2_lite.py
Comment thread src/megatron/bridge/recipes/deepseek/deepseek_v3.py Outdated
Comment thread src/megatron/bridge/recipes/deepseek/deepseek_v3.py
Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

yaoyu-33 commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test b96243e

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

yaoyu-33 commented Oct 9, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test 98ed0fa

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test c1e76ee

@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test c5e065f

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test d718b2b

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 85779ee

@copy-pr-bot

copy-pr-bot Bot commented Oct 15, 2025

Copy link
Copy Markdown

/ok to test 85779ee

@yaoyu-33, there was an error processing your request: E2

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/

@yaoyu-33

Copy link
Copy Markdown
Contributor Author

/ok to test 85779ee

from megatron.bridge.training.deepep import validate_deepep as _validate_deepep

_apply_deepep(model_cfg)
_validate_deepep(model_cfg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need to validate this explicitly - it's called here:

# Validate DeepEP is supported for the current GPU architecture
validate_deepep(self.model)

Comment on lines +33 to +44
# (
# deepseek_v3_config,
# "deepseek_v3",
# {"tensor_parallelism": 2, "pipeline_parallelism": 1, "expert_parallelism": 1},
# {
# "num_layers": 2,
# "num_moe_experts": 8,
# "moe_router_topk": 1,
# "moe_layer_freq": [0, 1],
# "pipeline_model_parallel_layout": [["embedding"] + ["decoder"] * 2 + ["mtp", "loss"]],
# },
# ),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are these commented out?

@yaoyu-33 yaoyu-33 Oct 16, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

takes longer to finish in ci, need to revisit this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants