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
Since the release of torch 2.2.0, there is no "params_t" anymore, meaning you get the following error, since the requirements of the pyproject.toml are torch=">=2.1.2".
[/usr/local/lib/python3.10/dist-packages/sparse_autoencoder/optimizer/adam_with_reset.py](https://localhost:8080/#) in <module>
10 from torch.nn.parameter import Parameter
11 from torch.optim import Adam
---> 12 from torch.optim.optimizer import params_t
13
14 from sparse_autoencoder.optimizer.abstract_optimizer import AbstractOptimizerWithReset
ImportError: cannot import name 'params_t' from 'torch.optim.optimizer' (/usr/local/lib/python3.10/dist-packages/torch/optim/optimizer.py)
The text was updated successfully, but these errors were encountered:
@Final-Industrialist thanks! %pip install torch==2.1.2 works Looks like new PyTorch version has broken things up. I guess the author could put the exact package versions, rather than putting range of the versions.
Same issue here with the new versions of Torch.
A workaround could be not setting the params_t variable to have the value from torch.optim. You could simply set it to None and things temporarily work.
Since the release of torch 2.2.0, there is no "params_t" anymore, meaning you get the following error, since the requirements of the pyproject.toml are torch=">=2.1.2".
The text was updated successfully, but these errors were encountered: