Skip to content

onnxruntime 1.24 has implicit ml_dtypes dependency #27257

@sirhcm

Description

@sirhcm

Describe the issue

#25678 introduced a dependency on ml_dtypes, but this dependency is not specified in requirements.txt, and as a result is not present when onnx earlier than 1.19 is installed.

To reproduce

$ python3 -m pip install onnx==1.18 onnxruntime
...
$ python3 -c "import onnxruntime.quantization"
...
ModuleNotFoundError: No module named 'ml_dtypes'

Urgency

No response

Platform

Linux

OS Version

Ubuntu 24.04

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.24.1

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

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