Skip to content

Commit

Permalink
test (nox): Updated pytorch torchvision version list
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfraser committed Aug 23, 2024
1 parent 760bf43 commit f111fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
'1.12.1': '0.13.1',
'1.13.0': '0.14.0',
'2.0.1': '0.15.2',
'2.1.0': '0.16.0'}
'2.1.0': '0.16.0',
'2.2.2': '0.17.2',
'2.3.1': '0.18.1',
'2.4.0': '0.19.0'}

PARSED_TORCHVISION_VERSION_DICT = {version.parse(k): v for k, v in TORCHVISION_VERSION_DICT.items()}

Expand Down Expand Up @@ -124,6 +127,7 @@ def tests_brevitas_examples_cpu(session, pytorch, jit_status):
def tests_brevitas_examples_llm(session, pytorch, jit_status):
session.env['BREVITAS_JIT'] = '{}'.format(int(jit_status == 'jit_enabled'))
install_pytorch(pytorch, session)
install_torchvision(pytorch, session) # Optimum seems to require torchvision
session.install(
'-e', '.[test, llm, export]', f'torch=={pytorch}' if IS_OSX else f'torch=={pytorch}+cpu')
session.run('pytest', '-n', 'logical', '-k', 'llm', 'tests/brevitas_examples/test_llm.py')
Expand Down

0 comments on commit f111fef

Please sign in to comment.