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

feat: initial nnx port #3

Merged
merged 34 commits into from
Sep 29, 2024
Merged

feat: initial nnx port #3

merged 34 commits into from
Sep 29, 2024

Conversation

ariG23498
Copy link
Collaborator

Fixes #2

@SauravMaheshkar SauravMaheshkar added feature 🚀 New feature or request documentation 📖 Improvements or additions to documentation labels Sep 13, 2024
@SauravMaheshkar SauravMaheshkar added this to the v0.0.01 milestone Sep 13, 2024
from jflux.math import attention, rope, apply_rope


@pytest.mark.xfail
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ariG23498 I've temporarily added this because the tests are failing. Might be because I'm running on a non GPU machine (M1 macbook)

expected_shape = (self.batch_size, self.seq_len, self.dim // 2, 2, 2)

self.assertEqual(
rope_output.shape, expected_shape, "rope function output shape is incorrect"
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SauravMaheshkar SauravMaheshkar changed the title [WIP] Porting pytorch to flax feat: initial nnx port Sep 16, 2024
@ariG23498 ariG23498 merged commit 0e8491f into main Sep 29, 2024
11 checks passed
@ariG23498
Copy link
Collaborator Author

Merging this and working on a different branch for the later updates!

@ariG23498 ariG23498 deleted the aritra/modules branch October 7, 2024 13:47
@SauravMaheshkar SauravMaheshkar linked an issue Oct 9, 2024 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📖 Improvements or additions to documentation feature 🚀 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

port modules to flax Roadmap
2 participants