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

feat: add static method for read model info from gguf #87

Merged
merged 6 commits into from
Nov 16, 2024

Conversation

jhen0409
Copy link
Member

@jhen0409 jhen0409 commented Nov 16, 2024

Currently if we just want to get metadata from a GGUF file, we can initialize context with vocab_only and get metadata then release, but it not fast enough (~300ms).

This PR added a static modelInfo(model: string) for get metadata from a GGUF file, it can get metadata by ~30ms.

TODO:

  • iOS
  • Android
  • Example

@jhen0409 jhen0409 marked this pull request as ready for review November 16, 2024 06:11
@jhen0409 jhen0409 merged commit 8bf9dd8 into main Nov 16, 2024
4 checks passed
@jhen0409 jhen0409 deleted the util-model-info branch November 16, 2024 06:27
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.

1 participant