Skip to content

ImportError in 'from kernels import *': Undefined Symbol in bitsandbytes/libbitsandbytes_cuda117.so #15

Closed

Description

@GavinZhao19

when executing the line from kernels import *. Below is the error trace for reference:

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
...
AttributeError: /root/anaconda3/envs/group_chat/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda117.so: undefined symbol: cdequantize_blockwise_fp16_nf4. Did you mean: 'cdequantize_blockwise_fp32'?

The main issue seems to stem from an undefined symbol cdequantize_blockwise_fp16_nf4 in libbitsandbytes_cuda117.so. The system suggests an alternative cdequantize_blockwise_fp32, but it's unclear if this is a suitable substitute.

Activity

  1. sd3ntato commented on Dec 4, 2023

    @sd3ntato

    same issue here but with cuda118:

    /opt/conda/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda118.so:
    undefined symbol: cdequantize_blockwise_bf16_nf4
    
  2. danielhanchen commented on Dec 4, 2023

    @danielhanchen
    Member

    Oh my interesting @sd3ntato @GavinZhao19

    Can you both tell me approx what GPU, Pytorch version.

    Also can you try ldconfig /usr/lib64-nvidia

  3. GavinZhao19 commented on Dec 5, 2023

    @GavinZhao19
    Author

    @danielhanchen Thanks for your response! Here are the details of my setup:

    • GPUs: I'm using two NVIDIA A800 GPUs.
    • NVIDIA Driver Version: 525.125.06
    • CUDA Version: 12.0
    • Python Version: 3.10.12
    • PyTorch Version: 2.1.1
    • Transformers Library Version: 4.33.2
    • DeepSpeed Version: 0.10.0
  4. danielhanchen commented on Dec 5, 2023

    @danielhanchen
    Member

    @GavinZhao19 Hmmm weird very weird - have you tried making an entirely new env?

  5. danielhanchen commented on Dec 17, 2023

    @danielhanchen
    Member

    @sd3ntato @GavinZhao19 If you found a fix - it'll be cool if you could share how you got it to work!

    Likewise if not, have you tried reinstalling Unsloth? I'll close this issue for now! Reopen whenever!

  6. added a commit that references this issue on Jun 8, 2025
  7. added a commit that references this issue on Jun 25, 2025
  8. added a commit that references this issue on Jul 7, 2025
  9. added a commit that references this issue on Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions