Skip to content

Commit be0343d

Browse files
committed
added unit tests
1 parent 86e29ea commit be0343d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/unit/sagemaker/modules/train/sm_recipes/test_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ def test_get_args_from_recipe_with_nova_and_role(mock_get_args_from_nova_recipe,
237237
"script": "deepseek_pretrain.py",
238238
"model_base_name": "deepseek",
239239
},
240+
{
241+
"model_type": "gpt_oss",
242+
"script": "custom_pretrain.py",
243+
"model_base_name": "gpt_oss",
244+
},
240245
],
241246
)
242247
def test_get_trainining_recipe_gpu_model_name_and_script(test_case):

tests/unit/test_pytorch.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,14 @@ def test_training_recipe_for_trainium(sagemaker_session):
10871087
},
10881088
},
10891089
},
1090+
{
1091+
"script": "custom_pretrain.py",
1092+
"recipe": {
1093+
"model": {
1094+
"model_type": "gpt_oss",
1095+
},
1096+
},
1097+
},
10901098
],
10911099
)
10921100
@patch("shutil.copyfile")

0 commit comments

Comments
 (0)