char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
8300f1411
char/aliceai-t5-moe
files
| CMakeLists.txt | 341 B |
| README.md | 1.4 KiB |
| build.sh | 1.3 KiB |
| ls-sycl-device.cpp | 251 B |
| run-llama2.sh | 1.1 KiB |
| start-svr.sh | 4.0 KiB |
| test.sh | 4.4 KiB |
| update-ops-doc.sh | 210 B |
| win-build-sycl.bat | 1.4 KiB |
| win-run-llama2.bat | 481 B |
| win-start-svr.bat | 4.7 KiB |
| win-test.bat | 5.2 KiB |
| win-update-ops-doc.bat | 204 B |
llama.cpp/example/sycl
This example program provides the tools for llama.cpp for SYCL on Intel GPU.
Tool
| Tool Name | Function | Status |
|---|---|---|
| llama-ls-sycl-device | List all SYCL devices with ID, compute capability, max work group size, etc. | Support |
llama-ls-sycl-device
List all SYCL devices with ID, compute capability, max work group size, etc.
-
Build the llama.cpp for SYCL for the specified target (using GGML_SYCL_TARGET).
-
Enable oneAPI running environment (if GGML_SYCL_TARGET is set to INTEL -default-)
source /opt/intel/oneapi/setvars.sh
- Execute
./build/bin/llama-ls-sycl-device
Check the ID in startup log, like:
found 2 SYCL devices: | | | | |Max | |Max |Global | | | | | | |compute|Max work|sub |mem | | |ID| Device Type| Name|Version|units |group |group|size | Driver version| |--|-------------------|---------------------------------------|-------|-------|--------|-----|-------|---------------------| | 0| [level_zero:gpu:0]| Intel Arc A770 Graphics| 1.3| 512| 1024| 32| 16225M| 1.3.29138| | 1| [level_zero:gpu:1]| Intel UHD Graphics 750| 1.3| 32| 512| 32| 62631M| 1.3.29138|