Skip to content

cuda : the product in front of the conv state concat is its own launch #116

Closed

Description

@rafasmour

The short conv block of LFM2 / LFM3 builds the conv input as B * x (two parts of the in_proj output), appends it to the conv state and stores the last columns back into the state. The concat and the store already run as one kernel (concat_dim0_store_f32); the product in front of it is a k_bin_bcast launch per conv layer: 13 per token on LFM3 1.7B (rocprofv3 kernel trace on an RX 7900 XT).

The concat + store kernel reads every value of the product once (twice for the columns that go into the state), so it can compute it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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