We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug It takes a few seconds to instantiate Model. The app crashes if you close the app.
Model
GenAIModel.cs
private Task InitializeAsync(string modelDir, CancellationToken cancellationToken = default) { return Task.Run( () => { _model = new Model(modelDir); _tokenizer = new Tokenizer(_model); }, cancellationToken); }
To Reproduce Steps to reproduce the behavior:
Expected behavior The app should close without any errors.
Screenshots If applicable, add screenshots to help explain your problem.
Please complete the following information:
Additional context This might be the same for other models.
The text was updated successfully, but these errors were encountered:
We likely need to capture the close event and wait for the sample to clean up resources. @azchohfi ideas?
Sorry, something went wrong.
Yes, that is pretty much it. Working on a PR.
Successfully merging a pull request may close this issue.
Describe the bug
It takes a few seconds to instantiate
Model
. The app crashes if you close the app.GenAIModel.cs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The app should close without any errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
Additional context
This might be the same for other models.
The text was updated successfully, but these errors were encountered: