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

Dart native support #90

Open
guyluz11 opened this issue Dec 27, 2024 · 5 comments
Open

Dart native support #90

guyluz11 opened this issue Dec 27, 2024 · 5 comments

Comments

@guyluz11
Copy link

guyluz11 commented Dec 27, 2024

I would like to run Pytourch Lite on my server side that use Dart native.
Since we are using pigeon to generate the code, I am wondering how hard it will be to generate code for dart native.
Does pigeon even support generating dart native code?.

@abdelaziz-mahdy
Copy link
Owner

Sadly the binaries to run the models are each into android and iOS sdks,so pure dart version is extremely hard

@guyluz11
Copy link
Author

I see implementations in c++ https://pytorch.org/cppdocs/ and rust tch-rs and maybe even c ATen.

Maybe we can generate it using pigeon or ffi

@abdelaziz-mahdy
Copy link
Owner

Pytorch lite is depreciated and the new package by pytorch is exectorch

The reason that I don't think of going through the effort is that mainly that, maybe when exectorch is stable I may switch to it and make it in cpp

In all ways will need to wait for dart native assets support to include the binaries in the dart build process

@abdelaziz-mahdy
Copy link
Owner

note if you want ffi i tried it already it had a problem with ios, this is why i switched back
https://github.com/abdelaziz-mahdy/pytorch_lite/tree/latest-ffi

and if you are making a backend or ci, python will be the easier solution in the usecase you mentioned

@guyluz11
Copy link
Author

Cool ffi will be good.

I know python is a good option but I prefer my frint end and the back end to have the same programming language so if I have the option I will take it.

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

No branches or pull requests

2 participants