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

[SLIM] Make web-llm compatible with SLIM models #219

Merged
merged 4 commits into from
Dec 4, 2023

Conversation

CharlieFRuan
Copy link
Contributor

Make web-llm runtime compatible with SLIM models, a new workflow in mlc-llm. This depends on apache/tvm#16198 and is currently not backward-compatible with non-SLIM model, since we introduced a new global function to TVM.

The main difference is reading the metadata and loading the parameters.

Besides, we now read stop_tokens from the conversation template instead of relying on metadata.

@CharlieFRuan CharlieFRuan changed the title Make web-llm compatible with SLIM models [SLIM] Make web-llm compatible with SLIM models Dec 2, 2023
@CharlieFRuan CharlieFRuan marked this pull request as ready for review December 4, 2023 15:45
@tqchen tqchen merged commit 2f4c4ec into mlc-ai:main Dec 4, 2023
@CharlieFRuan CharlieFRuan deleted the pr-slimify branch February 15, 2024 20:05
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.

2 participants