Skip to content

RuntimeError: imag is not implemented for tensors with non-complex dtypes #12

@thet0ast3r

Description

@thet0ast3r

Hi, im facing an issue with an m3 macbook air,
i installed all requirements for mlx according to the instructions and tried running:

python convert.py --torch-name-or-path large-v3-turbo

however, i only get this error, pretty often:

Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/Users/tobi-mba/priv/liteASR/LiteASR/src/mlx/mlx_whisper/convert.py", line 240, in remap
    value = mx.array(value.detach())
RuntimeError: imag is not implemented for tensors with non-complex dtypes.
Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/Users/tobi-mba/priv/liteASR/LiteASR/src/mlx/mlx_whisper/convert.py", line 240, in remap
    value = mx.array(value.detach())
RuntimeError: imag is not implemented for tensors with non-complex dtypes.
Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/Users/tobi-mba/priv/liteASR/LiteASR/src/mlx/mlx_whisper/convert.py", line 240, in remap
    value = mx.array(value.detach())
RuntimeError: imag is not implemented for tensors with non-complex dtypes.
Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/Users/tobi-mba/priv/liteASR/LiteASR/src/mlx/mlx_whisper/convert.py", line 240, in remap

Sadly i can't really come up with a fix, is there someone that can point me at the root cause of this?

python 3.13, macos 15.3.2

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