refactor: extract device detection to utils/device.py (CUDA→MPS→CPU) e9956a9 unverified yusiwen commited on 7 days ago