Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this pull request, we add a new API model, "builtin_gguf". It is derived from abetlen/llama-cpp-python#1983
But we can't get a correct results directly, due to some errors on the API of llama-cpp-python. I have post an issue on llama-cpp-python project. In this issue, I give my solution for the specific need in "builtin_gguf" and make some optimization for these APIs. You can modify the code in llama-cpp-python manually according to the issue. But my work can only meet our needs when running within "builtin_gguf". It is not thorough for llama-cpp-python. Thus I do not make a pull request. It is wait for others to solve.
By the way, this API-model is still not complete. Hope you guys can complement it.