8000 AOT Type Hint for Tensor / Block / Block Ptr · Issue #7280 · triton-lang/triton · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
AOT Type Hint for Tensor / Block / Block Ptr #7280
Open
@YixuanSeanZhou

Description

@YixuanSeanZhou

Hi Triton team,

I wan to leverage Triton with AOT compile. I am looking at the fused attention kernel in the triton offical tutorial and I encountered an issue: how to type hint triton for the q tensor in the _attn_fwd_inner. I think q is a tensor, but I was unable to find the corresponding type hint example in compile.py entrypoint. I tried reading the str_to_ty function but it apperas to only be supporting pointer, tensordesc, constexpr.

I was also trying to go back and find an old version of the tutorial in which the _attn_fwd_inner has q being a loaded block and K_block_pt and V_block_ptr being two block pointers. Do we have ways to type hints Block and Block Ptr?

Thank you so much!

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

      0