Skip to content

Add interop with flax (Part 1) #9176

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add interop with flax (Part 1) #9176

wants to merge 4 commits into from

Conversation

qihqi
Copy link
Collaborator

@qihqi qihqi commented May 15, 2025

No description provided.

@qihqi qihqi requested a review from tengyifei May 15, 2025 03:40
@qihqi qihqi force-pushed the hanq_flax branch 2 times, most recently from d6e863f to d2cea85 Compare May 20, 2025 22:45
for k, v in nested_dict.items():
if isinstance(v, dict):
child_module.add_module(k, self._encode_nested_dict(v))
else:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

elif isinstance(v, torch.Tensor):
...

@chandrasekhard2
Copy link
Collaborator

Can we add a reference implementation where both Flax.nn Module and Torch.nn module is called.

@qihqi qihqi enabled auto-merge (squash) June 2, 2025 03:34
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