@@ -277,7 +277,9 @@ def huggingface_pytorch_training_version(huggingface_training_version):
277
277
278
278
@pytest .fixture (scope = "module" )
279
279
def huggingface_pytorch_training_py_version (huggingface_pytorch_training_version ):
280
- if Version (huggingface_pytorch_training_version ) >= Version ("1.13" ):
280
+ if Version (huggingface_pytorch_training_version ) >= Version ("2.0" ):
281
+ return "py310"
282
+ elif Version (huggingface_pytorch_training_version ) >= Version ("1.13" ):
281
283
return "py39"
282
284
elif Version (huggingface_pytorch_training_version ) >= Version ("1.9" ):
283
285
return "py38"
@@ -337,7 +339,9 @@ def huggingface_training_compiler_pytorch_py_version(
337
339
def huggingface_pytorch_latest_training_py_version (
338
340
huggingface_training_pytorch_latest_version ,
339
341
):
340
- if Version (huggingface_training_pytorch_latest_version ) >= Version ("1.13" ):
342
+ if Version (huggingface_training_pytorch_latest_version ) >= Version ("2.0" ):
343
+ return "py310"
344
+ elif Version (huggingface_training_pytorch_latest_version ) >= Version ("1.13" ):
341
345
return "py39"
342
346
elif Version (huggingface_training_pytorch_latest_version ) >= Version ("1.9" ):
343
347
return "py38"
@@ -359,7 +363,9 @@ def pytorch_training_compiler_py_version(
359
363
def huggingface_pytorch_latest_inference_py_version (
360
364
huggingface_inference_pytorch_latest_version ,
361
365
):
362
- if Version (huggingface_inference_pytorch_latest_version ) >= Version ("1.13" ):
366
+ if Version (huggingface_inference_pytorch_latest_version ) >= Version ("2.0" ):
367
+ return "py310"
368
+ elif Version (huggingface_inference_pytorch_latest_version ) >= Version ("1.13" ):
363
369
return "py39"
364
370
elif Version (huggingface_inference_pytorch_latest_version ) >= Version ("1.9" ):
365
371
return "py38"
0 commit comments