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
Before you open an issue, please check if a similar issue already exists or has been closed before.
Traceback (most recent call last):
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
TestOtter(checkpoint=args.checkpoint)
File "/home/czh/Otter-main/pipeline/demos/demo_models.py", line 38, in init
self.model = OtterForConditionalGeneration.from_pretrained(checkpoint, **kwargs)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/transformers/modeling_utils.py", line 3539, in from_pretrained
dispatch_model(model, **device_map_kwargs)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/accelerate/big_modeling.py", line 494, in dispatch_model
model.to(device)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2271, in to
return super().to(*args, **kwargs)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 989, in to
return self._apply(convert)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 664, in _apply
param_applied = fn(param)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 987, 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!
Before you open an issue, please check if a similar issue already exists or has been closed before.
Traceback (most recent call last):
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
TestOtter(checkpoint=args.checkpoint)
File "/home/czh/Otter-main/pipeline/demos/demo_models.py", line 38, in init
self.model = OtterForConditionalGeneration.from_pretrained(checkpoint, **kwargs)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/transformers/modeling_utils.py", line 3539, in from_pretrained
dispatch_model(model, **device_map_kwargs)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/accelerate/big_modeling.py", line 494, in dispatch_model
model.to(device)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2271, in to
return super().to(*args, **kwargs)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 989, in to
return self._apply(convert)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 641, in _apply
module._apply(fn)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 664, in _apply
param_applied = fn(param)
File "/home/czh/.conda/envs/sam/lib/python3.8/site-packages/torch/nn/modules/module.py", line 987, 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!
###kwargs = {"device_map": "cpu", "torch_dtype": torch.bfloat16}
Thank you for your contributions!
The text was updated successfully, but these errors were encountered: