question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WeightWatcher.analyze() not working for wav2vec2

See original GitHub issue

*Perhaps relate to https://github.com/CalculatedContent/WeightWatcher/issues/105

For testing purposes, I’ve fed the wav2vec2 model downloaded from huggingface to the weightwatcher. It is stopped by an error very fast.

The code used is below:

import weightwatcher as ww
from transformers import AutoModelForCTC

model = AutoModelForCTC.from_pretrained("facebook/wav2vec2-base-960h")
watcher = ww.WeightWatcher(model=model)
details = watcher.analyze()
summary = watcher.get_summary(details)

It yields: WARNING:weightwatcher:not enough eigenvalues, stopping Traceback (most recent call last): File “t.py”, line 6, in <module> details = watcher.analyze() File “/home/pete/.pyenv/versions/wristband/lib/python3.8/site-packages/weightwatcher/weightwatcher.py”, line 1649, in analyze self.apply_analyze_eigenvectors(ww_layer, params=params) File “/home/pete/.pyenv/versions/wristband/lib/python3.8/site-packages/weightwatcher/weightwatcher.py”, line 2931, in apply_analyze_eigenvectors X = np.matmul(W.T, W) ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 1 is different from 512)

Versions: torch==1.12.1+cpu weightwatcher==0.5.6 transformers==4.22.1

Please let me know if you need additional information.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
charlesmartin14commented, Oct 5, 2022

Im going to close this issue; please reopen if it comes up again

0reactions
charlesmartin14commented, Oct 5, 2022

I have tried to reproduce this issue on the current trunk but can not

Read more comments on GitHub >

github_iconTop Results From Across the Web

Analyze fails on Conv1D layer · Issue #105 - GitHub
Analyze fails on Conv1D layer #105. Open. manuel-delverme opened this issue on Dec ... WeightWatcher.analyze() not working for wav2vec2 #128.
Read more >
Weight watchers down? Current status and problems
Real-time overview of problems with Weight Watchers. Is the website down? Can't log in or place orders? Here you see what is going...
Read more >
Instructions for use of Weight Watchers Body Analysis Smart ...
10. The display then scrolls to show your weight, your bone mass (BM), your muscle mass (MM) and your BMI twice. 11. The...
Read more >
I did WeightWatchers for three years—here's why I'm still doing it
I turned to WeightWatchers in 2019 and I was very skeptical about whether it would work for me or not. Now three years...
Read more >
Amazon.com: WW Scales by Conair Bluetooth Body Analysis ...
Achieving your personal best – that's what the Weight Watchers Bluetooth Body Analysis Scale is all about. This scale not only tracks your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found