dllllb / pytorch-lifestream

A library built upon PyTorch for building embeddings on discrete event sequences using self-supervision
Apache License 2.0
215 stars 46 forks source link

[Help] Getting Unexpected Error - on Demo Notebook #119

Open samlakhmani opened 1 year ago

samlakhmani commented 1 year ago

I was running this notebook -

https://colab.research.google.com/github/dllllb/pytorch-lifestream/blob/master/demo/coles-emb.ipynb

image

I tried replacing it with the same given in the documentation and that leads to another Error -

Getting this error when trying to run the Demo, can someone help ? Since the model params are saved in this notebook, I am not being able to explore the other notebooks either

ivkireev86 commented 1 year ago

Hello. This error is because of torch 2.x ptls currently don't support it. Please install torch<2 Some linked libraries may be also downgraded

dllllb commented 1 year ago

Any chances to upgrade ptls for torch 2.x soon? Google Collab has torch 2 pre-installed.

samlakhmani commented 1 year ago

I wasn't able to downgrade all the packages on the colab environment, hence ran it in my local machine. It worked. Thanks

The training time took me 3 hrs

samlakhmani commented 1 year ago

Another highlight - I was not able to implement GPU acceleration in MacOS - via MPS

I tried this - image

image