-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add Torch-TRT IR pass-through argument #1947
Conversation
gs-olive
commented
Sep 28, 2023
- Fix issue where selected IR was not being propagated to backend
@xuzhao9 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hi @xuzhao9 - thanks for your help getting these fixes merged quickly. If you could manually add a run of Torch-TRT to test these, it would be much appreciated |
@gs-olive Workflow: https://github.com/pytorch/benchmark/actions/runs/6355839393 Note that I can only start a workflow when the branch is on pytorch/benchmark, not on forked branch. |
@xuzhao9 Understood - thank you for running the pipeline. I am noticing this error showing up from within the File "/runner/_work/benchmark/benchmark/benchmark/torchbenchmark/util/experiment/instantiator.py", line 39, in load_model_isolated
task.make_model_instance(test=config.test, device=config.device, batch_size=config.batch_size, extra_args=config.extra_args)
File "/runner/_work/benchmark/benchmark/benchmark/components/_impl/tasks/base.py", line 278, in inner
self.worker.run(src)
File "/runner/_work/benchmark/benchmark/benchmark/components/_impl/workers/subprocess_worker.py", line 155, in run
self._run(snippet)
File "/runner/_work/benchmark/benchmark/benchmark/components/_impl/workers/subprocess_worker.py", line 320, in _run
subprocess_rpc.SerializedException.raise_from(
File "/runner/_work/benchmark/benchmark/benchmark/components/_impl/workers/subprocess_rpc.py", line 458, in raise_from
raise e from ChildTraceException(traceback_str)
NotImplementedError: The instance variable 'model' does not exist or is not type 'torch.nn.Module', implement your own `set_module()` function. I am calling this function here: benchmark/userbenchmark/torch_trt/run.py Lines 249 to 262 in 827f90b
I adapted this usage from other userbenchmarks which also use this function, and I am wondering if you have any suggestions on the usage or how I might improve it to resolve this error? |
@gs-olive This is because the |