Skip to content

Convert LlamaAttention as 1 op (attention) #160

@glistening

Description

@glistening

onert would like to run llama model.

Llama has attention block, which is defined as LlamaAttention in modeling_llama.py from HF.

I would like to merge the all opcodes (includign RoPE) from LlamaAttention as 1 opcode ( attention ).
(All I need is attention.)
(I am going to add attention op in circle schema.)

It looks similar to #90.

But it is different:

What would be the best way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions