get_max_memory() adds a separate cpu entry on integrated CUDA GPUs, double-counting shared RAM (GB10 / DGX Spark)

该问题出现在 NVIDIA GB10 / DGX Spark 这类集成 CUDA 显存的设备上,`get_max_memory()` 会同时输出设备显存条目和独立的 `cpu` 内存条目,导致同一块物理内存被重复计算。优先检查 `get_max_memory()` 返回的字典中是否存在 `cpu`








