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

Support Delete All Data Interface #314

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

DiegoCao
Copy link
Member

@DiegoCao DiegoCao commented Feb 26, 2024

Support async delete functions for the users

@DiegoCao DiegoCao marked this pull request as draft February 26, 2024 18:30
@DiegoCao DiegoCao marked this pull request as ready for review February 26, 2024 20:10
Copy link
Contributor

@CharlieFRuan CharlieFRuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, thank you!

Let's move these functions to a separate file, say src/cache_utils.py so that chat_module.ts is not too crowded. We just need to change index.ts accordingly.

Besides, I think we can combine deleteNDArrayInCache() and deleteTokenizerInCache() into a single function, since both reside in webllm/model.

@DiegoCao
Copy link
Member Author

Thanks! I just moved the functions to cache_util.ts and change corresponding index.ts and tested it.

@CharlieFRuan
Copy link
Contributor

Thank you!

@CharlieFRuan CharlieFRuan merged commit dce0e52 into mlc-ai:main Feb 27, 2024
CharlieFRuan added a commit that referenced this pull request Mar 2, 2024
The new version include 2 changes:
- Include cache deletion API via
#314
- Fix model download/caching issue on TVMjs side via
apache/tvm#16650
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

Successfully merging this pull request may close these issues.

None yet

2 participants