Skip to content

[User] Crash: Undefined symbol "csinl" in convert.py #3511

Closed
@lyjia

Description

@lyjia

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest code. Development is very rapid so there are no tagged versions as of now.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior

Running convert.py to convert a model to gguf is expected to run and perform the conversion.

Current Behavior

convert.py crashes with the following:

Traceback (most recent call last):
  File "/home/tom/.local/lib/python3.11/site-packages/numpy/core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/home/tom/.local/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/home/tom/.local/lib/python3.11/site-packages/numpy/core/overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
ImportError: /home/tom/.local/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311.so: Undefined symbol "csinl"

Environment and Context

This is an Intel x64 server running FreeBSD 13.1.

After researching this issue it appears to be a problem with numpy on this particular OS, as it appears to be discussed and resolved here: numpy/numpy#22850

numpy 1.24.4 appears to include the fix from the above issue.

  • Physical (or virtual) hardware you are using, e.g. for Linux:
Architecture:            amd64
Byte Order:              Little Endian
Total CPU(s):            32
Thread(s) per core:      2
Core(s) per socket:      8
Socket(s):               2
Vendor:                  GenuineIntel
CPU family:              6
Model:                   62
Model name:              Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
Stepping:                4
L1d cache:               32K
L1i cache:               32K
L2 cache:                256K
L3 cache:                20M
Flags:                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 cflsh ds acpi mmx fxsr sse sse2 ss htt tm pbe sse3 pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline aes xsave osxsave avx f16c rdrnd fsgsbase smep erms syscall nx pdpe1gb rdtscp lm lahf_lm
  • Operating System, e.g. for Linux:

FreeBSD 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

  • SDK version, e.g. for Linux:
Python version: 3.11.5
Make version : GNU Make 4.3
g++ version: n/a

Resolution

Changing the numpy requirement in requirements.txt to 1.24.4 and reinstalling (python -m pip install -r requirements.txt) resolves the issue and allows convert.py to run without problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions