Skip to content

attention_backend is hard-coded to "fa3", making sglang.attention_backend config option ineffective #2769

@zzs97str

Description

@zzs97str

Hi there,

I noticed that in the current codebase, the attention_backend is hard-coded to "fa3" in verl/workers/rollout/sglang_rollout/sglang_rollout.py line 463 464

attention_backend = "fa3" # hard-coded

However, the configuration already exposes a user-configurable option via:
actor_rollout_ref.rollout.engine_kwargs.sglang.attention_backend

Unfortunately, due to the hard-coded value, the configuration setting is currently ignored, rendering the option non-functional.

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