File tree 2 files changed +15
-7
lines changed
unit/sagemaker/training_compiler
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,21 @@ def huggingface_pytorch_latest_training_py_version(
318
318
)
319
319
320
320
321
+ @pytest .fixture (scope = "module" )
322
+ def pytorch_training_compiler_py_version (
323
+ pytorch_training_compiler_version ,
324
+ ):
325
+ return "py39" if Version (pytorch_training_compiler_version ) > Version ("1.12" ) else "py38"
326
+
327
+
328
+ # TODO:
329
+ # @pytest.fixture(scope="module")
330
+ # def pytorch_training_compiler_latest_py_version(
331
+ # pytorch_training_compiler_latest_version,
332
+ # ):
333
+ # return "py39" if Version(pytorch_training_compiler_latest_version) > Version("1.12") else "py38"
334
+
335
+
321
336
@pytest .fixture (scope = "module" )
322
337
def huggingface_pytorch_latest_inference_py_version (
323
338
huggingface_inference_pytorch_latest_version ,
Original file line number Diff line number Diff line change @@ -61,13 +61,6 @@ def cpu_instance_type():
61
61
return "ml.m5.xlarge"
62
62
63
63
64
- @pytest .fixture (scope = "module" )
65
- def pytorch_training_compiler_py_version (
66
- pytorch_training_compiler_version ,
67
- ):
68
- return "py39" if Version (pytorch_training_compiler_version ) > Version ("1.12" ) else "py38"
69
-
70
-
71
64
@pytest .fixture (name = "sagemaker_session" , scope = "function" )
72
65
def fixture_sagemaker_session ():
73
66
boto_mock = Mock (name = "boto_session" , region_name = REGION )
You can’t perform that action at this time.
0 commit comments