Open ManfeiBai opened 1 month ago
Model requires CUDA ?
% JAX_ENABLE_X64=true JAX_PLATFORMS=cpu python models/tacotron2.py
/usr/local/google/home/barni/miniconda3/envs/diffusion-models-2/lib/python3.10/site-packages/torch/distributed/distributed_c10d.py:337: UserWarning: Device capability of jax unspecified, assuming `cpu` and `cuda`. Please specify it via the `devices` argument of `register_backend`.
warnings.warn(
Traceback (most recent call last):
File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/models/tacotron2.py", line 61, in <module>
sys.exit(main())
File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/models/tacotron2.py", line 21, in main
benchmark = benchmark_cls(test="eval", device = "cpu")
File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/benchmark/torchbenchmark/util/model.py", line 43, in __call__
obj = type.__call__(cls, *args, **kwargs)
File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/benchmark/torchbenchmark/models/tacotron2/__init__.py", line 32, in __init__
raise NotImplementedError(
NotImplementedError: Tacotron2 doesn't support CPU because load_model assumes CUDA.
Model requires CUDA ?
% JAX_ENABLE_X64=true JAX_PLATFORMS=cpu python models/tacotron2.py /usr/local/google/home/barni/miniconda3/envs/diffusion-models-2/lib/python3.10/site-packages/torch/distributed/distributed_c10d.py:337: UserWarning: Device capability of jax unspecified, assuming `cpu` and `cuda`. Please specify it via the `devices` argument of `register_backend`. warnings.warn( Traceback (most recent call last): File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/models/tacotron2.py", line 61, in <module> sys.exit(main()) File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/models/tacotron2.py", line 21, in main benchmark = benchmark_cls(test="eval", device = "cpu") File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/benchmark/torchbenchmark/util/model.py", line 43, in __call__ obj = type.__call__(cls, *args, **kwargs) File "/usr/local/google/home/barni/workspace/pytorch-tpu/run_torchbench/benchmark/torchbenchmark/models/tacotron2/__init__.py", line 32, in __init__ raise NotImplementedError( NotImplementedError: Tacotron2 doesn't support CPU because load_model assumes CUDA.
Let's skip this model for now
Fix the model test for
tacotron2.py
run_torchbench/
withpython models/your_target_model_name.py
Please refer to this guide as guide to fix:
Also refer to these PRs: