官方ONNX Runtime Docker镜像,基于openEuler构建,提供跨平台机器学习推理和训练加速,支持PyTorch、TensorFlow等框架及多种硬件,通过优化和硬件加速提升性能并降低成本。
Quick reference
-
The official ONNX Runtime docker image.
-
Maintained by: openEuler CloudNative SIG.
-
Where to get help: openEuler CloudNative SIG, openEuler.
ONNX Runtime | openEuler
ONNX Runtime is a cross-platform inference and training machine-learning accelerator. ONNX Runtime inference can enable faster customer experiences and lower costs, supporting models from deep learning frameworks such as PyTorch and TensorFlow/Keras as well as classical machine learning libraries such as scikit-learn, LightGBM, XGBoost, etc. ONNX Runtime is compatible with different hardware, drivers, and operating systems, and provides optimal performance by leveraging hardware accelerators where applicable alongside graph optimizations and transforms.
Learn more about on ONNX Runtime Website.
Supported tags and respective Dockerfile links
The tag of each ONNX Runtime docker image is consist of the complete software stack version. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/AI/onnxruntime/1.31.0/24.03-lts-sp4/Dockerfile | onnxruntime 1.31.0 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 1.22.1-oe2403sp2 | ONNX Runtime 1.22.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
Usage
In this usage, users can select the corresponding {Tag} and container startup options based on their requirements.
-
Pull the
openeuler/onnxruntimeimage from dockerbashdocker pull openeuler/onnxruntime:{Tag} -
Start a container
bashdocker run -it --name my-onnxruntime openeuler/onnxruntime:{Tag} -
Container startup options
Option Description --name my-onnxruntimeNames the container my-onnxruntime.-itStarts the container in interactive mode with a terminal. openeuler/onnxruntime:{Tag}Specifies the Docker image to run, replace {Tag}with the specific version tag. -
Verify ONNX Runtime installation
bashdocker run --rm openeuler/onnxruntime:{Tag} python3 -c "import onnxruntime; print(onnxruntime.__version__)" -
To get an interactive shell
bashdocker exec -it my-onnxruntime /bin/bash
Question and answering
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
openeuler 命名空间的其他可用镜像:
openeuler/openeuler
openeuler/open-webui
openeuler/openclaw
openeuler/opencode
openeuler/vllm-ascend
openeuler/kylin
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 onnxruntime 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务