Skip to content
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

AttributeError: 'tuple' object has no attribute 'shape' #29

Open
Lenan22 opened this issue Nov 26, 2024 · 0 comments
Open

AttributeError: 'tuple' object has no attribute 'shape' #29

Lenan22 opened this issue Nov 26, 2024 · 0 comments

Comments

@Lenan22
Copy link

Lenan22 commented Nov 26, 2024

When I run:
python -m deepcompressor.app.diffusion.ptq configs/model/flux.1-schnell.yaml configs/svdquant/int4.yaml --eval-benchmarks MJHQ --eval-num-samples 1024

File "anaconda3/envs/deepcom/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "anaconda3/envs/deepcom/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1585, in _call_impl
args_kwargs_result = hook(self, args, kwargs) # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^
File "/deepcompressor/deepcompressor/utils/hooks/hook.py", line 107, in call
return self.pre_forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "deepcompressor/deepcompressor/dataset/action.py", line 55, in pre_forward
self.action.info(self.name, module, tensors, self.cache)
File "deepcompressor/deepcompressor/app/diffusion/dataset/calib.py", line 129, in info
return super().info(name, module, tensors, cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "deepcompressor/deepcompressor/dataset/action.py", line 259, in info
c.num_total += x.shape[0]
^^^^^^^
AttributeError: 'tuple' object has no attribute 'shape'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant