forked from abetlen/llama-cpp-python
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] main from abetlen:main #4
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
Reviewer's Guide by SourceryThis pull request updates the llama.cpp submodule, exposes several new sampler initialization functions, adds GPT4O vocab type, and bumps the package version. Sequence diagram for llama_sampler_init_top_n_sigmasequenceDiagram
participant User
participant llama_cpp.py
participant C Library
User->>llama_cpp.py: Calls llama_sampler_init_top_n_sigma(n)
llama_cpp.py->>C Library: Calls llama_sampler_init_top_n_sigma(n) (ctypes function)
C Library-->>llama_cpp.py: Returns llama_sampler_p
llama_cpp.py-->>User: Returns llama_sampler_p
Sequence diagram for llama_sampler_init_grammar_lazy_patternssequenceDiagram
participant User
participant llama_cpp.py
participant C Library
User->>llama_cpp.py: Calls llama_sampler_init_grammar_lazy_patterns(vocab, grammar_str, grammar_root, trigger_patterns, num_trigger_patterns, trigger_tokens, num_trigger_tokens)
llama_cpp.py->>C Library: Calls llama_sampler_init_grammar_lazy_patterns(vocab, grammar_str, grammar_root, trigger_patterns, num_trigger_patterns, trigger_tokens, num_trigger_tokens) (ctypes function)
C Library-->>llama_cpp.py: Returns llama_sampler_p
llama_cpp.py-->>User: Returns llama_sampler_p
Updated class diagram for llama_samplerclassDiagram
class llama_sampler {
-struct llama_sampler_i* iface
-llama_sampler_context_t ctx
}
note for llama_sampler "iface is now a const pointer"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Update llama.cpp to ggml-org/llama.cpp@7841fc7, including adding support for GPT4O and lazy grammar samplers.
New Features: