-
Notifications
You must be signed in to change notification settings - Fork 1
Add Track 4: Numpy vs Torch tensor conversion benchmark #28
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add PyTorch benchmarking for image-based profiling
Add PyTorch DataLoader benchmarks for OME-Arrow format
Feb 4, 2026
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Copilot
AI
changed the title
Add PyTorch DataLoader benchmarks for OME-Arrow format
Add missing formats and improve label readability in PyTorch benchmark
Feb 4, 2026
…mats are generated Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Copilot
AI
changed the title
Add missing formats and improve label readability in PyTorch benchmark
Optimize DataLoader performance and fix missing format data generation
Feb 4, 2026
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Co-authored-by: d33bs <3738008+d33bs@users.noreply.github.com>
Copilot
AI
changed the title
Optimize DataLoader performance and fix missing format data generation
Add Track 4: Numpy vs Torch tensor conversion benchmark
Feb 6, 2026
Member
|
This was an experiment with GH copilot. Closing this for now with a later follow up which is more careful. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PyTorch benchmark measures end-to-end performance but doesn't separate numpy array loading from tensor conversion overhead. This makes it difficult to identify whether I/O or conversion is the bottleneck.
Changes
New Dataset class:
OMEArrowDatasetNumpynp.ndarrayinstead oftorch.TensorNew benchmark:
benchmark_numpy_vs_torch()Measures three operations separately:
torch.from_numpy().float())Metrics tracked:
Integration:
data/pytorch_benchmark_track4.parquetExample output
Expected conversion overhead: 10-20% for table formats, higher for small images (20-40%), lower for large images (5-10%).
When overhead >30%: Consider zero-copy operations, batched conversions, or staying in torch throughout pipeline.
When overhead <10%: Focus on I/O optimization (storage, caching, workers) rather than conversion.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.