Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker and podman package in python driver #3087

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chentong319
Copy link
Collaborator

@chentong319 chentong319 commented Feb 25, 2025

Previous driver only works with python docker package. This PR adds the support for podman package.
The interface of the docker and podman package is the same for the features used in this driver so far.
Another change in this PR is to pull the image if it does not exist locally.

Three cases tested:
Inside onnx-mlir-dev container:
sess = onnxmlir.InferenceSession("gather-2.mlir", compiler_path="../build-2024/Debug/bin/onnx-mlir", compiler_image_name=None)

outside container:

  1. sess = onnxmlir.InferenceSession("gather-2.mlir", compiler_container_engine="docker")
  2. sess = onnxmlir.InferenceSession("gather-2.mlir", compiler_container_engine="podman")

Signed-off-by: Chen Tong <[email protected]>
Signed-off-by: Chen Tong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants