forked from ggml-org/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Revisited Readme-sycl #1
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
Open
OuadiElfarouki
wants to merge
16
commits into
master
Choose a base branch
from
sycl_update_readme
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
Alcpz
reviewed
Mar 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Suggestions are mostly spaces before colons and NITs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly NITS
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: AidanBeltonS <[email protected]>
Co-authored-by: AidanBeltonS <[email protected]>
Co-authored-by: AidanBeltonS <[email protected]>
Co-authored-by: AidanBeltonS <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
OuadiElfarouki
pushed a commit
that referenced
this pull request
Aug 6, 2024
* [example] batched-bench "segmentation fault" When `llama-batched-bench` is invoked _without_ setting `-npl`, "number of parallel prompts", it segfaults. The segfault is caused by invoking `max_element()` on a zero-length vector, `n_pl` This commit addresses that by first checking to see if the number of parallel prompts is zero, and if so sets the maximum sequence size to 1; otherwise, sets it to the original, the result of `max_element()`. Fixes, when running `lldb build/bin/llama-batched-bench -- -m models/Meta-Llama-3-8B.gguf` ``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x000000010000366c llama-batched-bench`main(argc=3, argv=0x000000016fdff268) at batched-bench.cpp:72:28 69 llama_context_params ctx_params = llama_context_params_from_gpt_params(params); 70 71 // ensure enough sequences are available -> 72 ctx_params.n_seq_max = *std::max_element(n_pl.begin(), n_pl.end()); ``` * Update examples/batched-bench/batched-bench.cpp Co-authored-by: compilade <[email protected]> --------- Co-authored-by: Georgi Gerganov <[email protected]> Co-authored-by: compilade <[email protected]>
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.
Updated & fixed SYCL Readme with an emphasis on the multi-targets (intel GPU & Nvidia GPU so far) capability of the SYCL backend in llama.cpp