Skip to content

[Bug] Drafter tries to import flash attention #430

@Dogacel

Description

@Dogacel

from flash_attn import flash_attn_func

This import is not needed,

try:
from flash_attn import flash_attn_func
except:
warnings.warn(
"flash_attn is not found, please install flash_attn if you want to use the flash attention backend"
)

As this import exists.

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