pytorch / torchdynamo

A Python-level JIT compiler designed to make unmodified PyTorch programs faster.
BSD 3-Clause "New" or "Revised" License
1.01k stars 123 forks source link

Fix issues in fambench_xlmr #145

Closed anijain2305 closed 1 year ago

anijain2305 commented 2 years ago
./torchbench.py --no-skip -k fambench_xlmr

First error comes while deepcopying the model. And its a known issue - https://githubhot.com/repo/pytorch/fairseq/issues/4185

After removing the deepcopy, the model fails with the following issue

Traceback (most recent call last):
  File "./torchbench.py", line 1099, in <module>
    main()
  File "./torchbench.py", line 981, in main
    run_one_model(
  File "./torchbench.py", line 1044, in run_one_model
    correct_result = model_iter_fn(model, example_inputs)
  File "./torchbench.py", line 525, in forward_pass
    return mod(*inputs)
  File "/data/home/anijain/miniconda/envs/pytorch_dev/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1129, in _call_impl
    return forward_call(*input, **kwargs)
  File "/data/home/anijain/miniconda/envs/pytorch_dev/lib/python3.8/site-packages/torch/nn/modules/module.py", line 201, in _forward_unimplemented
    raise NotImplementedError(f"Module [{type(self).__name__}] is missing the required \"forward\" function")
NotImplementedError: Module [RobertaHubInterface] is missing the required "forward" function
anijain2305 commented 1 year ago

Closing as stale.