We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
terminate called after throwing an instance of 'c10::Error' what(): Tried to register multiple backend fallbacks for the same dispatch key Conjugate; previous registration registered at ../aten/src/ATen/ConjugateFallback.cpp:17, new registration registered at ../aten/src/ATen/ConjugateFallback.cpp:17 Exception raised from registerFallback at ../aten/src/ATen/core/dispatch/Dispatcher.cpp:344 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x57 (0x7f1bb717e617 in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libc10-bd5b4540.so) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7f1bb713998d in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libc10-bd5b4540.so) frame #2: c10::Dispatcher::registerFallback(c10::DispatchKey, c10::KernelFunction, std::string) + 0xaff (0x7f1bb8c14c9f in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libtorch_cpu-e86601bd.so) frame #3: torch::Library::_fallback(torch::CppFunction&&) & + 0x217 (0x7f1bb8c59ff7 in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libtorch_cpu-e86601bd.so) frame #4: <unknown function> + 0x17a591f (0x7f1bb89a291f in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libtorch_cpu-e86601bd.so) frame #5: <unknown function> + 0x17a6622 (0x7f1bb89a3622 in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libtorch_cpu-e86601bd.so) frame #6: <unknown function> + 0x170a1d2 (0x7f1bb89071d2 in /usr/local/lib/python3.10/dist-packages/nn_lib/../nn_lib.libs/libtorch_cpu-e86601bd.so) frame #7: <unknown function> + 0x647e (0x7f1d4394647e in /lib64/ld-linux-x86-64.so.2) frame #8: <unknown function> + 0x6568 (0x7f1d43946568 in /lib64/ld-linux-x86-64.so.2) frame #9: _dl_catch_exception + 0xe5 (0x7f1d4374dce5 in /lib/x86_64-linux-gnu/libc.so.6) frame #10: <unknown function> + 0xdff6 (0x7f1d4394dff6 in /lib64/ld-linux-x86-64.so.2) frame #11: _dl_catch_exception + 0x88 (0x7f1d4374dc88 in /lib/x86_64-linux-gnu/libc.so.6) frame #12: <unknown function> + 0xe34e (0x7f1d4394e34e in /lib64/ld-linux-x86-64.so.2) frame #13: <unknown function> + 0x9063c (0x7f1d4366963c in /lib/x86_64-linux-gnu/libc.so.6) frame #14: _dl_catch_exception + 0x88 (0x7f1d4374dc88 in /lib/x86_64-linux-gnu/libc.so.6) frame #15: _dl_catch_error + 0x33 (0x7f1d4374dd53 in /lib/x86_64-linux-gnu/libc.so.6) frame #16: <unknown function> + 0x9012e (0x7f1d4366912e in /lib/x86_64-linux-gnu/libc.so.6) frame #17: dlopen + 0x48 (0x7f1d436696c8 in /lib/x86_64-linux-gnu/libc.so.6) <omitting python frames>
root@1609701376d9:/workspace/prompusie# cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS" PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
Python 3.10.12 Name: torch Version: 2.1.0+cu118 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ Author: PyTorch Team Author-email: packages@pytorch.org License: BSD-3 Location: /usr/local/lib/python3.10/dist-packages Requires: filelock, fsspec, jinja2, networkx, sympy, triton, typing-extensions Required-by: accelerate, clip, flash-attn, invisible-watermark, peft, torchaudio, torchvision, trl, xformers
torch-sys = "0.14.0" pyo3-tch = "0.14.0" tch = "0.14.0"
LIBTORCH_USE_PYTORCH=1 maturin build --manifest-path common/nn/Cargo.toml -o build/common/nn --interpreter python3.10 --release
import torch import my_lib
The text was updated successfully, but these errors were encountered:
I fixed it by adding --skip-auditwheel flag to maturin build
--skip-auditwheel
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: