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

bug calling TPL #294

Open
charlesmartin14 opened this issue Sep 19, 2023 · 0 comments
Open

bug calling TPL #294

charlesmartin14 opened this issue Sep 19, 2023 · 0 comments

Comments

@charlesmartin14
Copy link
Member

This bug can be reproduced by calling the TPL fit on ALBERT layer 17
model_name = f"albert-xxlarge-v2"

details = watcher.analyze(layers=[17], fit='TPL', pl_package='powerlaw', plot=True)


AttributeError Traceback (most recent call last)
AttributeError: 'NoneType' object has no attribute 'log10'

The above exception was the direct cause of the following exception:

TypeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 details = watcher.analyze(layers=[17], fit='TPL', pl_package='powerlaw', plot=True)
2 details

2 frames
/usr/local/lib/python3.10/dist-packages/weightwatcher/weightwatcher.py in fit_powerlaw(self, evals, xmin, xmax, plot, layer_name, layer_id, plot_id, sample, sample_size, savedir, savefig, thresh, fix_fingers, finger_thresh, xmin_max, max_fingers, fit_type, pl_package)
3758 plt.title(title)
3759 plt.axvline(x=np.log10(fit.xmin), color='red', label=r'$\lambda_{xmin}$')
-> 3760 plt.axvline(x=np.log10(fit.xmax), color='orange', label=r'$\lambda_{xmax}$')
3761 plt.legend()
3762 if savefig:

TypeError: loop of ufunc does not support argument 0 of type NoneType which has no callable log10 method

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