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

Converting PyTorch Models to TensorFlow/TFLite with Training Support for Edge Devices #339

Open
AdwaithAnand opened this issue Nov 5, 2024 · 1 comment
Assignees

Comments

@AdwaithAnand
Copy link

Description of the bug:

I am currently working on a project that involves converting a trained PyTorch model to LiteRT and deploying to edge devices. I need the LiteRT model to have training capabilities (for all trainable layers) with the addition of appropriate signatures.

I need some guidance regarding the process of converting a PyTorch model into a TensorFlow or LiteRT model using pytorch_converter, while retaining training capabilities for edge-based fine-tuning.

Does the converter support the creation of a trainable graph of tensorflow or LiteRT during conversion from a pytorch model?

Actual vs expected behavior:

No response

Any other information you'd like to share?

I already tried setting the pytorch model to .train() mode and converting it. But, even though few additional layers were added when compared to the one converted in .eval mode, the model generated is not actually trainable (frozen graph).

@pkgoogle pkgoogle added the type:feature For feature requests label Nov 5, 2024
@pkgoogle pkgoogle self-assigned this Nov 5, 2024
@pkgoogle
Copy link
Contributor

pkgoogle commented Nov 5, 2024

Hi @AdwaithAnand, I don't see documentation specific for this repo. We do have documentation using an older workflow: https://ai.google.dev/edge/litert/models/ondevice_training. I will log this as a feature request for now.

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

No branches or pull requests

2 participants