Skip to content

Use ptychoml for VIT inference instead of local edgePtychoViT#16

Merged
Garrett Bischof (gwbischof) merged 2 commits into
mainfrom
use-ptychoml
Apr 16, 2026
Merged

Use ptychoml for VIT inference instead of local edgePtychoViT#16
Garrett Bischof (gwbischof) merged 2 commits into
mainfrom
use-ptychoml

Conversation

@gwbischof

Copy link
Copy Markdown
Collaborator
  • PtychoViTInferenceOp now delegates to ptychoml.PtychoViTInference (stateful session, lazy init, context manager friendly). All the fftshift/spatial-pad/batch-pad logic moves into ptychoml's predict().
  • Drop local holoptycho/edgePtychoViT/ copy (helper_trt.py, build_trt_engine.py).
  • Add ptychoml git dep; remove now-transitive deps (pycuda, onnx, tensorrt-cu12) — ptychoml pulls them.
  • Update DEPLOYMENT.md to point at ptychoml-build-engine CLI and drop the edgePtychoViT volume mount / symlink troubleshooting section.
  • Drop holoptycho.edgePtychoViT from setuptools packages.

- PtychoViTInferenceOp now delegates to ptychoml.PtychoViTInference
  (stateful session, lazy init, context manager friendly). All the
  fftshift/spatial-pad/batch-pad logic moves into ptychoml's predict().
- Drop local holoptycho/edgePtychoViT/ copy (helper_trt.py, build_trt_engine.py).
- Add ptychoml git dep; remove now-transitive deps (pycuda, onnx,
  tensorrt-cu12) — ptychoml pulls them.
- Update DEPLOYMENT.md to point at ptychoml-build-engine CLI and drop
  the edgePtychoViT volume mount / symlink troubleshooting section.
- Drop holoptycho.edgePtychoViT from setuptools packages.

Co-Authored-By: pecomyint <pmyint@anl.gov>
@gwbischof
Garrett Bischof (gwbischof) merged commit 77a49b4 into main Apr 16, 2026
5 checks passed
@gwbischof
Garrett Bischof (gwbischof) deleted the use-ptychoml branch April 16, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant