ludwig-ai / ludwig

Low-code framework for building custom LLMs, neural networks, and other AI models
http://ludwig.ai
Apache License 2.0
11.1k stars 1.19k forks source link

Ludwig Installation Not Working #4025

Open abedkhooli opened 4 weeks ago

abedkhooli commented 4 weeks ago

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.

iterniter commented 3 weeks ago

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

abedkhooli commented 3 weeks ago

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