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

Support Arbitrary Matrix Shapes #3

Closed
wants to merge 2 commits into from

Conversation

Xeratec
Copy link
Collaborator

@Xeratec Xeratec commented Sep 24, 2024

This PR introduces initial support for handling arbitrary matrix shapes by adjusting both the Python model and the softmax hardware module.

Changes

Python Model:

  • Modified to golden model for arbitrary shapes by padding the inputs with zeros as needed.
  • Updated to selectively ignore padded input values during the softmax operation

Current Limitations

  • Non-zero biases are not yet supported
  • The HWPE version does not yet work correctly. There is most likely a bug

@Xeratec Xeratec self-assigned this Sep 24, 2024
Important Changes:
- Change scaling of Softmax from 2**7-1 to 2**8-1

Current Limitations:
- Only works without biases
Changes:
- Add register for shape parameters

Current Limitations:
- Only works without biases
@Xeratec
Copy link
Collaborator Author

Xeratec commented Sep 24, 2024

I rebased this branch and opened a new PR to keep a backlog of this version. See #4

@Xeratec Xeratec closed this Sep 24, 2024
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.

1 participant