Fix pin memory and some deprecation warnings
Fix pin memory and some deprecation warnings: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix pin memory and some deprecation warnings
The task
**Title:** Fix pin_memory and some deprecation warnings
Part of scalingX/life-science-SWE1.0.