Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip ci] ViT TTNN Tech Report #12800

Merged
merged 23 commits into from
Sep 22, 2024
Merged

[skip ci] ViT TTNN Tech Report #12800

merged 23 commits into from
Sep 22, 2024

Conversation

mbahnasTT
Copy link
Contributor

@mbahnasTT mbahnasTT commented Sep 18, 2024

Ticket

Link to Github Issue

Problem description

Provide context for the problem.

What's changed

Describe the approach used to solve the problem.
Summarize the changes made and its impact.

Checklist

  • Post commit CI passes
  • Blackhole Post commit (if applicable)
  • Model regression CI testing passes (if applicable)
  • Device performance regression CI testing passes (if applicable)
  • New/Existing tests provide coverage for changes


` seqL × head_count × head_size`

This step aggregates the outputs from the different heads into a single vector representation for each position in the sequence. The followin step is the Linear OP to calculate the self output, which is the output of the self multi-head attention module.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

followin -> following

```

#### 4.4.1 Q,K,V Generation using the Fused Linear OP
The encoder input is matrix-mutiplied by the Q,K,V weights to generate the individual Query, Key, Value tensors. In the TT-NN implementation, the input is multipled by the pre-fused weights to generate the merged 3 tensors that will be split in a following step. The fused linear operation obective is to maximize the utilization by increasing the workload that is computed simultaneously on the Tensic core grid.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: multipled, obective

@mbahnasTT mbahnasTT changed the title ViT TTNN Tech Report [skip ci] ViT TTNN Tech Report Sep 22, 2024
@mbahnasTT mbahnasTT merged commit 44eef17 into main Sep 22, 2024
6 checks passed
@mbahnasTT mbahnasTT deleted the mbahnas/vit_tech_report branch September 22, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants