Conversation
johannaSommer
approved these changes
Oct 20, 2025
4f8f23d to
06c8c5d
Compare
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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
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.
Description
Related Issue
Fixes #(issue number)
Type of Change
How Has This Been Tested?
Checklist
Additional Notes
Note
Revamps device management across engine/evaluation/metrics with accelerate-aware utilities, adds a new image sharpness metric, updates tutorials/docs, and expands tests for multi-device compatibility.
device_to_string,split_device,find_bytes_free_per_gpu, enhancedset_to_best_available_device,_resolve_cuda_device, andmove_to_devicewith accelerate device map support and GPTQ consistency.get_devicenow preserves indices and accelerate state; unify batch device moves viamove_batch_to_deviceinInferenceHandler.Tasknow auto-selects devices, separates inference vs. stateful metric devices (stateful_metric_device,low_memory), and builds metrics accordingly.EvaluationAgentensures model/task device consistency, preserves/restores device map, and runs metrics on correct devices.runs_on/device validation and movement inStatefulMetric/BaseMetricand metric implementations.SharpnessMetricfor blind IQA and export viametrics/__init__.py.runs_on,move_to_device).move_to_device(...)helper.trufflehoginvocation and refine local grep hook.Written by Cursor Bugbot for commit 72c8c4a. This will update automatically on new commits. Configure here.