@@ -273,7 +273,12 @@ def huggingface_pytorch_training_version(huggingface_training_version):
273
273
274
274
@pytest .fixture (scope = "module" )
275
275
def huggingface_pytorch_training_py_version (huggingface_pytorch_training_version ):
276
- return "py39" if Version (huggingface_pytorch_training_version ) >= Version ("1.9" ) else "py36"
276
+ if Version (huggingface_pytorch_training_version ) >= Version ("1.13" ):
277
+ return "py39"
278
+ elif Version (huggingface_pytorch_training_version ) >= Version ("1.9" ):
279
+ return "py38"
280
+ else :
281
+ return "py36"
277
282
278
283
279
284
@pytest .fixture (scope = "module" )
@@ -328,9 +333,12 @@ def huggingface_training_compiler_pytorch_py_version(
328
333
def huggingface_pytorch_latest_training_py_version (
329
334
huggingface_training_pytorch_latest_version ,
330
335
):
331
- return (
332
- "py39" if Version (huggingface_training_pytorch_latest_version ) >= Version ("1.9" ) else "py36"
333
- )
336
+ if Version (huggingface_pytorch_training_version ) >= Version ("1.13" ):
337
+ return "py39"
338
+ elif Version (huggingface_pytorch_training_version ) >= Version ("1.9" ):
339
+ return "py38"
340
+ else :
341
+ return "py36"
334
342
335
343
336
344
@pytest .fixture (scope = "module" )
@@ -347,11 +355,12 @@ def pytorch_training_compiler_py_version(
347
355
def huggingface_pytorch_latest_inference_py_version (
348
356
huggingface_inference_pytorch_latest_version ,
349
357
):
350
- return (
351
- "py39"
352
- if Version (huggingface_inference_pytorch_latest_version ) >= Version ("1.9" )
353
- else "py36"
354
- )
358
+ if Version (huggingface_inference_pytorch_latest_version ) >= Version ("1.13" ):
359
+ return "py39"
360
+ elif Version (huggingface_inference_pytorch_latest_version ) >= Version ("1.9" ):
361
+ return "py38"
362
+ else :
363
+ return "py36"
355
364
356
365
357
366
@pytest .fixture (scope = "module" )
0 commit comments