forked from ggerganov/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76ddf85
commit 3a9480e
Showing
4 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -89,3 +89,4 @@ examples/jeopardy/results.txt | |
|
||
poetry.lock | ||
poetry.toml | ||
nppBackup |
This file contains 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,21 @@ | ||
|
||
rem MIT license | ||
rem Copyright (C) 2024 Intel Corporation | ||
rem SPDX-License-Identifier: MIT | ||
|
||
mkdir -p build | ||
cd build | ||
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force | ||
|
||
rem for FP16 | ||
rem cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DLLAMA_SYCL_F16=ON # faster for long-prompt inference | ||
|
||
rem for FP32 | ||
cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DCMAKE_BUILD_TYPE=Release | ||
|
||
rem build example/main only | ||
rem make main | ||
|
||
rem build all binary | ||
make | ||
cd .. |
This file contains 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,14 @@ | ||
|
||
rem MIT license | ||
rem Copyright (C) 2024 Intel Corporation | ||
rem SPDX-License-Identifier: MIT | ||
|
||
INPUT2="Building a website can be done in 10 simple steps:\nStep 1:" | ||
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force | ||
|
||
|
||
set GGML_SYCL_DEVICE=0 | ||
rem set GGML_SYCL_DEBUG=1 | ||
.\build\bin\main.exe -m models\llama-2-7b.Q4_0.gguf -p %INPUT2% -n 400 -e -ngl 33 -s 0 | ||
|
||
|