Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ImportError when installing on an EC2 instance #273

Open
2 tasks done
melopeo opened this issue Jan 28, 2025 · 0 comments
Open
2 tasks done

[BUG] ImportError when installing on an EC2 instance #273

melopeo opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@melopeo
Copy link

melopeo commented Jan 28, 2025

Bug report checklist

  • I provided code that demonstrates a minimal reproducible example.
  • I confirmed bug exists on the latest mainline of Chronos via source install.

Describe the bug
After installing chronos in editable version, I get the following torch related issue:

import chronos
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "XXXX/python3.9/site-packages/chronos/__init__.py", line 4, in <module>
    from .base import BaseChronosPipeline, ForecastType
  File "XXXX/python3.9/site-packages/chronos/base.py", line 12, in <module>
    import torch
  File "XXXX/python3.9/site-packages/torch/__init__.py", line 367, in <module>
    from torch._C import *  # noqa: F403
ImportError: XXXX/python3.9/site-packages/torch/lib/../../nvidia/cusparse/lib/libcusparse.so.12: undefined symbol: __nvJitLinkComplete_12_4, version libnvJitLink.so.12

One quick way to overcome this is the following

pip uninstall torch
pip install torch --index-url https://download.pytorch.org/whl/cu121

This is potentially related to pytorch/pytorch#134929

Expected behavior
No error shown.

To reproduce
pip install -e .

Environment description
Operating system: Ubuntu 22.04
Python version: 3.9
CUDA version: Build cuda_12.1.r12.1/compiler.32688072_0
PyTorch version: 2.5.1
HuggingFace transformers version: 4.47.1
HuggingFace accelerate version: 0.34.2

@melopeo melopeo added the bug Something isn't working label Jan 28, 2025
@lostella lostella changed the title [BUG] [BUG] ImportError when installing on an EC2 instance Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant