-
Notifications
You must be signed in to change notification settings - Fork 12.2k
sycl : reviewing the backend documentation #13544
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
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6761532
sycl: reviewing and updating docs
Alcpz b01abf5
Fixed wrong UR code
Alcpz ee90037
Improved OOM troubleshooting entry
Alcpz 513a5f9
Module backend formatting
Alcpz 230279d
Removed fixed seed from examples
Alcpz 501891c
Addressing comments in the PR
Alcpz 38e7664
Reverting llama2 -> llama3 changes
Alcpz be018c1
sycl: Improved docs
Alcpz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# MIT license | ||
# Copyright (C) 2025 Intel Corporation | ||
# SPDX-License-Identifier: MIT | ||
|
||
# If you want more control, DPC++ Allows selecting a specific device through the | ||
# following environment variable | ||
#export ONEAPI_DEVICE_SELECTOR="level_zero:0" | ||
source /opt/intel/oneapi/setvars.sh | ||
|
||
#export GGML_SYCL_DEBUG=1 | ||
|
||
#ZES_ENABLE_SYSMAN=1, Support to get free memory of GPU by sycl::aspect::ext_intel_free_memory. Recommended to use when --split-mode = layer. | ||
|
||
INPUT_PROMPT="Building a website can be done in 10 simple steps:\nStep 1:" | ||
MODEL_FILE=models/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf | ||
NGL=99 # Layers offloaded to the GPU. If the device runs out of memory, reduce this value according to the model you are using. | ||
CONTEXT=4096 | ||
|
||
if [ $# -gt 0 ]; then | ||
GGML_SYCL_DEVICE=$1 | ||
echo "Using $GGML_SYCL_DEVICE as the main GPU" | ||
ZES_ENABLE_SYSMAN=1 ./build/bin/llama-cli -m ${MODEL_FILE} -p "${INPUT_PROMPT}" -n 400 -e -ngl ${NGL} -c ${CONTEXT} -mg $GGML_SYCL_DEVICE -sm none | ||
else | ||
#use multiple GPUs with same max compute units | ||
ZES_ENABLE_SYSMAN=1 ./build/bin/llama-cli -m ${MODEL_FILE} -p "${INPUT_PROMPT}" -n 400 -e -ngl ${NGL} -c ${CONTEXT} | ||
fi |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:: MIT license | ||
:: Copyright (C) 2024 Intel Corporation | ||
:: SPDX-License-Identifier: MIT | ||
|
||
set INPUT2="Building a website can be done in 10 simple steps:\nStep 1:" | ||
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force | ||
|
||
|
||
.\build\bin\llama-cli.exe -m models\Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf -p %INPUT2% -n 400 -e -ngl 99 |
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.
Uh oh!
There was an error while loading. Please reload this page.