Skip to content

liger_kernel with Qwen3 Embedding fine-tuning - KeyError: 'last_hidden_state' #5219

@MLKoz2

Description

@MLKoz2

Describe the bug
KeyError: 'last_hidden_state' during fine-tuning Qwen3 Embedding model with liger_kernel

Your hardware and system info
RTX 6000 Ada

Additional context
with liger_kernel false - everything is fine

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