BalancedLossNLP icon indicating copy to clipboard operation
BalancedLossNLP copied to clipboard

Versioning Problems

Open KemalDrop opened this issue 1 year ago • 3 comments

Python Version: 3.7.6 When I try to train the model with installing requirements.txt during training I am getting "packaging.version.InvalidVersion: Invalid version: '0.10.1,<0.11'". I fixed it by installing a newer version of huggingface -> 4.28.1 however at eval.py I am getting "No module named torch.fx" error with torch==1.7.0. torch.fx was released in newer versions so for inference do I need a different torch version?

KemalDrop avatar May 08 '23 20:05 KemalDrop

Thanks for your interest. I have searched the first error message (packaging.version.InvalidVersion: Invalid version: '0.10.1,<0.11') and it turned out to be some recent issue of packaging module: https://github.com/CompVis/latent-diffusion/issues/207#issuecomment-1378716088 Please let me know if the solution suggested there does not work.

blessu avatar May 16 '23 10:05 blessu

The first one I solved with installing a newer version of huggingface (transformers == 4.28.1) however the second one is still an issue.

KemalDrop avatar May 22 '23 11:05 KemalDrop

torch.fx was added in PyTorch 1.8.0, while the environment required for the experiments is transformers==4.4.2 torch==1.7.0

While you may get it through with a new pytorch version, it can be easier to solve the first one by downgrading the packaging module so that the versions of key modules stay the same.

blessu avatar May 23 '23 05:05 blessu