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

Model loads twice #21

Open
Proryanator opened this issue Aug 9, 2024 · 3 comments
Open

Model loads twice #21

Proryanator opened this issue Aug 9, 2024 · 3 comments

Comments

@Proryanator
Copy link

Hey there! I noticed especially when loading large models, the model is loaded once, then unloaded from memory, then re-loaded.

I believe this has to do with the model being loaded in the .onAppear() which can trigger a reload of the UI (since the language model is stored in state).

I had a similar issue in my own iOS app.

@pcuenca
Copy link
Member

pcuenca commented Aug 9, 2024

Hi @Proryanator! If you solved your issue, would you be interested in submitting a PR to this repo? Otherwise we'll look into it.

Thanks for the report!

@Proryanator
Copy link
Author

Hi @Proryanator! If you solved your issue, would you be interested in submitting a PR to this repo? Otherwise we'll look into it.

Thanks for the report!

I would love to! Lemme open it up when I get some time.

@pcuenca
Copy link
Member

pcuenca commented Aug 9, 2024

That'd be awesome!

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