Closed jdgh000 closed 11 months ago
Torchbench only supports torch nightly, not stable release. Can you please try with torch nightly?
I'm experiencing what looks like the same thing, torch nightlies appear to be correct, log below. I suspect it's related to this issue: https://github.com/facebookresearch/detectron2/issues/4472
running setup for /home/namcvica/benchmark/torchbenchmark/models/detectron2_fasterrcnn_r_101_c4...decompressing input tarball: /home/namcvica/benchmark/torchbenchmark/data/coco128.tar.gz...OK
WARNING: Did not find branch or tag '1a4df4d', assuming revision or ref.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/home/namcvica/torchbench/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/namcvica/torchbench/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/namcvica/torchbench/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-vmawylf4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-vmawylf4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-vmawylf4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-vmawylf4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 10, in <module>
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "/home/namcvica/benchmark/torchbenchmark/models/detectron2_fasterrcnn_r_101_c4/install.py", line 8, in <module>
install_detectron2(MODEL_NAME, MODEL_DIR)
File "/home/namcvica/benchmark/torchbenchmark/util/framework/detectron2/__init__.py", line 59, in install_detectron2
pip_install_requirements()
File "/home/namcvica/benchmark/torchbenchmark/util/framework/detectron2/__init__.py", line 41, in pip_install_requirements
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-q', '-r', requirements_file])
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/namcvica/torchbench/venv/bin/python3', '-m', 'pip', 'install', '-q', '-r', '/home/namcvica/benchmark/torchbenchmark/util/framework/detectron2/requirements.txt']' returned non-zero exit status 1.
FAIL
Torchbench requires PyTorch to be available at install time. Could you please check that pytorch nightly is installed in your environment by running /home/namcvica/torchbench/venv/bin/python3 -c 'import torch;'
? @NathanielMcVicar
Thanks for taking a look! That works. I don't think there are any environment issues. The other tests all install and run correctly, I can mostly run_benchmark.py dynamo
as well. I believe this is a detectron2 specific issue.
it seems later version of rocm worked.
ubuntu 20.04, rocm 5.x