Skip to content

Commit

Permalink
simply strategy parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Huiying Li <[email protected]>
  • Loading branch information
HuiyingLi committed Nov 19, 2024
1 parent fdc0d11 commit 3095b61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
7 changes: 1 addition & 6 deletions tutorials/llm/llama-3/nemo2-sft-peft/nemo2-peft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,7 @@
"def trainer() -> run.Config[nl.Trainer]:\n",
" strategy = run.Config(\n",
" nl.MegatronStrategy,\n",
" tensor_model_parallel_size=1,\n",
" pipeline_model_parallel_size=1,\n",
" context_parallel_size=1,\n",
" sequence_parallel=False,\n",
" setup_optimizers=False,\n",
" store_optimizer_states=False,\n",
" tensor_model_parallel_size=1\n",
" )\n",
" trainer = run.Config(\n",
" nl.Trainer,\n",
Expand Down
5 changes: 0 additions & 5 deletions tutorials/llm/llama-3/nemo2-sft-peft/nemo2-sft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,6 @@
" strategy = run.Config(\n",
" nl.MegatronStrategy,\n",
" tensor_model_parallel_size=1,\n",
" pipeline_model_parallel_size=1,\n",
" context_parallel_size=1,\n",
" sequence_parallel=False,\n",
" setup_optimizers=False,\n",
" store_optimizer_states=False,\n",
" )\n",
" trainer = run.Config(\n",
" nl.Trainer,\n",
Expand Down

0 comments on commit 3095b61

Please sign in to comment.