Repository navigation
support multi gpu for golden dataset generation - #222
Conversation
Performance Comparison
|
2732f16 to
cba4ebc
Compare
|
The author of this PR, rui-ren, is not an activated member of this organization on Codecov. |
There was a problem hiding this comment.
Pull request overview
Adds support for using HuggingFace device_map="auto" (multi-GPU sharding) when generating golden references, by ensuring processor outputs are moved to a concrete torch device instead of the literal "auto" string.
Changes:
- Update vision-language golden generation to handle
--device autoby moving processed inputs to the model’s first parameter device. - Avoid calling
BatchEncoding.to("auto"), which would otherwise error.
|
Is the copilot comment reasonable? |
Thank you for your approval. |
…s://github.com/onnxruntime/mobius into ruiren/enable-multi-gpu-for-golden-dataset-gen
Copilot's suggestion is correct, and we need to enable all the data generation to have multiple GPU. e.g: |
Description
When generating golden dataset for large models, existing command with
--device cudaonly use 1 gpu and causes OOM issue.Fixes
Auto detect
gpuwhen generating dataset.