Skip to content

Conversation

@spandoesai
Copy link
Collaborator

@spandoesai spandoesai commented Oct 16, 2025

Added documentation for:

  1. Instructions on how to run tests locally
  2. Instructions on how to add perf models

[Closes #357 , closes #310 ]

@spandoesai spandoesai requested a review from ajassani October 16, 2025 00:40
# ... parse other params as needed
return { 'q_shape': q_shape, 'k_shape': k_shape, 'v_shape': v_shape, 'dropout': dropout }

@staticmethod
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will override the base class method i believe, so we should not have this


---

## Example: Adding a New Attention Perf Model
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is mostly repeated content from just above

```python
class my_attention_forward(SDPA):
def get_param_details(self, event):
# Example: change indices to match your op's argument order
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we add a real world example of the src function signature and how we get the indices from there?
maybe we can use tri dao flash attention or something like that?

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.

Add tutorial for adding perf model Add tests info to contributing md

3 participants