Skip to content

run_pdm_score fails in worker mode due to CUDA unavailable #184

@grandxin

Description

@grandxin

When I run run_pdm_score directly in the main process, everything works fine. However, when using worker_map (which uses Ray for distributed execution), the worker processes fail during model initialization with the following error:

ValueError: FlashAttention2 has been toggled on, but it cannot be used due to the following error:
Flash Attention 2 is not available on CPU. Please make sure torch can access a CUDA device.

so how can I use CUDA in worker map?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions