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

how to save weights #8784

Open
raninbowlalala opened this issue Mar 4, 2025 · 1 comment
Open

how to save weights #8784

raninbowlalala opened this issue Mar 4, 2025 · 1 comment
Labels

Comments

@raninbowlalala
Copy link

raninbowlalala commented Mar 4, 2025

❓ Questions and Help

Hello, I using torchxa to convert model to stablehlo.
https://pytorch.org/xla/master/features/stablehlo.html#torch-export-to-stablehlo
Follow this page,
weights, stablehlo = tx.export.exported_program_to_stablehlo(exported)
print(stablehlo.mlir_module())
Can store weights and/or stablehlo object however you like
But how to store weights, I don't know. I found weights is a list.
Could you help me? Thank you!

Another question, we can save data and functions directory by using torch_xla, how can I save functions by using torchax?

@ysiraichi
Copy link
Collaborator

cc @tengyifei @zpcore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants