Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ domain = "llm"
task = "pretrain"
compute_dtype = "fp8_mx"

hf_token = "REPLACE_ME_WITH_HF_TOKEN"
hf_token = ""
1 change: 1 addition & 0 deletions doc/workloads/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Available Workloads
":doc:`deepep`", "✅", "❌", "❌", "❌"
":doc:`jax_toolbox`", "✅", "❌", "❌", "❌"
"MegatronRun", "✅", "❌", "❌", "❌"
":doc:`megatron_bridge`", "✅", "❌", "❌", "❌"
":doc:`nccl`", "✅", "✅", "✅", "❌"
":doc:`nemo_launcher`", "✅", "❌", "❌", "❌"
":doc:`nemo_run`", "✅", "❌", "❌", "❌"
Expand Down
81 changes: 81 additions & 0 deletions doc/workloads/megatron_bridge.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
MegatronBridge
==============

This workload (`test_template_name` is ``MegatronBridge``) submits training and finetuning tasks based on Megatron-Bridge framework.


Usage Examples
-------------

Test TOML example:

.. code-block:: toml

name = "megatron_bridge_qwen_30b"
description = "Megatron-Bridge run via CloudAI SlurmSystem for Qwen3 30B A3B"
test_template_name = "MegatronBridge"

[cmd_args]
# Container can be an NGC/enroot URL (nvcr.io#...) or a local .sqsh path.
container_image = "nvcr.io#nvidia/nemo:25.11.01"

model_name = "qwen3"
model_size = "30b_a3b"
task = "pretrain"
domain = "llm"
compute_dtype = "fp8_mx"

hf_token = "hf_xxx"

Test Scenario example:

.. code-block:: toml

name = "megatron_bridge_qwen_30b"

[[Tests]]
id = "megatron_bridge_qwen_30b"
test_name = "megatron_bridge_qwen_30b"
num_nodes = "2"

Test-in-Scenario example:

.. code-block:: toml

name = "megatron-bridge-test"

[[Tests]]
id = "mbridge.1"
num_nodes = 2
time_limit = "00:30:00"

name = "megatron_bridge_qwen_30b"
description = "Megatron-Bridge run via CloudAI SlurmSystem for Qwen3 30B A3B"
test_template_name = "MegatronBridge"

[Tests.cmd_args]
container_image = "nvcr.io#nvidia/nemo:25.11.01"
model_name = "qwen3"
model_size = "30b_a3b"
task = "pretrain"
domain = "llm"
compute_dtype = "fp8_mx"
hf_token = "hf_xxx"


API Documentation
-----------------

Command Arguments
~~~~~~~~~~~~~~~~~

.. autoclass:: cloudai.workloads.megatron_bridge.megatron_bridge.MegatronBridgeCmdArgs
:members:
:show-inheritance:

Test Definition
~~~~~~~~~~~~~~~

.. autoclass:: cloudai.workloads.megatron_bridge.megatron_bridge.MegatronBridgeTestDefinition
:members:
:show-inheritance: