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

Not able to find `GLIBCXX_3.4.32' #980

Open
iffishells opened this issue Oct 30, 2024 · 1 comment
Open

Not able to find `GLIBCXX_3.4.32' #980

iffishells opened this issue Oct 30, 2024 · 1 comment

Comments

@iffishells
Copy link

After quantizing the model i am loading model to cuda then this error has come oftenly.

[/home/ubuntu/miniconda3/envs/dev-2/lib/python3.12/site-packages/optimum/quanto/library/ops.py:66](http://13.48.147.30:8001/lab/workspaces/auto-H/tree/LogoMaker/App/miniconda3/envs/dev-2/lib/python3.12/site-packages/optimum/quanto/library/ops.py#line=65): UserWarning: An exception was raised while calling the optimized kernel for quanto::unpack: /home/ubuntu/miniconda3/envs/dev-2/lib/python3.12/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by [/home/ubuntu/miniconda3/envs/dev-2/lib/python3.12/site-packages/optimum/quanto/library/extensions/cuda/build/quanto_cuda.so](http://13.48.147.30:8001/lab/workspaces/auto-H/tree/LogoMaker/App/miniconda3/envs/dev-2/lib/python3.12/site-packages/optimum/quanto/library/extensions/cuda/build/quanto_cuda.so)) Falling back to default implementation.
  warnings.warn(message + " Falling back to default implementation.")
@iffishells
Copy link
Author

for libname in ["quanto", "quanto_py", "quanto_ext"]:
torch.library.define(f"{libname}::{name}", schema)

# Provide the inplementation for all dispatch keys in the main library
@torch.library.impl(f"quanto::{name}", "default")
def impl(*args, **kwargs):
    if _ext_enabled:
        try:
            return getattr(torch.ops.quanto_ext, name)(*args, **kwargs)
        except Exception as e:
            if isinstance(e, NotImplementedError):
                message = f"No optimized kernel found for quanto::{name}."
            else:
                message = f"An exception was raised while calling the optimized kernel for quanto::{name}: {e}"
            warnings.warn(message + " Falling back to default implementation.")
    return getattr(torch.ops.quanto_py, name)(*args, **kwargs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant