You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to avoid the multi-GPU problem specified in #243, I am running my script with the flag CUDA_VISIBLE_DEVICES=0 python test_flamingo.py
However, I am still getting a similar error on the model.to(device) step:
Flamingo model initialized with 1046992944 trainable parameters
Traceback (most recent call last):
File "/u/shomikj/ring/open_flamingo-main/test_flamingo.py", line 35, in <module>
model.to(device)
File "/u/shomikj/miniconda3/envs/openflamingo/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1145, in to
return self._apply(convert)
File "/u/shomikj/miniconda3/envs/openflamingo/lib/python3.9/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/u/shomikj/miniconda3/envs/openflamingo/lib/python3.9/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/u/shomikj/miniconda3/envs/openflamingo/lib/python3.9/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/u/shomikj/miniconda3/envs/openflamingo/lib/python3.9/site-packages/torch/nn/modules/module.py", line 820, in _apply
param_applied = fn(param)
File "/u/shomikj/miniconda3/envs/openflamingo/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1143, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
NotImplementedError: Cannot copy out of meta tensor; no data!
The text was updated successfully, but these errors were encountered:
I just encountered the same issue, and you can resolve it by modifying the device information from "meta" to "cuda" within the JSON file, allowing the program to run properly.
I'm trying to follow the instructions in #228 in order to run inference on a GPU.
My code looks as follows:
In order to avoid the multi-GPU problem specified in #243, I am running my script with the flag
CUDA_VISIBLE_DEVICES=0 python test_flamingo.py
However, I am still getting a similar error on the
model.to(device)
step:The text was updated successfully, but these errors were encountered: