Skip to content

[Enhancement]: use set_cuda_visible_devices instead of original device_map #1426

@xin3he

Description

@xin3he

Problem Description

Image This usage 0.9 is not stable, By setting CUDA_VISIBLE_DEVICES, `get_balanced_memory` will distribute the model evenly across all visible devices.

Reproduction Steps

Currently, we have set_cuda_visible_devices, but only used in eval mode
Image

Environment Information

No response

Error Logs

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions