Fix device allocation in metrics weights
Fix device allocation in metrics weights: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix device allocation in metrics weights
The task
**Title:** Fix device allocation in metrics weights
Part of scalingX/life-science-SWE1.0.