ludwig icon indicating copy to clipboard operation
ludwig copied to clipboard

Ludwig Installation Not Working

Open abedkhooli opened this issue 1 year ago • 8 comments

Tried !pip install ludwig[llm] on both Colab and Kaggle. Then, could not import from the api: from ludwig.api import LudwigModel [OSError: /opt/conda/lib/python3.10/site-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN5torch6detail10class_baseC2ERKSsS3_SsRKSt9type_infoS6_](https://download.pytorch.org/models/text/%3C/span%3E%3Cspan)
Issue seems related to `torchtext' (0.18.0 gets installed). Tried with 0.17.0 and got

AttributeError: module 'torch.library' has no attribute 'register_fake'

Basically, torch and related libraries issues.

abedkhooli avatar Aug 27 '24 16:08 abedkhooli

pip uninstall ludwig torch torchtext pip install torch==2.0.1 torchtext==0.15.2

iterniter avatar Aug 29 '24 13:08 iterniter

@iterniter Did you test it on Colab? Do you mean w/out ludwig in first line? Still error with torch._custom_ops missing.

abedkhooli avatar Aug 29 '24 15:08 abedkhooli

is this issue resolved i am still getting it on collab

amansinghlegitt3110 avatar Sep 27 '24 12:09 amansinghlegitt3110

Tried !pip install ludwig[llm] on both Colab and Kaggle. Then, could not import from the api: from ludwig.api import LudwigModel [OSError: /opt/conda/lib/python3.10/site-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN5torch6detail10class_baseC2ERKSsS3_SsRKSt9type_infoS6_](https://download.pytorch.org/models/text/%3C/span%3E%3Cspan) Issue seems related to `torchtext' (0.18.0 gets installed). Tried with 0.17.0 and got

AttributeError: module 'torch.library' has no attribute 'register_fake'

Basically, torch and related libraries issues.

have yo resolved this

amansinghlegitt3110 avatar Sep 28 '24 06:09 amansinghlegitt3110

Hi @amansinghlegitt3110 thanks for your report. Can you share the notebook on kaggle or colab?

We are currently undergoing an organizational transition with this project and Unfortunately, there was hardly any time to take care of the code base in the last few month. We hope that we will be able to resume work in the next few weeks.

mhabedank avatar Oct 16 '24 03:10 mhabedank

https://colab.research.google.com/github/ludwig-ai/ludwig-docs/blob/master/docs/examples/text_classification/Text_Classification_with_Ludwig_Python_API.ipynb#scrollTo=tZlU04uyDJhR

dexterslabs avatar Oct 18 '24 06:10 dexterslabs

@ethanreidel @skanjila looks like it's related to the whole dependency topic. Furthermore torchtext development is stoped. Looks like we have to find an alternative somewhen.

mhabedank avatar Oct 19 '24 17:10 mhabedank

@amansinghlegitt3110 could you please try to use torchtext 0.17.2? In our setup that worked.

mhabedank avatar Oct 23 '24 21:10 mhabedank

This is still not working on colab

b1n1yam avatar Aug 24 '25 14:08 b1n1yam

Hi @b1n1yam I am not working on this actively anymore. Sadly the changes we would have to make are just to big. From my point of view this project stalled.

mhabedank avatar Sep 04 '25 06:09 mhabedank