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

Add support for file load progress reporting callbacks #434

Merged
merged 8 commits into from
Mar 25, 2023

Conversation

j-f1
Copy link
Collaborator

@j-f1 j-f1 commented Mar 23, 2023

A new pair of properties have been added to llama_context_params, a function pointer and an arbitrary context pointer that will be passed to the function pointer along with estimated read progress. The handler will be called (if provided) whenever dots are printed out while loading the model.

@j-f1
Copy link
Collaborator Author

j-f1 commented Mar 23, 2023

Good ideas! Updated.

@ggerganov ggerganov merged commit 58e6c9f into master Mar 25, 2023
@ggerganov ggerganov deleted the jed/load-progress branch March 25, 2023 05:26
Deadsg pushed a commit to Deadsg/llama.cpp that referenced this pull request Dec 19, 2023
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