Skip to content

Bug: SYCL error #9241

Closed
Closed

Description

@DDXDB

What happened?

Native API failed. Native API returns: -999 (Unknown PI error) -999 (Unknown PI error)
Exception caught at file:D:/a/llama.cpp/llama.cpp/ggml/src/ggml-sycl.cpp, line:4207, func:operator()
SYCL error: CHECK_TRY_ERROR((*stream).memcpy((char *)tensor->data + offset, host_buf, size) .wait()): Meet error in this line code!
in function ggml_backend_sycl_buffer_set_tensor at D:/a/llama.cpp/llama.cpp/ggml/src/ggml-sycl.cpp:4207
D:\a\llama.cpp\llama.cpp\ggml\src\ggml-sycl\common.hpp:107: SYCL error

Name and Version

version: 3616 (11b84eb)
built with MSVC 19.40.33813.0 for

What operating system are you seeing the problem on?

windows11 23H2

Relevant log output

Active code page: 65001
:: initializing oneAPI environment...
   Initializing Visual Studio command-line environment...
   Visual Studio version 17.11.0 environment configured.
   "C:\Program Files\Microsoft Visual Studio\2022\Community\"
   Visual Studio command-line environment initialized for: 'x64'
:  advisor -- latest
:  compiler -- latest
:  dal -- latest
:  debugger -- latest
:  dev-utilities -- latest
:  dnnl -- latest
:  dpcpp-ct -- latest
:  dpl -- latest
:  ipp -- latest
:  ippcp -- latest
:  mkl -- latest
:  ocloc -- latest
:  tbb -- latest
:  vtune -- latest
:: oneAPI environment initialized ::
INFO [                    main] build info | tid="22908" timestamp=1724947942 build=3616 commit="11b84eb4"
INFO [                    main] system info | tid="22908" timestamp=1724947942 n_threads=6 n_threads_batch=-1 total_threads=12 system_info="AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 | "
INFO [                    main] HTTP server is listening | tid="22908" timestamp=1724947942 hostname="0.0.0.0" port="8080" n_threads_http="11"
INFO [                    main] loading model | tid="22908" timestamp=1724947942 hostname="0.0.0.0" port="8080" n_threads_http="11"
llama_model_loader: loaded meta data with 20 key-value pairs and 483 tensors from F:\llama.cpp\models\qwen1.5-14b-vntl.Q4_K_S.gguf (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv   0:                       general.architecture str              = qwen2
llama_model_loader: - kv   1:                               general.name str              = Qwen1.5-14B-Chat-jp2zh-fp16
llama_model_loader: - kv   2:                          qwen2.block_count u32              = 40
llama_model_loader: - kv   3:                       qwen2.context_length u32              = 32768
llama_model_loader: - kv   4:                     qwen2.embedding_length u32              = 5120
llama_model_loader: - kv   5:                  qwen2.feed_forward_length u32              = 13696
llama_model_loader: - kv   6:                 qwen2.attention.head_count u32              = 40
llama_model_loader: - kv   7:              qwen2.attention.head_count_kv u32              = 40
llama_model_loader: - kv   8:                       qwen2.rope.freq_base f32              = 1000000.000000
llama_model_loader: - kv   9:     qwen2.attention.layer_norm_rms_epsilon f32              = 0.000001
llama_model_loader: - kv  10:                          general.file_type u32              = 14
llama_model_loader: - kv  11:                       tokenizer.ggml.model str              = gpt2
llama_model_loader: - kv  12:                      tokenizer.ggml.tokens arr[str,152064]  = ["!", "\"", "#", "$", "%", "&", "'", ...
llama_model_loader: - kv  13:                  tokenizer.ggml.token_type arr[i32,152064]  = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
llama_model_loader: - kv  14:                      tokenizer.ggml.merges arr[str,151387]  = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",...
llama_model_loader: - kv  15:                tokenizer.ggml.eos_token_id u32              = 151645
llama_model_loader: - kv  16:            tokenizer.ggml.padding_token_id u32              = 151643
llama_model_loader: - kv  17:                tokenizer.ggml.bos_token_id u32              = 151643
llama_model_loader: - kv  18:                    tokenizer.chat_template str              = {% for message in messages %}{% if lo...
llama_model_loader: - kv  19:               general.quantization_version u32              = 2
llama_model_loader: - type  f32:  201 tensors
llama_model_loader: - type q5_0:   35 tensors
llama_model_loader: - type q5_1:    5 tensors
llama_model_loader: - type q4_K:  237 tensors
llama_model_loader: - type q5_K:    4 tensors
llama_model_loader: - type q6_K:    1 tensors
llm_load_vocab: missing pre-tokenizer type, using: 'default'
llm_load_vocab:
llm_load_vocab: ************************************
llm_load_vocab: GENERATION QUALITY WILL BE DEGRADED!
llm_load_vocab: CONSIDER REGENERATING THE MODEL
llm_load_vocab: ************************************
llm_load_vocab:
llm_load_vocab: special tokens cache size = 421
llm_load_vocab: token to piece cache size = 0.9352 MB
llm_load_print_meta: format           = GGUF V3 (latest)
llm_load_print_meta: arch             = qwen2
llm_load_print_meta: vocab type       = BPE
llm_load_print_meta: n_vocab          = 152064
llm_load_print_meta: n_merges         = 151387
llm_load_print_meta: vocab_only       = 0
llm_load_print_meta: n_ctx_train      = 32768
llm_load_print_meta: n_embd           = 5120
llm_load_print_meta: n_layer          = 40
llm_load_print_meta: n_head           = 40
llm_load_print_meta: n_head_kv        = 40
llm_load_print_meta: n_rot            = 128
llm_load_print_meta: n_swa            = 0
llm_load_print_meta: n_embd_head_k    = 128
llm_load_print_meta: n_embd_head_v    = 128
llm_load_print_meta: n_gqa            = 1
llm_load_print_meta: n_embd_k_gqa     = 5120
llm_load_print_meta: n_embd_v_gqa     = 5120
llm_load_print_meta: f_norm_eps       = 0.0e+00
llm_load_print_meta: f_norm_rms_eps   = 1.0e-06
llm_load_print_meta: f_clamp_kqv      = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: f_logit_scale    = 0.0e+00
llm_load_print_meta: n_ff             = 13696
llm_load_print_meta: n_expert         = 0
llm_load_print_meta: n_expert_used    = 0
llm_load_print_meta: causal attn      = 1
llm_load_print_meta: pooling type     = 0
llm_load_print_meta: rope type        = 2
llm_load_print_meta: rope scaling     = linear
llm_load_print_meta: freq_base_train  = 1000000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_ctx_orig_yarn  = 32768
llm_load_print_meta: rope_finetuned   = unknown
llm_load_print_meta: ssm_d_conv       = 0
llm_load_print_meta: ssm_d_inner      = 0
llm_load_print_meta: ssm_d_state      = 0
llm_load_print_meta: ssm_dt_rank      = 0
llm_load_print_meta: ssm_dt_b_c_rms   = 0
llm_load_print_meta: model type       = 13B
llm_load_print_meta: model ftype      = Q4_K - Small
llm_load_print_meta: model params     = 14.17 B
llm_load_print_meta: model size       = 7.97 GiB (4.83 BPW)
llm_load_print_meta: general.name     = Qwen1.5-14B-Chat-jp2zh-fp16
llm_load_print_meta: BOS token        = 151643 '<|endoftext|>'
llm_load_print_meta: EOS token        = 151645 '<|im_end|>'
llm_load_print_meta: PAD token        = 151643 '<|endoftext|>'
llm_load_print_meta: LF token         = 148848 'ÄĬ'
llm_load_print_meta: EOT token        = 151645 '<|im_end|>'
llm_load_print_meta: max token length = 256
ggml_sycl_init: GGML_SYCL_FORCE_MMQ:   no
ggml_sycl_init: SYCL_USE_XMX: yes
ggml_sycl_init: found 2 SYCL devices:
llm_load_tensors: ggml ctx size =    0.64 MiB
llm_load_tensors: offloading 40 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloaded 41/41 layers to GPU
llm_load_tensors:      SYCL0 buffer size =  5005.04 MiB
llm_load_tensors:      SYCL1 buffer size =  2739.81 MiB
llm_load_tensors:        CPU buffer size =   417.66 MiB
.........................................................................................
llama_new_context_with_model: n_ctx      = 32768
llama_new_context_with_model: n_batch    = 2048
llama_new_context_with_model: n_ubatch   = 512
llama_new_context_with_model: flash_attn = 0
llama_new_context_with_model: freq_base  = 1000000.0
llama_new_context_with_model: freq_scale = 1
[SYCL] call ggml_check_sycl
ggml_check_sycl: GGML_SYCL_DEBUG: 0
ggml_check_sycl: GGML_SYCL_F16: no
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.5|    512|    1024|   32| 16704M|            1.3.30398|
| 1| [level_zero:gpu:1]|                Intel Arc A750 Graphics|    1.5|    448|    1024|   32|  8319M|            1.3.30398|
llama_kv_cache_init:      SYCL0 KV buffer size = 17920.00 MiB
llama_kv_cache_init:      SYCL1 KV buffer size =  7680.00 MiB
llama_new_context_with_model: KV self size  = 25600.00 MiB, K (f16): 12800.00 MiB, V (f16): 12800.00 MiB
llama_new_context_with_model:  SYCL_Host  output buffer size =     1.16 MiB
llama_new_context_with_model:      SYCL0 compute buffer size =  2664.00 MiB
llama_new_context_with_model:      SYCL1 compute buffer size =  2664.00 MiB
llama_new_context_with_model:  SYCL_Host compute buffer size =    74.01 MiB
llama_new_context_with_model: graph nodes  = 1406
llama_new_context_with_model: graph splits = 3
Native API failed. Native API returns: -999 (Unknown PI error) -999 (Unknown PI error)
Exception caught at file:D:/a/llama.cpp/llama.cpp/ggml/src/ggml-sycl.cpp, line:4207, func:operator()
SYCL error: CHECK_TRY_ERROR((*stream).memcpy((char *)tensor->data + offset, host_buf, size) .wait()): Meet error in this line code!
  in function ggml_backend_sycl_buffer_set_tensor at D:/a/llama.cpp/llama.cpp/ggml/src/ggml-sycl.cpp:4207
D:\a\llama.cpp\llama.cpp\ggml\src\ggml-sycl\common.hpp:107: SYCL error

Activity

  1. added
    critical severity
    on Aug 29, 2024
  2. NeoZhangJianyu commented on Aug 30, 2024

    @NeoZhangJianyu
    Contributor

    Could you share the whole cmd line and the link of GGUF file?

  3. DDXDB commented on Aug 31, 2024

    @DDXDB
    ContributorAuthor

    Could you share the whole cmd line and the link of GGUF file?

    This is a complete CMD cil, GGUF is https://huggingface.co/Qwen/Qwen1.5-14B-Chat-GGUF
    But I don't think there's a problem with GGUF, plus the final "D:\a\llama.cpp\llama.cpp\ggml\src\ggml-sycl\common.hpp" doesn't seem to exist on my computer

  4. NeoZhangJianyu commented on Sep 3, 2024

    @NeoZhangJianyu
    Contributor

    @DDXDB
    I wan to know whole CMD with parameters.

  5. DDXDB commented on Sep 6, 2024

    @DDXDB
    ContributorAuthor

    @DDXDB I wan to know whole CMD with parameters.

    @echo off   
    chcp 65001   
    
    call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64
    
    
    build\bin\llama-server.exe -m models\qwen1.5-14b-vntl.Q4_K_S.gguf -e -ngl 99 --alias ALIAS -sm none -mg 1 
    
  6. github-actions commented on Oct 21, 2024

    @github-actions
    Contributor

    This issue was closed because it has been inactive for 14 days since being marked as stale.

  7. aaricantto commented on Jan 11, 2026

    @aaricantto

    Quick question since this looks very similar to what I’m seeing now:
    Did you ever check whether “Above 4G Decoding” was enabled in your motherboard BIOS?

    I’ve run into the same kind of SYCL / device memory errors, and this setting can cause exactly these failures on multi-GPU systems if it’s disabled.

    edit: additional context

    print_info: max token length = 256
    
    load_tensors: loading model tensors, this can take a while... (mmap = true)
    load_tensors: offloading 48 repeating layers to GPU
    load_tensors: offloading output layer to GPU
    load_tensors: offloaded 49/49 layers to GPU
    load_tensors: SYCL0 model buffer size = 8485.23 MiB
    load_tensors: SYCL1 model buffer size = 8189.14 MiB
    load_tensors: CPU_Mapped model buffer size = 166.92 MiB
    .................................................................................................
    
    Native API failed. Native API returns: 31 (UR_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_SIZE)
    Exception caught at file:
    D:\actions-runner\release-cpp-oneapi_2024_2\_work\llm.cpp\llm.cpp\llama-cpp-bigdl\ggml\src\ggml-sycl\ggml-sycl.cpp:2093
    func: operator()
    
    llama_context: constructing llama_context
    llama_context: n_seq_max      = 1
    llama_context: n_ctx          = 4096
    llama_context: n_ctx_per_seq  = 4096
    llama_context: n_batch        = 512
    llama_context: n_ubatch       = 128
    llama_context: causal_attn    = 1
    llama_context: flash_attn     = 0
    llama_context: freq_base      = 10000000.0
    llama_context: freq_scale     = 1
    llama_context: n_ctx_per_seq (4096) < n_ctx_train (262144)
    -- the full capacity of the model will not be utilized
    
    Running with Environment Variables:
      GGML_SYCL_DEBUG=0
      GGML_SYCL_DISABLE_OPT=1
      GGML_SYCL_DISABLE_GRAPH=1
      GGML_SYCL_DISABLE_DNN=0
      GGML_SYCL_PRIORITIZE_DMMV=0
    
    Build with Macros:
      GGML_SYCL_FORCE_MMQ: no
      GGML_SYCL_F16:       no
    
    Found 2 SYCL devices:
    | ID | Device Type            | Name                     | Ver | CUs | Max WG | Sub | Global Mem | Driver        |
    |----|------------------------|--------------------------|-----|-----|--------|-----|------------|---------------|
    | 0  | level_zero:gpu:0       | Intel Arc Pro B60        |20.1 | 160 | 1024   | 32  | 25110 MiB  | 1.13.35716    |
    | 1  | level_zero:gpu:1       | Intel Arc Pro B60        |20.1 | 160 | 1024   | 32  | 25110 MiB  | 1.13.35716    |
    
    SYCL Optimization Feature:
    | ID | Device Type      | Reorder |
    |----|------------------|---------|
    | 0  | level_zero:gpu:0 | Y       |
    | 1  | level_zero:gpu:1 | Y       |
    
    llama_context: SYCL_Host output buffer size = 0.58 MiB
    
    llama_kv_cache_unified:
      SYCL0 KV buffer size = 200.00 MiB
      SYCL1 KV buffer size = 184.00 MiB
      total size           = 384.00 MiB
      (4096 cells, 48 layers, 1 seq)
      K (f16): 192.00 MiB
      V (f16): 192.00 MiB
    
    llama_context: pipeline parallelism enabled (n_copies = 4)
    
    llama_context: SYCL0 compute buffer size = 27.00 MiB
    llama_context: SYCL1 compute buffer size = 95.19 MiB
    llama_context: SYCL_Host compute buffer size = 9.01 MiB
    
    llama_context: graph nodes  = 3222 (bs=128), 2598 (bs=1)
    llama_context: graph splits = 3
    

    Failure

    llama_context: n_batch  = 4096
    llama_context: n_ubatch = 4096
    
    llama_context: SYCL0 compute buffer size = 864.06 MiB
    llama_context: SYCL1 compute buffer size = 3046.12 MiB
    llama_context: SYCL_Host compute buffer size = 288.19 MiB
    
    common_init_from_params:
      setting dry_penalty_last_n to ctx_size = 4096
      warming up the model with an empty run...
    
    Native API failed. Native API returns: 31 (UR_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_SIZE)
    Exception caught at:
    ggml-sycl.cpp:2093
    
    Native API failed. Native API returns: 39 (UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY)
    Exception caught at:
    ggml-sycl.cpp:5564
    
    SYCL error: CHECK_TRY_ERROR((stream)->memcpy(
        data,
        (const char *)tensor->data + offset,
        size
    ))
    in function ggml_backend_sycl_get_tensor_async
    ggml-sycl.cpp:5564
    common.hpp:127
    
  8. NeoZhangJianyu commented on Jan 11, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    “Above 4G Decoding” is mandatory requirement to support 4GB+ memory on GPU.
    It also supports to access the GPU memory by CPU quickly (with ResizeBar feature).

    SYCL backend doesn't check this parameter of BIOS.

    I think the GPU memory size checking by SYCL is the physical memory size, instead of accessible memory size.
    So, it detect and get 24GB memory, but meet error when access the memory out of 4GB.

    Let me check if there is simple method to detect the values of “Above 4G Decoding” and "ResizeBar".

    Thank you for your sharing and suggestion.

  9. aaricantto commented on Jan 13, 2026

    @aaricantto

    After checking the BIOS I can confirm that "resizable bar" setting was disabled -

    After enabling in the BIOS the intel graphics driver now recognizes ReBAR BUT one of the GPUs still just will not work!

    Any additional advice would help!

    Image

    EDIT 1:

    Enabling / disabling the display adapter from Device Manager enables Inference on each card.

    Image

    LLAMA CPP logs:

    (llm-cpp) C:\Users\ansys\llama.cpp-src>C:\Users\ansys\llama.cpp-src\build-x64-windows-sycl-release\bin\llama-cli.exe ^
    More?   -m "C:\Users\ansys\llama_cpp\models\granite4\granite-4.0-h-micro-Q4_K_M.gguf" ^
    More?   -p "A conversation between User and Assistant..." ^
    More?   -n 2048 -t 8 -e -ngl 99 --color -c 2500 --temp 0 -no-cnv
    error while handling argument "--color": error: unknown value for --color: '-c'
    
    
    usage:
    -co,   --color [on|off|auto]            Colorize output to distinguish prompt and user input from generations
                                            ('on', 'off', or 'auto', default: 'auto')
                                            'auto' enables colors when output is to a terminal
    
    
    to show complete usage, run with -h
    
    (llm-cpp) C:\Users\ansys\llama.cpp-src>C:\Users\ansys\llama.cpp-src\build-x64-windows-sycl-release\bin\llama-cli.exe ^
    More?   -m "C:\Users\ansys\llama_cpp\models\granite4\granite-4.0-h-micro-Q4_K_M.gguf" ^
    More?   -p "A conversation between User and Assistant..." ^
    More?   -n 2048 -t 8 -e -ngl 99 -c 2500 --temp 0 -no-cnv --color auto
    --no-conversation is not supported by llama-cli
    please use llama-completion instead
    
    Loading model... \level_zero backend failed with error: 39 (UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY)
    Exception caught at file:C:\Users\ansys\llama.cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp, line:4031, func:operator()
    SYCL error: CHECK_TRY_ERROR( (stream)->memcpy((char *)tensor->data + offset, data, size)): Exception caught in this line of code.
      in function ggml_backend_sycl_set_tensor_async at C:\Users\ansys\llama.cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp:4031
    C:\Users\ansys\llama.cpp-src\ggml\src\ggml-sycl\..\ggml-sycl\common.hpp:126: SYCL error
    
    (llm-cpp) C:\Users\ansys\llama.cpp-src>set ONEAPI_DEVICE_SELECTOR=level_zero:0
    
    (llm-cpp) C:\Users\ansys\llama.cpp-src>C:\Users\ansys\llama.cpp-src\build-x64-windows-sycl-release\bin\llama-cli.exe ^
    More?   -m "C:\Users\ansys\llama_cpp\models\granite4\granite-4.0-h-micro-Q4_K_M.gguf" ^
    More?   -p "A conversation between User and Assistant..." ^
    More?   -n 2048 -t 8 -e -ngl 99 -c 2500 --temp 0 -no-cnv --color auto
    --no-conversation is not supported by llama-cli
    please use llama-completion instead
    
    Loading model...
    
    
    ▄▄ ▄▄
    ██ ██
    ██ ██  ▀▀█▄ ███▄███▄  ▀▀█▄    ▄████ ████▄ ████▄
    ██ ██ ▄█▀██ ██ ██ ██ ▄█▀██    ██    ██ ██ ██ ██
    ██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
                                        ██    ██
                                        ▀▀    ▀▀
    
    build      : b0-unknown
    model      : granite-4.0-h-micro-Q4_K_M.gguf
    modalities : text
    
    available commands:
      /exit or Ctrl+C     stop or exit
      /regen              regenerate the last response
      /clear              clear the chat history
      /read               add a text file
    
    
    > A conversation between User and Assistant...
    
    User: Hi Assistant, I'm planning a trip to Japan and I need some advice on what to see and do there.
    
    Assistant: Hello! Japan is a fascinating country with a rich culture and history. There are many places you can visit and activities you can do. Would you like recommendations for cities to visit, specific attractions, or perhaps activities related to Japanese culture?
    
    [ Prompt: 209.1 t/s | Generation: 40.2 t/s ]
    
    > hey how are you!?
    
    I'm an artificial intelligence and don't have feelings, but I'm here and ready to assist you. How can I help you with your trip to Japan?
    
    [ Prompt: 105.4 t/s | Generation: 45.0 t/s ]
    
    > write 20 words
    
    Sure, here are 20 words: Assistance, Travel, Japan, Culture, History, Cities, Attractions, Activities, Culture, History, Cities, Attractions, Activities, Culture, History, Cities, Attractions, Activities, Culture, History, Cities, Attractions.
    
    [ Prompt: 147.1 t/s | Generation: 44.3 t/s ]
    
    >
    
    >
    
    > /exit
    
    
    Exiting...
    llama_memory_breakdown_print: | memory breakdown [MiB]                        | total    free    self   model   context   compute       unaccounted |
    llama_memory_breakdown_print: |   - SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) | 23888 = 22032 + (2150 =  1849 +      93 +     208) + 17592186044120 |
    llama_memory_breakdown_print: |   - Host                                      |                   203 =   160 +       0 +      42                   |
    
    (llm-cpp) C:\Users\ansys\llama.cpp-src>set ONEAPI_DEVICE_SELECTOR=level_zero:1
    
    (llm-cpp) C:\Users\ansys\llama.cpp-src>C:\Users\ansys\llama.cpp-src\build-x64-windows-sycl-release\bin\llama-cli.exe ^
    More?   -m "C:\Users\ansys\llama_cpp\models\granite4\granite-4.0-h-micro-Q4_K_M.gguf" ^
    More?   -p "A conversation between User and Assistant..." ^
    More?   -n 2048 -t 8 -e -ngl 99 -c 2500 --temp 0 -no-cnv --color auto
    --no-conversation is not supported by llama-cli
    please use llama-completion instead
    
    Loading model... /level_zero backend failed with error: 39 (UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY)
    Exception caught at file:C:\Users\ansys\llama.cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp, line:4031, func:operator()
    SYCL error: CHECK_TRY_ERROR( (stream)->memcpy((char *)tensor->data + offset, data, size)): Exception caught in this line of code.
      in function ggml_backend_sycl_set_tensor_async at C:\Users\ansys\llama.cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp:4031
    C:\Users\ansys\llama.cpp-src\ggml\src\ggml-sycl\..\ggml-sycl\common.hpp:126: SYCL error
    
    

    OLLAMA LOGS:

    C:\Users\ansys\ollama-ipex-llm-2.3.0b20250725-win>set ONEAPI_DEVICE_SELECTOR=level_zero:0
    
    C:\Users\ansys\ollama-ipex-llm-2.3.0b20250725-win>start-ollama.bat
    time=2026-01-13T10:04:50.634+10:00 level=INFO source=routes.go:1235 msg="server config" env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY:localhost,127.0.0.1 OLLAMA_CONTEXT_LENGTH:4096 OLLAMA_DEBUG:INFO OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:10m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:C:\\Users\\ansys\\.ollama\\models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:2 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES:]"
    time=2026-01-13T10:04:50.636+10:00 level=INFO source=images.go:476 msg="total blobs: 20"
    time=2026-01-13T10:04:50.637+10:00 level=INFO source=images.go:483 msg="total unused blobs removed: 0"
    [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
    
    [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
     - using env:   export GIN_MODE=release
     - using code:  gin.SetMode(gin.ReleaseMode)
    
    [GIN-debug] HEAD   /                         --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func1 (5 handlers)
    [GIN-debug] GET    /                         --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func2 (5 handlers)
    [GIN-debug] HEAD   /api/version              --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func3 (5 handlers)
    [GIN-debug] GET    /api/version              --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func4 (5 handlers)
    [GIN-debug] POST   /api/pull                 --> github.com/ollama/ollama/server.(*Server).PullHandler-fm (5 handlers)
    [GIN-debug] POST   /api/push                 --> github.com/ollama/ollama/server.(*Server).PushHandler-fm (5 handlers)
    [GIN-debug] HEAD   /api/tags                 --> github.com/ollama/ollama/server.(*Server).ListHandler-fm (5 handlers)
    [GIN-debug] GET    /api/tags                 --> github.com/ollama/ollama/server.(*Server).ListHandler-fm (5 handlers)
    [GIN-debug] POST   /api/show                 --> github.com/ollama/ollama/server.(*Server).ShowHandler-fm (5 handlers)
    [GIN-debug] DELETE /api/delete               --> github.com/ollama/ollama/server.(*Server).DeleteHandler-fm (5 handlers)
    [GIN-debug] POST   /api/create               --> github.com/ollama/ollama/server.(*Server).CreateHandler-fm (5 handlers)
    [GIN-debug] POST   /api/blobs/:digest        --> github.com/ollama/ollama/server.(*Server).CreateBlobHandler-fm (5 handlers)
    [GIN-debug] HEAD   /api/blobs/:digest        --> github.com/ollama/ollama/server.(*Server).HeadBlobHandler-fm (5 handlers)
    [GIN-debug] POST   /api/copy                 --> github.com/ollama/ollama/server.(*Server).CopyHandler-fm (5 handlers)
    [GIN-debug] GET    /api/ps                   --> github.com/ollama/ollama/server.(*Server).PsHandler-fm (5 handlers)
    [GIN-debug] POST   /api/generate             --> github.com/ollama/ollama/server.(*Server).GenerateHandler-fm (5 handlers)
    [GIN-debug] POST   /api/chat                 --> github.com/ollama/ollama/server.(*Server).ChatHandler-fm (5 handlers)
    [GIN-debug] POST   /api/embed                --> github.com/ollama/ollama/server.(*Server).EmbedHandler-fm (5 handlers)
    [GIN-debug] POST   /api/embeddings           --> github.com/ollama/ollama/server.(*Server).EmbeddingsHandler-fm (5 handlers)
    [GIN-debug] POST   /v1/chat/completions      --> github.com/ollama/ollama/server.(*Server).ChatHandler-fm (6 handlers)
    [GIN-debug] POST   /v1/completions           --> github.com/ollama/ollama/server.(*Server).GenerateHandler-fm (6 handlers)
    [GIN-debug] POST   /v1/embeddings            --> github.com/ollama/ollama/server.(*Server).EmbedHandler-fm (6 handlers)
    [GIN-debug] GET    /v1/models                --> github.com/ollama/ollama/server.(*Server).ListHandler-fm (6 handlers)
    [GIN-debug] GET    /v1/models/:model         --> github.com/ollama/ollama/server.(*Server).ShowHandler-fm (6 handlers)
    time=2026-01-13T10:04:50.638+10:00 level=INFO source=routes.go:1288 msg="Listening on [::]:11434 (version 0.9.3)"
    time=2026-01-13T10:04:50.638+10:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs"
    time=2026-01-13T10:04:50.638+10:00 level=INFO source=gpu.go:218 msg="using Intel GPU"
    time=2026-01-13T10:04:50.638+10:00 level=INFO source=gpu_windows.go:167 msg=packages count=1
    time=2026-01-13T10:04:50.638+10:00 level=INFO source=gpu_windows.go:214 msg="" package=0 cores=24 efficiency=0 threads=48
    time=2026-01-13T10:04:50.799+10:00 level=INFO source=gpu.go:320 msg="detected OS VRAM overhead" id=GPU-91442b94-5a2c-0a17-9599-9dc19f06bffc library=cuda compute=8.6 driver=12.6 name="NVIDIA GeForce RTX 3060" overhead="273.8 MiB"
    time=2026-01-13T10:04:50.801+10:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-91442b94-5a2c-0a17-9599-9dc19f06bffc library=cuda variant=v12 compute=8.6 driver=12.6 name="NVIDIA GeForce RTX 3060" total="8.0 GiB" available="7.0 GiB"
    [GIN] 2026/01/13 - 10:04:53 | 200 |            0s |       127.0.0.1 | HEAD     "/"
    [GIN] 2026/01/13 - 10:04:53 | 200 |     38.5519ms |       127.0.0.1 | POST     "/api/show"
    time=2026-01-13T10:04:53.346+10:00 level=INFO source=sched.go:788 msg="new model will fit in available VRAM in single GPU, loading" model=C:\Users\ansys\.ollama\models\blobs\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 gpu=GPU-91442b94-5a2c-0a17-9599-9dc19f06bffc parallel=2 available=7516192768 required="3.4 GiB"
    time=2026-01-13T10:04:53.358+10:00 level=INFO source=server.go:135 msg="system memory" total="127.5 GiB" free="116.7 GiB" free_swap="122.4 GiB"
    time=2026-01-13T10:04:53.358+10:00 level=INFO source=server.go:187 msg=offload library=cuda layers.requested=-1 layers.model=33 layers.offload=33 layers.split="" memory.available="[7.0 GiB]" memory.gpu_overhead="0 B" memory.required.full="3.4 GiB" memory.required.partial="3.4 GiB" memory.required.kv="512.0 MiB" memory.required.allocations="[3.4 GiB]" memory.weights.total="2.1 GiB" memory.weights.repeating="1.5 GiB" memory.weights.nonrepeating="615.3 MiB" memory.graph.full="256.0 MiB" memory.graph.partial="256.0 MiB"
    llama_model_load_from_file_impl: using device SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) - 23888 MiB free
    llama_model_loader: loaded meta data with 38 key-value pairs and 324 tensors from C:\Users\ansys\.ollama\models\blobs\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 (version GGUF V3 (latest))
    llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
    llama_model_loader: - kv   0:                       general.architecture str              = nemotron
    llama_model_loader: - kv   1:                               general.type str              = model
    llama_model_loader: - kv   2:                               general.name str              = Minitron 4B Instruct
    llama_model_loader: - kv   3:                       general.organization str              = Nvidia
    llama_model_loader: - kv   4:                           general.finetune str              = Instruct
    llama_model_loader: - kv   5:                           general.basename str              = Minitron
    llama_model_loader: - kv   6:                         general.size_label str              = 4B
    llama_model_loader: - kv   7:                            general.license str              = other
    llama_model_loader: - kv   8:                       general.license.name str              = nvidia-community-model-license
    llama_model_loader: - kv   9:                       general.license.link str              = https://huggingface.co/nvidia/Nemotro...
    llama_model_loader: - kv  10:                   general.base_model.count u32              = 1
    llama_model_loader: - kv  11:                  general.base_model.0.name str              = Minitron 4B Base
    llama_model_loader: - kv  12:          general.base_model.0.organization str              = Nvidia
    llama_model_loader: - kv  13:              general.base_model.0.repo_url str              = https://huggingface.co/nvidia/Minitro...
    llama_model_loader: - kv  14:                          general.languages arr[str,1]       = ["en"]
    llama_model_loader: - kv  15:                       nemotron.block_count u32              = 32
    llama_model_loader: - kv  16:                    nemotron.context_length u32              = 4096
    llama_model_loader: - kv  17:                  nemotron.embedding_length u32              = 3072
    llama_model_loader: - kv  18:               nemotron.feed_forward_length u32              = 9216
    llama_model_loader: - kv  19:              nemotron.attention.head_count u32              = 24
    llama_model_loader: - kv  20:           nemotron.attention.head_count_kv u32              = 8
    llama_model_loader: - kv  21:                    nemotron.rope.freq_base f32              = 10000.000000
    llama_model_loader: - kv  22:                          general.file_type u32              = 15
    llama_model_loader: - kv  23:                        nemotron.vocab_size u32              = 256000
    llama_model_loader: - kv  24:      nemotron.attention.layer_norm_epsilon f32              = 0.000010
    llama_model_loader: - kv  25:              nemotron.rope.dimension_count u32              = 64
    llama_model_loader: - kv  26:                 nemotron.rope.scaling.type str              = none
    llama_model_loader: - kv  27:                       tokenizer.ggml.model str              = llama
    llama_model_loader: - kv  28:                         tokenizer.ggml.pre str              = default
    llama_model_loader: - kv  29:                      tokenizer.ggml.tokens arr[str,256000]  = ["<pad>", "<unk>", "<s>", "</s>", "<e...
    llama_model_loader: - kv  30:                      tokenizer.ggml.scores arr[f32,256000]  = [-1000.000000, 0.000000, -1000.000000...
    llama_model_loader: - kv  31:                  tokenizer.ggml.token_type arr[i32,256000]  = [3, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, ...
    llama_model_loader: - kv  32:                tokenizer.ggml.bos_token_id u32              = 2
    llama_model_loader: - kv  33:                tokenizer.ggml.eos_token_id u32              = 3
    llama_model_loader: - kv  34:                    tokenizer.chat_template str              = {{'<extra_id_0>System'}}{% for messag...
    llama_model_loader: - kv  35:            tokenizer.ggml.padding_token_id u32              = 0
    llama_model_loader: - kv  36:            tokenizer.ggml.unknown_token_id u32              = 1
    llama_model_loader: - kv  37:               general.quantization_version u32              = 2
    llama_model_loader: - type  f32:  130 tensors
    llama_model_loader: - type q4_K:  161 tensors
    llama_model_loader: - type q6_K:   33 tensors
    print_info: file format = GGUF V3 (latest)
    print_info: file type   = Q4_K - Medium
    print_info: file size   = 2.51 GiB (5.14 BPW)
    load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
    load: special tokens cache size = 1004
    load: token to piece cache size = 1.7854 MB
    print_info: arch             = nemotron
    print_info: vocab_only       = 1
    print_info: model type       = ?B
    print_info: model params     = 4.19 B
    print_info: general.name     = Minitron 4B Instruct
    print_info: vocab type       = SPM
    print_info: n_vocab          = 256000
    print_info: n_merges         = 0
    print_info: BOS token        = 2 '<s>'
    print_info: EOS token        = 3 '</s>'
    print_info: UNK token        = 1 '<unk>'
    print_info: PAD token        = 0 '<pad>'
    print_info: LF token         = 1014 '<0x0A>'
    print_info: EOG token        = 3 '</s>'
    print_info: max token length = 48
    llama_model_load: vocab only - skipping tensors
    time=2026-01-13T10:04:53.839+10:00 level=INFO source=server.go:458 msg="starting llama server" cmd="C:\\Users\\ansys\\ollama-ipex-llm-2.3.0b20250725-win\\ollama-lib.exe runner --model C:\\Users\\ansys\\.ollama\\models\\blobs\\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 --ctx-size 4096 --batch-size 512 --n-gpu-layers 999 --threads 24 --no-mmap --parallel 2 --port 61613"
    time=2026-01-13T10:04:53.841+10:00 level=INFO source=sched.go:483 msg="loaded runners" count=1
    time=2026-01-13T10:04:53.841+10:00 level=INFO source=server.go:618 msg="waiting for llama runner to start responding"
    time=2026-01-13T10:04:53.842+10:00 level=INFO source=server.go:652 msg="waiting for server to become available" status="llm server error"
    time=2026-01-13T10:04:53.891+10:00 level=INFO source=runner.go:851 msg="starting go runner"
    time=2026-01-13T10:04:53.896+10:00 level=INFO source=ggml.go:104 msg=system CPU.0.LLAMAFILE=1 compiler=cgo(gcc)
    time=2026-01-13T10:04:53.897+10:00 level=INFO source=runner.go:911 msg="Server listening on 127.0.0.1:61613"
    time=2026-01-13T10:04:54.093+10:00 level=INFO source=server.go:652 msg="waiting for server to become available" status="llm server loading model"
    llama_model_load_from_file_impl: using device SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) - 23888 MiB free
    llama_model_loader: loaded meta data with 38 key-value pairs and 324 tensors from C:\Users\ansys\.ollama\models\blobs\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 (version GGUF V3 (latest))
    llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
    llama_model_loader: - kv   0:                       general.architecture str              = nemotron
    llama_model_loader: - kv   1:                               general.type str              = model
    llama_model_loader: - kv   2:                               general.name str              = Minitron 4B Instruct
    llama_model_loader: - kv   3:                       general.organization str              = Nvidia
    llama_model_loader: - kv   4:                           general.finetune str              = Instruct
    llama_model_loader: - kv   5:                           general.basename str              = Minitron
    llama_model_loader: - kv   6:                         general.size_label str              = 4B
    llama_model_loader: - kv   7:                            general.license str              = other
    llama_model_loader: - kv   8:                       general.license.name str              = nvidia-community-model-license
    llama_model_loader: - kv   9:                       general.license.link str              = https://huggingface.co/nvidia/Nemotro...
    llama_model_loader: - kv  10:                   general.base_model.count u32              = 1
    llama_model_loader: - kv  11:                  general.base_model.0.name str              = Minitron 4B Base
    llama_model_loader: - kv  12:          general.base_model.0.organization str              = Nvidia
    llama_model_loader: - kv  13:              general.base_model.0.repo_url str              = https://huggingface.co/nvidia/Minitro...
    llama_model_loader: - kv  14:                          general.languages arr[str,1]       = ["en"]
    llama_model_loader: - kv  15:                       nemotron.block_count u32              = 32
    llama_model_loader: - kv  16:                    nemotron.context_length u32              = 4096
    llama_model_loader: - kv  17:                  nemotron.embedding_length u32              = 3072
    llama_model_loader: - kv  18:               nemotron.feed_forward_length u32              = 9216
    llama_model_loader: - kv  19:              nemotron.attention.head_count u32              = 24
    llama_model_loader: - kv  20:           nemotron.attention.head_count_kv u32              = 8
    llama_model_loader: - kv  21:                    nemotron.rope.freq_base f32              = 10000.000000
    llama_model_loader: - kv  22:                          general.file_type u32              = 15
    llama_model_loader: - kv  23:                        nemotron.vocab_size u32              = 256000
    llama_model_loader: - kv  24:      nemotron.attention.layer_norm_epsilon f32              = 0.000010
    llama_model_loader: - kv  25:              nemotron.rope.dimension_count u32              = 64
    llama_model_loader: - kv  26:                 nemotron.rope.scaling.type str              = none
    llama_model_loader: - kv  27:                       tokenizer.ggml.model str              = llama
    llama_model_loader: - kv  28:                         tokenizer.ggml.pre str              = default
    llama_model_loader: - kv  29:                      tokenizer.ggml.tokens arr[str,256000]  = ["<pad>", "<unk>", "<s>", "</s>", "<e...
    llama_model_loader: - kv  30:                      tokenizer.ggml.scores arr[f32,256000]  = [-1000.000000, 0.000000, -1000.000000...
    llama_model_loader: - kv  31:                  tokenizer.ggml.token_type arr[i32,256000]  = [3, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, ...
    llama_model_loader: - kv  32:                tokenizer.ggml.bos_token_id u32              = 2
    llama_model_loader: - kv  33:                tokenizer.ggml.eos_token_id u32              = 3
    llama_model_loader: - kv  34:                    tokenizer.chat_template str              = {{'<extra_id_0>System'}}{% for messag...
    llama_model_loader: - kv  35:            tokenizer.ggml.padding_token_id u32              = 0
    llama_model_loader: - kv  36:            tokenizer.ggml.unknown_token_id u32              = 1
    llama_model_loader: - kv  37:               general.quantization_version u32              = 2
    llama_model_loader: - type  f32:  130 tensors
    llama_model_loader: - type q4_K:  161 tensors
    llama_model_loader: - type q6_K:   33 tensors
    print_info: file format = GGUF V3 (latest)
    print_info: file type   = Q4_K - Medium
    print_info: file size   = 2.51 GiB (5.14 BPW)
    load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
    load: special tokens cache size = 1004
    load: token to piece cache size = 1.7854 MB
    print_info: arch             = nemotron
    print_info: vocab_only       = 0
    print_info: n_ctx_train      = 4096
    print_info: n_embd           = 3072
    print_info: n_layer          = 32
    print_info: n_head           = 24
    print_info: n_head_kv        = 8
    print_info: n_rot            = 64
    print_info: n_swa            = 0
    print_info: n_swa_pattern    = 1
    print_info: n_embd_head_k    = 128
    print_info: n_embd_head_v    = 128
    print_info: n_gqa            = 3
    print_info: n_embd_k_gqa     = 1024
    print_info: n_embd_v_gqa     = 1024
    print_info: f_norm_eps       = 1.0e-05
    print_info: f_norm_rms_eps   = 0.0e+00
    print_info: f_clamp_kqv      = 0.0e+00
    print_info: f_max_alibi_bias = 0.0e+00
    print_info: f_logit_scale    = 0.0e+00
    print_info: f_attn_scale     = 0.0e+00
    print_info: n_ff             = 9216
    print_info: n_expert         = 0
    print_info: n_expert_used    = 0
    print_info: causal attn      = 1
    print_info: pooling type     = 0
    print_info: rope type        = 2
    print_info: rope scaling     = none
    print_info: freq_base_train  = 10000.0
    print_info: freq_scale_train = 1
    print_info: n_ctx_orig_yarn  = 4096
    print_info: rope_finetuned   = unknown
    print_info: ssm_d_conv       = 0
    print_info: ssm_d_inner      = 0
    print_info: ssm_d_state      = 0
    print_info: ssm_dt_rank      = 0
    print_info: ssm_dt_b_c_rms   = 0
    print_info: model type       = 4B
    print_info: model params     = 4.19 B
    print_info: general.name     = Minitron 4B Instruct
    print_info: vocab type       = SPM
    print_info: n_vocab          = 256000
    print_info: n_merges         = 0
    print_info: BOS token        = 2 '<s>'
    print_info: EOS token        = 3 '</s>'
    print_info: UNK token        = 1 '<unk>'
    print_info: PAD token        = 0 '<pad>'
    print_info: LF token         = 1014 '<0x0A>'
    print_info: EOG token        = 3 '</s>'
    print_info: max token length = 48
    load_tensors: loading model tensors, this can take a while... (mmap = false)
    load_tensors: offloading 32 repeating layers to GPU
    load_tensors: offloading output layer to GPU
    load_tensors: offloaded 33/33 layers to GPU
    load_tensors:          CPU model buffer size =   421.88 MiB
    load_tensors:        SYCL0 model buffer size =  2144.51 MiB
    llama_context: constructing llama_context
    llama_context: n_seq_max     = 2
    llama_context: n_ctx         = 4096
    llama_context: n_ctx_per_seq = 2048
    llama_context: n_batch       = 1024
    llama_context: n_ubatch      = 512
    llama_context: causal_attn   = 1
    llama_context: flash_attn    = 0
    llama_context: freq_base     = 10000.0
    llama_context: freq_scale    = 1
    llama_context: n_ctx_per_seq (2048) < n_ctx_train (4096) -- the full capacity of the model will not be utilized
    Running with Environment Variables:
      GGML_SYCL_DEBUG: 0
      GGML_SYCL_DISABLE_OPT: 1
      GGML_SYCL_DISABLE_GRAPH: 1
      GGML_SYCL_PRIORITIZE_DMMV: 0
    Build with Macros:
      GGML_SYCL_FORCE_MMQ: no
      GGML_SYCL_F16: no
    Found 1 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 Pro B60 Graphics|   20.1|    160|    1024|   32| 25048M|           1.13.35716|
    SYCL Optimization Feature:
    |ID|        Device Type|Reorder|
    |--|-------------------|-------|
    | 0| [level_zero:gpu:0]|      Y|
    llama_context:  SYCL_Host  output buffer size =     1.98 MiB
    llama_kv_cache_unified: kv_size = 4096, type_k = 'f16', type_v = 'f16', n_layer = 32, can_shift = 1, padding = 32
    llama_kv_cache_unified:      SYCL0 KV buffer size =   512.00 MiB
    llama_kv_cache_unified: KV self size  =  512.00 MiB, K (f16):  256.00 MiB, V (f16):  256.00 MiB
    llama_context:      SYCL0 compute buffer size =   512.00 MiB
    llama_context:  SYCL_Host compute buffer size =    14.01 MiB
    llama_context: graph nodes  = 999
    llama_context: graph splits = 2
    time=2026-01-13T10:04:55.495+10:00 level=WARN source=runner.go:786 msg="%s: warming up the model with an empty run - please wait ... " !BADKEY=loadModel
    time=2026-01-13T10:04:55.846+10:00 level=INFO source=server.go:657 msg="llama runner started in 2.00 seconds"
    [GIN] 2026/01/13 - 10:04:55 | 200 |    2.5713749s |       127.0.0.1 | POST     "/api/generate"
    [GIN] 2026/01/13 - 10:04:57 | 200 |     234.223ms |       127.0.0.1 | POST     "/api/chat"
    ^CTerminate batch job (Y/N)?
    ^CTerminate batch job (Y/N)?
    Terminate batch job (Y/N)? Y
    C:\Users\ansys\ollama-ipex-llm-2.3.0b20250725-win>set ONEAPI_DEVICE_SELECTOR=level_zero:1
    
    C:\Users\ansys\ollama-ipex-llm-2.3.0b20250725-win>start-ollama.bat
    time=2026-01-13T10:05:08.499+10:00 level=INFO source=routes.go:1235 msg="server config" env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY:localhost,127.0.0.1 OLLAMA_CONTEXT_LENGTH:4096 OLLAMA_DEBUG:INFO OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:10m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:C:\\Users\\ansys\\.ollama\\models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:2 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES:]"
    time=2026-01-13T10:05:08.502+10:00 level=INFO source=images.go:476 msg="total blobs: 20"
    time=2026-01-13T10:05:08.503+10:00 level=INFO source=images.go:483 msg="total unused blobs removed: 0"
    [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
    
    [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
     - using env:   export GIN_MODE=release
     - using code:  gin.SetMode(gin.ReleaseMode)
    
    [GIN-debug] HEAD   /                         --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func1 (5 handlers)
    [GIN-debug] GET    /                         --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func2 (5 handlers)
    [GIN-debug] HEAD   /api/version              --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func3 (5 handlers)
    [GIN-debug] GET    /api/version              --> github.com/ollama/ollama/server.(*Server).GenerateRoutes.func4 (5 handlers)
    [GIN-debug] POST   /api/pull                 --> github.com/ollama/ollama/server.(*Server).PullHandler-fm (5 handlers)
    [GIN-debug] POST   /api/push                 --> github.com/ollama/ollama/server.(*Server).PushHandler-fm (5 handlers)
    [GIN-debug] HEAD   /api/tags                 --> github.com/ollama/ollama/server.(*Server).ListHandler-fm (5 handlers)
    [GIN-debug] GET    /api/tags                 --> github.com/ollama/ollama/server.(*Server).ListHandler-fm (5 handlers)
    [GIN-debug] POST   /api/show                 --> github.com/ollama/ollama/server.(*Server).ShowHandler-fm (5 handlers)
    [GIN-debug] DELETE /api/delete               --> github.com/ollama/ollama/server.(*Server).DeleteHandler-fm (5 handlers)
    [GIN-debug] POST   /api/create               --> github.com/ollama/ollama/server.(*Server).CreateHandler-fm (5 handlers)
    [GIN-debug] POST   /api/blobs/:digest        --> github.com/ollama/ollama/server.(*Server).CreateBlobHandler-fm (5 handlers)
    [GIN-debug] HEAD   /api/blobs/:digest        --> github.com/ollama/ollama/server.(*Server).HeadBlobHandler-fm (5 handlers)
    [GIN-debug] POST   /api/copy                 --> github.com/ollama/ollama/server.(*Server).CopyHandler-fm (5 handlers)
    [GIN-debug] GET    /api/ps                   --> github.com/ollama/ollama/server.(*Server).PsHandler-fm (5 handlers)
    [GIN-debug] POST   /api/generate             --> github.com/ollama/ollama/server.(*Server).GenerateHandler-fm (5 handlers)
    [GIN-debug] POST   /api/chat                 --> github.com/ollama/ollama/server.(*Server).ChatHandler-fm (5 handlers)
    [GIN-debug] POST   /api/embed                --> github.com/ollama/ollama/server.(*Server).EmbedHandler-fm (5 handlers)
    [GIN-debug] POST   /api/embeddings           --> github.com/ollama/ollama/server.(*Server).EmbeddingsHandler-fm (5 handlers)
    [GIN-debug] POST   /v1/chat/completions      --> github.com/ollama/ollama/server.(*Server).ChatHandler-fm (6 handlers)
    [GIN-debug] POST   /v1/completions           --> github.com/ollama/ollama/server.(*Server).GenerateHandler-fm (6 handlers)
    [GIN-debug] POST   /v1/embeddings            --> github.com/ollama/ollama/server.(*Server).EmbedHandler-fm (6 handlers)
    [GIN-debug] GET    /v1/models                --> github.com/ollama/ollama/server.(*Server).ListHandler-fm (6 handlers)
    [GIN-debug] GET    /v1/models/:model         --> github.com/ollama/ollama/server.(*Server).ShowHandler-fm (6 handlers)
    time=2026-01-13T10:05:08.504+10:00 level=INFO source=routes.go:1288 msg="Listening on [::]:11434 (version 0.9.3)"
    time=2026-01-13T10:05:08.504+10:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs"
    time=2026-01-13T10:05:08.504+10:00 level=INFO source=gpu.go:218 msg="using Intel GPU"
    time=2026-01-13T10:05:08.504+10:00 level=INFO source=gpu_windows.go:167 msg=packages count=1
    time=2026-01-13T10:05:08.504+10:00 level=INFO source=gpu_windows.go:214 msg="" package=0 cores=24 efficiency=0 threads=48
    time=2026-01-13T10:05:08.667+10:00 level=INFO source=gpu.go:320 msg="detected OS VRAM overhead" id=GPU-91442b94-5a2c-0a17-9599-9dc19f06bffc library=cuda compute=8.6 driver=12.6 name="NVIDIA GeForce RTX 3060" overhead="273.8 MiB"
    time=2026-01-13T10:05:08.668+10:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-91442b94-5a2c-0a17-9599-9dc19f06bffc library=cuda variant=v12 compute=8.6 driver=12.6 name="NVIDIA GeForce RTX 3060" total="8.0 GiB" available="7.0 GiB"
    [GIN] 2026/01/13 - 10:05:11 | 200 |            0s |       127.0.0.1 | HEAD     "/"
    [GIN] 2026/01/13 - 10:05:11 | 200 |     42.2212ms |       127.0.0.1 | POST     "/api/show"
    time=2026-01-13T10:05:11.366+10:00 level=INFO source=sched.go:788 msg="new model will fit in available VRAM in single GPU, loading" model=C:\Users\ansys\.ollama\models\blobs\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 gpu=GPU-91442b94-5a2c-0a17-9599-9dc19f06bffc parallel=2 available=7516192768 required="3.4 GiB"
    time=2026-01-13T10:05:11.390+10:00 level=INFO source=server.go:135 msg="system memory" total="127.5 GiB" free="116.8 GiB" free_swap="122.4 GiB"
    time=2026-01-13T10:05:11.390+10:00 level=INFO source=server.go:187 msg=offload library=cuda layers.requested=-1 layers.model=33 layers.offload=33 layers.split="" memory.available="[7.0 GiB]" memory.gpu_overhead="0 B" memory.required.full="3.4 GiB" memory.required.partial="3.4 GiB" memory.required.kv="512.0 MiB" memory.required.allocations="[3.4 GiB]" memory.weights.total="2.1 GiB" memory.weights.repeating="1.5 GiB" memory.weights.nonrepeating="615.3 MiB" memory.graph.full="256.0 MiB" memory.graph.partial="256.0 MiB"
    llama_model_load_from_file_impl: using device SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) - 23888 MiB free
    llama_model_loader: loaded meta data with 38 key-value pairs and 324 tensors from C:\Users\ansys\.ollama\models\blobs\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 (version GGUF V3 (latest))
    llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
    llama_model_loader: - kv   0:                       general.architecture str              = nemotron
    llama_model_loader: - kv   1:                               general.type str              = model
    llama_model_loader: - kv   2:                               general.name str              = Minitron 4B Instruct
    llama_model_loader: - kv   3:                       general.organization str              = Nvidia
    llama_model_loader: - kv   4:                           general.finetune str              = Instruct
    llama_model_loader: - kv   5:                           general.basename str              = Minitron
    llama_model_loader: - kv   6:                         general.size_label str              = 4B
    llama_model_loader: - kv   7:                            general.license str              = other
    llama_model_loader: - kv   8:                       general.license.name str              = nvidia-community-model-license
    llama_model_loader: - kv   9:                       general.license.link str              = https://huggingface.co/nvidia/Nemotro...
    llama_model_loader: - kv  10:                   general.base_model.count u32              = 1
    llama_model_loader: - kv  11:                  general.base_model.0.name str              = Minitron 4B Base
    llama_model_loader: - kv  12:          general.base_model.0.organization str              = Nvidia
    llama_model_loader: - kv  13:              general.base_model.0.repo_url str              = https://huggingface.co/nvidia/Minitro...
    llama_model_loader: - kv  14:                          general.languages arr[str,1]       = ["en"]
    llama_model_loader: - kv  15:                       nemotron.block_count u32              = 32
    llama_model_loader: - kv  16:                    nemotron.context_length u32              = 4096
    llama_model_loader: - kv  17:                  nemotron.embedding_length u32              = 3072
    llama_model_loader: - kv  18:               nemotron.feed_forward_length u32              = 9216
    llama_model_loader: - kv  19:              nemotron.attention.head_count u32              = 24
    llama_model_loader: - kv  20:           nemotron.attention.head_count_kv u32              = 8
    llama_model_loader: - kv  21:                    nemotron.rope.freq_base f32              = 10000.000000
    llama_model_loader: - kv  22:                          general.file_type u32              = 15
    llama_model_loader: - kv  23:                        nemotron.vocab_size u32              = 256000
    llama_model_loader: - kv  24:      nemotron.attention.layer_norm_epsilon f32              = 0.000010
    llama_model_loader: - kv  25:              nemotron.rope.dimension_count u32              = 64
    llama_model_loader: - kv  26:                 nemotron.rope.scaling.type str              = none
    llama_model_loader: - kv  27:                       tokenizer.ggml.model str              = llama
    llama_model_loader: - kv  28:                         tokenizer.ggml.pre str              = default
    llama_model_loader: - kv  29:                      tokenizer.ggml.tokens arr[str,256000]  = ["<pad>", "<unk>", "<s>", "</s>", "<e...
    llama_model_loader: - kv  30:                      tokenizer.ggml.scores arr[f32,256000]  = [-1000.000000, 0.000000, -1000.000000...
    llama_model_loader: - kv  31:                  tokenizer.ggml.token_type arr[i32,256000]  = [3, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, ...
    llama_model_loader: - kv  32:                tokenizer.ggml.bos_token_id u32              = 2
    llama_model_loader: - kv  33:                tokenizer.ggml.eos_token_id u32              = 3
    llama_model_loader: - kv  34:                    tokenizer.chat_template str              = {{'<extra_id_0>System'}}{% for messag...
    llama_model_loader: - kv  35:            tokenizer.ggml.padding_token_id u32              = 0
    llama_model_loader: - kv  36:            tokenizer.ggml.unknown_token_id u32              = 1
    llama_model_loader: - kv  37:               general.quantization_version u32              = 2
    llama_model_loader: - type  f32:  130 tensors
    llama_model_loader: - type q4_K:  161 tensors
    llama_model_loader: - type q6_K:   33 tensors
    print_info: file format = GGUF V3 (latest)
    print_info: file type   = Q4_K - Medium
    print_info: file size   = 2.51 GiB (5.14 BPW)
    load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
    load: special tokens cache size = 1004
    load: token to piece cache size = 1.7854 MB
    print_info: arch             = nemotron
    print_info: vocab_only       = 1
    print_info: model type       = ?B
    print_info: model params     = 4.19 B
    print_info: general.name     = Minitron 4B Instruct
    print_info: vocab type       = SPM
    print_info: n_vocab          = 256000
    print_info: n_merges         = 0
    print_info: BOS token        = 2 '<s>'
    print_info: EOS token        = 3 '</s>'
    print_info: UNK token        = 1 '<unk>'
    print_info: PAD token        = 0 '<pad>'
    print_info: LF token         = 1014 '<0x0A>'
    print_info: EOG token        = 3 '</s>'
    print_info: max token length = 48
    llama_model_load: vocab only - skipping tensors
    time=2026-01-13T10:05:11.880+10:00 level=INFO source=server.go:458 msg="starting llama server" cmd="C:\\Users\\ansys\\ollama-ipex-llm-2.3.0b20250725-win\\ollama-lib.exe runner --model C:\\Users\\ansys\\.ollama\\models\\blobs\\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 --ctx-size 4096 --batch-size 512 --n-gpu-layers 999 --threads 24 --no-mmap --parallel 2 --port 61640"
    time=2026-01-13T10:05:11.883+10:00 level=INFO source=sched.go:483 msg="loaded runners" count=1
    time=2026-01-13T10:05:11.883+10:00 level=INFO source=server.go:618 msg="waiting for llama runner to start responding"
    time=2026-01-13T10:05:11.883+10:00 level=INFO source=server.go:652 msg="waiting for server to become available" status="llm server error"
    time=2026-01-13T10:05:11.932+10:00 level=INFO source=runner.go:851 msg="starting go runner"
    time=2026-01-13T10:05:11.938+10:00 level=INFO source=ggml.go:104 msg=system CPU.0.LLAMAFILE=1 compiler=cgo(gcc)
    time=2026-01-13T10:05:11.939+10:00 level=INFO source=runner.go:911 msg="Server listening on 127.0.0.1:61640"
    time=2026-01-13T10:05:12.134+10:00 level=INFO source=server.go:652 msg="waiting for server to become available" status="llm server loading model"
    llama_model_load_from_file_impl: using device SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) - 23888 MiB free
    llama_model_loader: loaded meta data with 38 key-value pairs and 324 tensors from C:\Users\ansys\.ollama\models\blobs\sha256-1dcbd925825b41744ddc2fc3047db6d3ad0aecf8d336f4fadc044eaaf79779d5 (version GGUF V3 (latest))
    llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
    llama_model_loader: - kv   0:                       general.architecture str              = nemotron
    llama_model_loader: - kv   1:                               general.type str              = model
    llama_model_loader: - kv   2:                               general.name str              = Minitron 4B Instruct
    llama_model_loader: - kv   3:                       general.organization str              = Nvidia
    llama_model_loader: - kv   4:                           general.finetune str              = Instruct
    llama_model_loader: - kv   5:                           general.basename str              = Minitron
    llama_model_loader: - kv   6:                         general.size_label str              = 4B
    llama_model_loader: - kv   7:                            general.license str              = other
    llama_model_loader: - kv   8:                       general.license.name str              = nvidia-community-model-license
    llama_model_loader: - kv   9:                       general.license.link str              = https://huggingface.co/nvidia/Nemotro...
    llama_model_loader: - kv  10:                   general.base_model.count u32              = 1
    llama_model_loader: - kv  11:                  general.base_model.0.name str              = Minitron 4B Base
    llama_model_loader: - kv  12:          general.base_model.0.organization str              = Nvidia
    llama_model_loader: - kv  13:              general.base_model.0.repo_url str              = https://huggingface.co/nvidia/Minitro...
    llama_model_loader: - kv  14:                          general.languages arr[str,1]       = ["en"]
    llama_model_loader: - kv  15:                       nemotron.block_count u32              = 32
    llama_model_loader: - kv  16:                    nemotron.context_length u32              = 4096
    llama_model_loader: - kv  17:                  nemotron.embedding_length u32              = 3072
    llama_model_loader: - kv  18:               nemotron.feed_forward_length u32              = 9216
    llama_model_loader: - kv  19:              nemotron.attention.head_count u32              = 24
    llama_model_loader: - kv  20:           nemotron.attention.head_count_kv u32              = 8
    llama_model_loader: - kv  21:                    nemotron.rope.freq_base f32              = 10000.000000
    llama_model_loader: - kv  22:                          general.file_type u32              = 15
    llama_model_loader: - kv  23:                        nemotron.vocab_size u32              = 256000
    llama_model_loader: - kv  24:      nemotron.attention.layer_norm_epsilon f32              = 0.000010
    llama_model_loader: - kv  25:              nemotron.rope.dimension_count u32              = 64
    llama_model_loader: - kv  26:                 nemotron.rope.scaling.type str              = none
    llama_model_loader: - kv  27:                       tokenizer.ggml.model str              = llama
    llama_model_loader: - kv  28:                         tokenizer.ggml.pre str              = default
    llama_model_loader: - kv  29:                      tokenizer.ggml.tokens arr[str,256000]  = ["<pad>", "<unk>", "<s>", "</s>", "<e...
    llama_model_loader: - kv  30:                      tokenizer.ggml.scores arr[f32,256000]  = [-1000.000000, 0.000000, -1000.000000...
    llama_model_loader: - kv  31:                  tokenizer.ggml.token_type arr[i32,256000]  = [3, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, ...
    llama_model_loader: - kv  32:                tokenizer.ggml.bos_token_id u32              = 2
    llama_model_loader: - kv  33:                tokenizer.ggml.eos_token_id u32              = 3
    llama_model_loader: - kv  34:                    tokenizer.chat_template str              = {{'<extra_id_0>System'}}{% for messag...
    llama_model_loader: - kv  35:            tokenizer.ggml.padding_token_id u32              = 0
    llama_model_loader: - kv  36:            tokenizer.ggml.unknown_token_id u32              = 1
    llama_model_loader: - kv  37:               general.quantization_version u32              = 2
    llama_model_loader: - type  f32:  130 tensors
    llama_model_loader: - type q4_K:  161 tensors
    llama_model_loader: - type q6_K:   33 tensors
    print_info: file format = GGUF V3 (latest)
    print_info: file type   = Q4_K - Medium
    print_info: file size   = 2.51 GiB (5.14 BPW)
    load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
    load: special tokens cache size = 1004
    load: token to piece cache size = 1.7854 MB
    print_info: arch             = nemotron
    print_info: vocab_only       = 0
    print_info: n_ctx_train      = 4096
    print_info: n_embd           = 3072
    print_info: n_layer          = 32
    print_info: n_head           = 24
    print_info: n_head_kv        = 8
    print_info: n_rot            = 64
    print_info: n_swa            = 0
    print_info: n_swa_pattern    = 1
    print_info: n_embd_head_k    = 128
    print_info: n_embd_head_v    = 128
    print_info: n_gqa            = 3
    print_info: n_embd_k_gqa     = 1024
    print_info: n_embd_v_gqa     = 1024
    print_info: f_norm_eps       = 1.0e-05
    print_info: f_norm_rms_eps   = 0.0e+00
    print_info: f_clamp_kqv      = 0.0e+00
    print_info: f_max_alibi_bias = 0.0e+00
    print_info: f_logit_scale    = 0.0e+00
    print_info: f_attn_scale     = 0.0e+00
    print_info: n_ff             = 9216
    print_info: n_expert         = 0
    print_info: n_expert_used    = 0
    print_info: causal attn      = 1
    print_info: pooling type     = 0
    print_info: rope type        = 2
    print_info: rope scaling     = none
    print_info: freq_base_train  = 10000.0
    print_info: freq_scale_train = 1
    print_info: n_ctx_orig_yarn  = 4096
    print_info: rope_finetuned   = unknown
    print_info: ssm_d_conv       = 0
    print_info: ssm_d_inner      = 0
    print_info: ssm_d_state      = 0
    print_info: ssm_dt_rank      = 0
    print_info: ssm_dt_b_c_rms   = 0
    print_info: model type       = 4B
    print_info: model params     = 4.19 B
    print_info: general.name     = Minitron 4B Instruct
    print_info: vocab type       = SPM
    print_info: n_vocab          = 256000
    print_info: n_merges         = 0
    print_info: BOS token        = 2 '<s>'
    print_info: EOS token        = 3 '</s>'
    print_info: UNK token        = 1 '<unk>'
    print_info: PAD token        = 0 '<pad>'
    print_info: LF token         = 1014 '<0x0A>'
    print_info: EOG token        = 3 '</s>'
    print_info: max token length = 48
    load_tensors: loading model tensors, this can take a while... (mmap = false)
    load_tensors: offloading 32 repeating layers to GPU
    load_tensors: offloading output layer to GPU
    load_tensors: offloaded 33/33 layers to GPU
    load_tensors:          CPU model buffer size =   421.88 MiB
    load_tensors:        SYCL0 model buffer size =  2144.51 MiB
    llama_context: constructing llama_context
    llama_context: n_seq_max     = 2
    llama_context: n_ctx         = 4096
    llama_context: n_ctx_per_seq = 2048
    llama_context: n_batch       = 1024
    llama_context: n_ubatch      = 512
    llama_context: causal_attn   = 1
    llama_context: flash_attn    = 0
    llama_context: freq_base     = 10000.0
    llama_context: freq_scale    = 1
    llama_context: n_ctx_per_seq (2048) < n_ctx_train (4096) -- the full capacity of the model will not be utilized
    Running with Environment Variables:
      GGML_SYCL_DEBUG: 0
      GGML_SYCL_DISABLE_OPT: 1
      GGML_SYCL_DISABLE_GRAPH: 1
      GGML_SYCL_PRIORITIZE_DMMV: 0
    Build with Macros:
      GGML_SYCL_FORCE_MMQ: no
      GGML_SYCL_F16: no
    Found 1 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 Pro B60 Graphics|   20.1|    160|    1024|   32| 25048M|           1.13.35716|
    SYCL Optimization Feature:
    |ID|        Device Type|Reorder|
    |--|-------------------|-------|
    | 0| [level_zero:gpu:0]|      Y|
    llama_context:  SYCL_Host  output buffer size =     1.98 MiB
    llama_kv_cache_unified: kv_size = 4096, type_k = 'f16', type_v = 'f16', n_layer = 32, can_shift = 1, padding = 32
    llama_kv_cache_unified:      SYCL0 KV buffer size =   512.00 MiB
    llama_kv_cache_unified: KV self size  =  512.00 MiB, K (f16):  256.00 MiB, V (f16):  256.00 MiB
    llama_context:      SYCL0 compute buffer size =   512.00 MiB
    llama_context:  SYCL_Host compute buffer size =    14.01 MiB
    llama_context: graph nodes  = 999
    llama_context: graph splits = 2
    time=2026-01-13T10:05:13.528+10:00 level=WARN source=runner.go:786 msg="%s: warming up the model with an empty run - please wait ... " !BADKEY=loadModel
    time=2026-01-13T10:05:13.887+10:00 level=INFO source=server.go:657 msg="llama runner started in 2.00 seconds"
    [GIN] 2026/01/13 - 10:05:13 | 200 |    2.6080269s |       127.0.0.1 | POST     "/api/generate"
    Native API failed. Native API returns: 39 (UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY)
    Exception caught at file:D:\actions-runner\release-cpp-oneapi_2024_2\_work\llm.cpp\llm.cpp\ollama-llama-cpp\ggml\src\ggml-sycl\ggml-sycl.cpp, line:4602, func:operator()
    SYCL error: CHECK_TRY_ERROR((stream)->memcpy( data, (const char *)tensor->data + offset, size).wait()): Exception caught in this line of code.
      in function ggml_backend_sycl_get_tensor_async at D:\actions-runner\release-cpp-oneapi_2024_2\_work\llm.cpp\llm.cpp\ollama-llama-cpp\ggml\src\ggml-sycl\ggml-sycl.cpp:4602
    D:\actions-runner\release-cpp-oneapi_2024_2\_work\llm.cpp\llm.cpp\ollama-llama-cpp\ggml\src\ggml-sycl\..\ggml-sycl\common.hpp:115: SYCL error
    time=2026-01-13T10:05:15.101+10:00 level=ERROR source=server.go:827 msg="post predict" error="Post \"http://127.0.0.1:61640/completion\": read tcp 127.0.0.1:61642->127.0.0.1:61640: wsarecv: An existing connection was forcibly closed by the remote host."
    [GIN] 2026/01/13 - 10:05:15 | 200 |    133.7422ms |       127.0.0.1 | POST     "/api/chat"
    time=2026-01-13T10:05:15.119+10:00 level=ERROR source=server.go:484 msg="llama runner terminated" error="exit status 0xc0000409
    
  10. NeoZhangJianyu commented on Jan 13, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    Let me check this LLM granite-4.0-h-micro-Q4_K_M.gguf.
    It askes more memory by the error log.

    Thank you!

  11. NeoZhangJianyu commented on Jan 13, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    I run this model with latest llama.cpp SYCL backend on Arc770 Ubuntu 22.04. It's passed.
    When I unset ONEAPI_DEVICE_SELECTOR, I meet the similar error because there are dGPU and iGPU in my PC.

    Looks like there is an issue in the case of multiple GPUs with this LLM.

    1. set ONEAPI_DEVICE_SELECTOR=level_zero:x
      Run xxx\build-x64-windows-sycl-release\bin\sycl-ls.exe
      Confirm the only a B60 is enabled.
      Share the log to me.

    Could you run the parameters like examples\sycl\win-run-llama2.bat? It provides more debug info.
    Then share the whole log.

    1. IPEX-LLM
      The llama.cpp in it is close source.
      We can't check the source code for the info of the log.
      The log can't help for debug.
      Please use llama.cpp SYCL backend and provide the release info.
      It's easy to debug.

    Thank you!

  12. 10 remaining items

  13. aaricantto commented on Jan 15, 2026

    @aaricantto

    Intel Arc Multi-GPU SYCL Layer Offload Issue Report

    To report additional behaviour I tested various GPU and Model Layer allocations:

    GPU: 2x ARC B60 dGPU (physical PCIe separation)
    RELEASE: llama-b5377-bin-win-sycl-x64
    MODEL: Qwen2.5-3B-Instruct-Q4_K_M.gguf # 37 total Layers

    C:\llama_cpp>dir
     Volume in drive C is Windows
    
     Directory of C:\llama_cpp
    
    15/01/2026  09:53 PM    <DIR>          .
    14/01/2026  09:12 PM    <DIR>          llama-b5377-bin-win-sycl-x64
    15/01/2026  09:53 PM    <DIR>          llama-b7740-bin-win-sycl-x64
    15/01/2026  06:42 PM    <DIR>          llama-from-src
    15/01/2026  12:54 AM    <DIR>          models
    15/01/2026  09:53 PM    <DIR>          Release Zips
                   0 File(s)              0 bytes
                   6 Dir(s)  66,965,839,872 bytes free
    
    
    C:\llama_cpp>sycl-ls
    [level_zero:gpu][level_zero:0] Intel(R) oneAPI Unified Runtime over Level-Zero V2, Intel(R) Arc(TM) Pro B60 Graphics 20.1.0 [1.13.35716]
    [level_zero:gpu][level_zero:1] Intel(R) oneAPI Unified Runtime over Level-Zero V2, Intel(R) Arc(TM) Pro B60 Graphics 20.1.0 [1.13.35716]
    

    Intro: Three Tests

    GPU.0, GPU.1, and GPU.1 again, with 36/37 loaded weights

    Both SYCL devices are enabled via ONEAPI_DEVICE_SELECTOR

    Parameter Definitions

    • -ngl (--gpu-layers) # number of GPU layers to offload (including output layer)
    • -mg (--main-gpu) # 0 or 1 in my case (0 being the device closest to the CPU)
    • -sm (--split-mode) # 'layer' for 2xGPU, else exclude
    • -ts (--tensor-split) # models to offload to (e.g., -ts 1,1 for even split)

    1. SINGLE GPU - GPU.0 - (-sm none -mg 0 -ngl 37) [Working]

    llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm none -mg 0 -ngl 37

    load_tensors: offloaded 37/37 layers to GPU → Model generates completely fine

    llama_perf_sampler_print:    sampling time =       0.86 ms /    32 runs   (    0.03 ms per token, 37166.09 tokens per second)
    llama_perf_context_print:        load time =    1410.21 ms
    llama_perf_context_print: prompt eval time =     788.24 ms /    57 tokens (   13.83 ms per token,    72.31 tokens per second)
    llama_perf_context_print:        eval time =    2131.48 ms /   124 runs   (   17.19 ms per token,    58.18 tokens per second)
    llama_perf_context_print:       total time =    7480.86 ms /   181 tokens
    

    ✅ Beautiful [ gpu.0 ]


    2. SINGLE GPU - GPU.1 - (-sm none -mg 1 -ngl 37) [Broken]

    llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm none -mg 1 -ngl 37
    load_tensors: offloaded 37/37 layers...
    D:\a\llama.cpp\llama.cpp\ggml\src\ggml-sycl\..\ggml-sycl\common.hpp:115: SYCL error
    

    ❌ CRASH [ gpu.1 ]


    3. SINGLE GPU - GPU.1 - (-sm none -mg 1 -ngl 36) [Workaround]

    llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm none -mg 1 -ngl 36

    !!! load_tensors: offloaded 36/37 layers to GPU

    llama_perf_sampler_print:    sampling time =       6.24 ms /   165 runs   (    0.04 ms per token, 26438.07 tokens per second)
    llama_perf_context_print:        load time =    1380.03 ms
    llama_perf_context_print: prompt eval time =     573.87 ms /    44 tokens (   13.04 ms per token,    76.67 tokens per second)
    llama_perf_context_print:        eval time =    3032.57 ms /   120 runs   (   25.27 ms per token,    39.57 tokens per second)
    llama_perf_context_print:       total time =    7500.79 ms /   164 tokens
    

    ⚠️ WORKAROUND - [ gpu.1 - 36/37 ] at the cost of tokens/s (~32% reduction: 58.18 → 39.57 t/s)


    Semi Conclusion

    Underloading layers on device level_zero:1 - cannot run all weights on GPU.1

    And it works a Charm → SO it's not really a problem with loading model weights into multiple Intel GPUs, rather the second/last GPU has issues with the output layer.

    From the logs above, the missing layer on the second card costs me ~20 TPS during eval on single card inference.


    Pipeline Parallel Case

    Intel config: ONEAPI_DEVICE_SELECTOR=gpu
    llama.cpp config: -sm layer -ts 1,1

    The multi-GPU case only amplifies this TPS degradation:

    llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm layer -ts 1,1 -ngl 36 -np 1
    llama_perf_sampler_print:    sampling time =       7.28 ms /   191 runs   (    0.04 ms per token, 26243.47 tokens per second)
    llama_perf_context_print:        load time =    2290.08 ms
    llama_perf_context_print: prompt eval time =    1360.67 ms /    44 tokens (   30.92 ms per token,    32.34 tokens per second)
    llama_perf_context_print:        eval time =   10715.13 ms /   146 runs   (   73.39 ms per token,    13.63 tokens per second)
    llama_perf_context_print:       total time =   16164.96 ms /   190 tokens
    

    Performance Impact: 77% throughput degradation (58.18 → 13.63 t/s)


    Final Conclusion

    GPU.0 (Primary) handles full 37/37 layer offload perfectly. GPU.1 (Secondary) crashes with SYCL error when loading all 37 layers, specifically failing on the output layer.

    Workaround: Limit GPU.1 to 36/37 layers (output on CPU) for stability, accepting ~32% performance loss in single-GPU mode and ~77% loss in pipeline parallel mode.

    NOTE: only works in "llama-b5377-bin-win-sycl-x64"
    I have also tested the windows release llama-b7740-bin-win-sycl-x64 and also built from source today:

    
    git clone https://github.com/ggml-org/llama.cpp.git llama-from-src
    cd llama-from-src
    
    set "VS2022INSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
    
    call "%VS2022INSTALLDIR%\VC\Auxiliary\Build\vcvars64.bat"
    call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force
    
    
    # should set vars here
    
    cd /d C:\llama_cpp\llama-from-src
    rmdir /s /q build 2>nul
    
    cmake -B build -G Ninja ^
      -DGGML_SYCL=ON ^
      -DCMAKE_BUILD_TYPE=Release ^
      -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL ^
      -DCMAKE_C_COMPILER=icx ^
      -DCMAKE_CXX_COMPILER=icx
    
    cmake --build build -v
    

    EDIT - version I built from src is same as latest release "llama-b5377-bin-win-sycl-x64" works in this strange model weight offloading case

    C:\llama_cpp>llama-from-src\build\bin\llama-cli.exe --version
    version: 7740 (cff777f)
    built with IntelLLVM 2025.3.0 for Windows AMD64

  14. aaricantto commented on Jan 15, 2026

    @aaricantto

    Update: Cause Identified Between b7464 → b7470 ?

    TL;DR

    The issue is NOT in the layer counting logic changes (those happened earlier and still worked). The breaking change is in memory allocation strategy between b7464 (working) and b7470 (broken).
    keep in mind this is only for the n-1/n mult-GPU solution, and does not yet resolve n/n weight loading - but will at least allow for separate servers running 37/37 and 36/37 on newer builds

    My Testing Timeline

    I've been systematically bisecting builds to find the exact breaking point:

    "WORKING" builds (GPU.1 @ 36/37 layers):

    • b5377 ✅
    • etc.
    • b7446 ✅
    • b7464 ✅ (last working build)

    BROKEN builds (GPU.1 fails even at 36/37):

    • b7470 ❌ (first broken build)
    • b7519 ❌
    • b7740 ❌

    What Changed Between b7464 and b7470

    I extracted the diff focusing on model loading code:

    git diff -U20 b7464..b7470 -- src/llama-mmap.cpp src/llama-mmap.h src/llama-model-loader.cpp src/llama-model.cpp src/llama.cpp

    The key changes appear to be in llama-mmap.cpp and llama-model-loader.cpp - specifically around:

    • Buffer allocation strategy changes
    • Memory mapping behavior modifications
    • Host-to-device transfer mechanism updates

    Why This Matters

    Before b7470 (working):

    • GPU.1 could handle 36/37 layers
    • Small sequential buffer chunks
    • Lower pinned memory pressure

    After b7470 (broken):

    • GPU.1 fails even at 36/37 layers
    • Something in the new memory allocation path triggers UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY
    • The error occurs during tensor transfer: ggml_backend_sycl_get_tensor_async

    Theory

    The b7470 changes likely introduced:

    1. Larger pinned host buffer allocations (similar to what happened with DirectIO additions)
    2. Different async upload patterns that stress GPU.1's Level Zero driver
    3. Cumulative memory pressure that exceeds secondary GPU's BAR/pinned memory limits

    GPU.0 (primary) has priority DMA access and handles everything fine.
    GPU.1 (secondary) hits driver limits with the new allocation strategy.

    Request for Help

    @NeoZhangJianyu - Could you check the llama-mmap.cpp and llama-model-loader.cpp changes between b7464 and b7470?

    Specifically looking for:

    • Changes to host buffer sizes (suspect increase from 1MB → 64MB or similar)
    • Async upload path modifications
    • Pinned memory allocation pattern changes

    I'm not familiar enough with the C++ codebase to patch this myself, but I can continue testing any potential fixes on my dual Arc B60 setup.


    Hardware: 2× Intel Arc Pro B60 (separate PCIe slots)
    Driver: Level Zero 1.13.35716
    Models tested: Qwen2.5-3B (37 layers), Qwen3-Coder-30B (49 layers)
    Consistent behavior: GPU.0 perfect, GPU.1 OOM crash with latest builds

  15. aaricantto commented on Jan 15, 2026

    @aaricantto

    Patch that re-enabled 36/37 on GPU.1 -> unfortunately still does not enable 37/37 GPU.1 or multi GPU

    C:\llama_cpp\llama-from-src>git show --stat 57ce7ae47
    commit 57ce7ae4751acc93b13e62759daa4347bb8ca01d (HEAD -> b7470-patch)
    Author: Ansys <[email protected]>
    Date:   Fri Jan 16 01:20:21 2026 +1000
    
        Revert "llama: offload output layer to GPU first (#18148)"
    
        This reverts commit 57c1e0564365b76a954304812cc90d3e60939bc7.
    
        Attempting to patch
    
     src/llama-model.cpp | 12 +++++-------
     src/llama.cpp       | 52 ++++++++++++++++++++++++++++++++--------------------
     2 files changed, 37 insertions(+), 27 deletions(-)
    
    C:\llama_cpp\llama-from-src>
    
  16. NeoZhangJianyu commented on Jan 16, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    There are several PRs between 7464-7470.
    Could you help narrow down the detailed PR to impact your case?
    I can't reproduce this issue in my PC.

    commit 54189c0d39dca49c2bcb3598c364f2604e6b8f62 (tag: b7470)
    commit 9ce64aed7d74f6166dc17ad1d4bd544e76735418
    commit 57c1e0564365b76a954304812cc90d3e60939bc7
        llama: offload output layer to GPU first (#18148)
    
    commit 9cff4cc5548113c1a1430c95e86cd3b348e3c063
        convert : sort and use file parts from model index if present (#18043)
    
    commit 4d4f4cacd1c18975e5a97f20369fc30a225dc51f
        llama : Async DirectIO model loading on Linux (#18012)
    commit 0a0bba05e8390ab7e4a54bb8c0ed0a25da64cf62 (tag: b7464)
    

    Thank you!

  17. aaricantto commented on Jan 16, 2026

    @aaricantto

    The "n-1/n weights on GPU1" trick breaks at 57c1e05 "llama: offload output layer to GPU first (#18148)"

    works on 9cff4cc

    git checkout 57c1e0564
    
    # BUILD PACKAGE
    
    mkdir build-57c1e0564
    
    cmake -B build-57c1e0564  -G Ninja ^
      -DGGML_SYCL=ON ^
      -DCMAKE_BUILD_TYPE=Release ^
      -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL ^
      -DCMAKE_C_COMPILER=icx ^
      -DCMAKE_CXX_COMPILER=icx ^
      -DLLAMA_CURL=OFF ^
      -DGGML_SYCL_F16=ON
    
    
    cmake --build build-57c1e0564 -v
    
    ======= RUNNER =======
    
    RUNNER - plus weight set
    
    
    
    set LLAMA_ARG_N_GPU_LAYERS=36 #number of layers to store in VRAM
    build-57c1e0564\bin\llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm none -mg 1 --mmap
    
  18. NeoZhangJianyu commented on Jan 16, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    I add comment to the PR and ask the author to check it. #18148 (comment)

    Thank you!.

  19. aaricantto commented on Jan 16, 2026

    @aaricantto

    Thanks - here is my final reasoning:

    I suspect the crux of the issue here is the output layer in the second GPU

    Reversing the order of the weight loading (putting the output layer first) means that (for 36 repeating + 1 output layer)

    PRE 57c1e05
    set LLAMA_ARG_N_GPU_LAYERS=36 -> output layer loaded last, output layer loaded into CPU -> n-1 workaround
    set LLAMA_ARG_N_GPU_LAYERS=37 -> output layer loaded last, attempted load in GPU -> SYCL Error

    POST 57c1e05

    set LLAMA_ARG_N_GPU_LAYERS=1 (of 37) -> output layer loaded first, attempted load in GPU -> SYCL Error
    set LLAMA_ARG_N_GPU_LAYERS=0 (of 37) -> output layer loaded first, output layer loaded into CPU -> THIS WORKS

    GPU1 cannot host the output layer tensor without triggering Level Zero OOM. -> bug has existed as far back as b5377 -> pre 57c1e05 the bug could be avoided by forcing output layer onto CPU (36/37) -> after inverting the order of output layer loading workaround breaks.

  20. aaricantto commented on Jan 16, 2026

    @aaricantto

    Another Helpful Flag: -ot "token_embd.weight=CPU"

    Ok I cannot tell you why this fixed it unfortunately, but this flag has completely resolved my problems. And it works on latest build.

    Multi-GPU Pipeline Parallel [2x B60] - latest build b7470

    set LLAMA_ARG_N_GPU_LAYERS=37 # NOTE - POST 57c1e05 this should be 36
    
    build-b7470\bin\llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm layer -ts 1,1 --mmap -ot "token_embd.weight=CPU" --verbose
    

    Single GPU1 - pre 57c1e05 build with b7464 (n-1/n worked here)

    set LLAMA_ARG_N_GPU_LAYERS=37 # NOTE - POST 57c1e05 this should be 36
    
    build-b7464\bin\llama-cli.exe -m ..\models\Qwen2.5-3B-Instruct-Q4_K_M.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm none -mg 1 --mmap -ot "token_embd.weight=CPU"
    

    Inference speeds are great, and all is working now! I'm not sure what else to comment on for the Devs, as I suspect this error will be on a per-model basis depending on the structure of the output layer. But the logs did make note that

    token_embd.weight ... cannot be used with preferred buffer type SYCL_Host, using CPU instead
    

    So perhaps instead of causing a memcpy error perhaps attempt cpu offload first for the multi-gpu systems!?

    I'm also still unsure why GPU1 requires this, but GPU0 does not.

    Special thanks to @NeoZhangJianyu and looking forward to see this project evolve more!

    edit 1:

    For larger models I am also forced offload output.weight

    Qwen 7b does load -> but TPS is degraded unlike qwen3b above

    set LLAMA_ARG_N_GPU_LAYERS=99
    
    build-b7740\bin\llama-cli.exe -m ..\models\qwen2.5-7b-instruct-q3_k_m.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm layer -ts 1,1 --mmap -ot "token_embd.weight=CPU,output.weight=CPU"
    

    Qwen 30B coder won't even load with this setup (loaded fine pre 57ce7ae47 using the n-1/n trick)

    build-b7740\bin\llama-cli.exe -m ..\models\Qwen3-Coder-30B-A3B-Instruct-UD-Q4_K_XL.gguf  -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm layer -ts 1,1 --mmap -ot "token_embd.weight=CPU,output.weight=CPU,output_norm.weight=CPU"
    
    Loading model... -level_zero backend failed with error: 39 (UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY)
    Exception caught at file:C:\llama_cpp\llama-from-src\ggml\src\ggml-sycl\ggml-sycl.cpp, line:427, func:operator()
    SYCL error: CHECK_TRY_ERROR((*stream).memcpy((char *) tensor->data + offset, data, size).wait()): Exception caught in this line of code.
      in function ggml_backend_sycl_buffer_set_tensor at C:\llama_cpp\llama-from-src\ggml\src\ggml-sycl\ggml-sycl.cpp:427
    C:\llama_cpp\llama-from-src\ggml\src\ggml-sycl\..\ggml-sycl\common.hpp:126: SYCL error
    
  21. NeoZhangJianyu commented on Jan 16, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    Thank you for your checking and share!
    I think this workaround can avoid to trigger the error to load the output layer to GPU.

    I think the llama.cpp should work well with multiple GPUs without special parameters, like ""token_embd.weight=CPU".
    I will check and study the solution to restore to support GPUs the smoothly.

    The debug cost is huge for the architecture issue.

  22. aaricantto commented on Jan 19, 2026

    @aaricantto

    Resolved?

    Ok I have a fix, the bug is related to SYCL malloc contexts. I will refine my diff and make a PR this week as well as clean up my previous messages in this issue - this is not a level zero error and should be reopened

    You will see from the llama.cpp exit statistics below:

    1. model weights are split evenly
    2. context/compute expand/contract dynamically with VRAM allocation
    3. Near zero TPS invariance (expected for pipeline parallelism)

    Tests

    • MODEL: Qwen3-Coder-30B-A3B-Instruct-UD-Q4_K_XL (~17GiB model weight)
    • GPU: 2x ARC B60 24GiB (48GiB Total)

    Is this the first ever llama.cpp deployment for multiple Intel GPUs using the SYCL backend? lol

    Parameters

    set LLAMA_ARG_N_GPU_LAYERS=99
    set ONEAPI_DEVICE_SELECTOR=level_zero:gpu
    
    build-patch-1\bin\llama-cli.exe -m ..\models\Qwen3-Coder-30B-A3B-Instruct-UD-Q4_K_XL.gguf -p "You are a helpful assistant. Explain SYCL in 3 bullet points." -n -1 -sm layer -ts 1,1  --mmap 
    

    Split Tensor

    • [ Prompt: 61.9 t/s | Generation: 24.0 t/s ]
    | memory breakdown [MiB]                        | total   free     self   model   context   compute       unaccounted |
    |   - SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) | 23888 =  980 + (23131 =  8485 +    5937 +    8708) + 17592186044192 |
    |   - SYCL1 (Intel(R) Arc(TM) Pro B60 Graphics) | 23888 = 1761 + (22360 =  8189 +    5462 +    8708) + 17592186044182 |
    |   - Host                                      |                  1120 =   166 +       0 +     954                   |
    

    SYCL1

    • [ Prompt: 78.1 t/s | Generation: 25.8 t/s ]
    | memory breakdown [MiB]                        | total   free     self   model   context   compute       unaccounted |
    |   - SYCL1 (Intel(R) Arc(TM) Pro B60 Graphics) | 23888 = 1286 + (22851 = 16674 +    3624 +    2553) + 17592186044166 |
    |   - Host                                      |                   246 =   166 +       0 +      79                   |
    

    SYCL0

    • [ Prompt: 78.3 t/s | Generation: 25.8 t/s ]
    | memory breakdown [MiB]                        | total   free     self   model   context   compute       unaccounted |
    |   - SYCL0 (Intel(R) Arc(TM) Pro B60 Graphics) | 23888 = 1263 + (22851 = 16674 +    3624 +    2553) + 17592186044189 |
    |   - Host                                      |                   246 =   166 +       0 +      79                   |
    
  23. aaricantto commented on Jan 20, 2026

    @aaricantto

    Maybe someone with a better understand of shared malloc contexts in sycl could have a look at this... and optimize - working on 6df686b

    C:\llama_cpp\llama-cpp-src>git diff --stat
     ggml/src/ggml-sycl/dpct/helper.hpp |  67 +++++++--
     ggml/src/ggml-sycl/ggml-sycl.cpp   | 283 ++++++++++++++++++++++++++++++++-----
     2 files changed, 307 insertions(+), 43 deletions(-)
    

    PATCH (with logging and comments)
    sycl-multigpu-fix.patch

    it would be interesting to see if this fixes your iGPU case as well @NeoZhangJianyu

  24. NeoZhangJianyu commented on Jan 20, 2026

    @NeoZhangJianyu
    Contributor

    @aaricantto
    It's great to see your patch.

    In SYCL, the memory copy of device to device must be in same context.
    It's known limitation.
    In base code, I use a workaround: copy data from device-host-device.

    Since your patch fixed the issue, that means there is code to copy from device to device.
    It's forbidden if both devices are not in same context.

    I will fix this issue based on your patch.
    And I need you support to verify it after it's ready.

    It's also needed to consider the case that iGPU+dGPU in same time. I will test for it.

    Thank you very much!

  25. arthw commented on Jan 21, 2026

    @arthw
    Contributor

    @aaricantto
    Could you test the PR: #18992?

    Thank you!

  26. aaricantto commented on Jan 21, 2026

    @aaricantto

    I get the Same build error presenting in "windows-latest-cmake-sycl'

    FAILED: ggml/src/ggml-sycl/CMakeFiles/ggml-sycl.dir/ggml-sycl.cpp.obj
    C:\PROGRA~2\Intel\oneAPI\compiler\latest\bin\icx.exe  /nologo /TP -DGGML_BACKEND_BUILD -DGGML_BACKEND_SHARED -DGGML_SCHED_MAX_COPIES=4 -DGGML_SHARED -DGGML_SYCL_DNNL=1 -DGGML_SYCL_USE_INTEL_ONEMKL -DGGML_SYCL_WARP_SIZE=16 -D_CRT_SECURE_NO_WARNINGS -D_XOPEN_SOURCE=600 -D__TBB_NO_IMPLICIT_LINKAGE=1 -Dggml_sycl_EXPORTS -IC:\llama_cpp\llama-cpp-src\ggml\src\ggml-sycl\.. -IC:\llama_cpp\llama-cpp-src\ggml\src\..\include -external:I"C:\Program Files (x86)\Intel\oneAPI\compiler\2025.3\include" -external:I"C:\Program Files (x86)\Intel\oneAPI\dnnl\latest\include" -external:I"C:\Program Files (x86)\Intel\oneAPI\tbb\2022.3\include" -external:I"C:\Program Files (x86)\Intel\oneAPI\mkl\latest\include" -external:W0 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /O2 /Ob2 /DNDEBUG -Qstd:c++17 /utf-8 /bigobj -Wno-narrowing -fsycl /EHsc -DMKL_ILP64 -QMD -QMT ggml\src\ggml-sycl\CMakeFiles\ggml-sycl.dir\ggml-sycl.cpp.obj -QMF ggml\src\ggml-sycl\CMakeFiles\ggml-sycl.dir\ggml-sycl.cpp.obj.d /Foggml\src\ggml-sycl\CMakeFiles\ggml-sycl.dir\ggml-sycl.cpp.obj /Fdggml\src\ggml-sycl\CMakeFiles\ggml-sycl.dir\ -c C:\llama_cpp\llama-cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp
    C:\llama_cpp\llama-cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp(300,1): warning: 'dllimport' attribute ignored [-Wignored-attributes]
      300 | GGML_API void ggml_backend_sycl_get_gpu_list(int *id_list, int max_len) try {    
          | ^
    C:\llama_cpp\llama-cpp-src\ggml\include\ggml.h(181,41): note: expanded from macro 'GGML_API'
      181 | #            define GGML_API __declspec(dllimport) extern
          |                                         ^
    C:\llama_cpp\llama-cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp(877,101): warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned long long') [-Wformat]
      877 |             snprintf(err_buf, 1023, "%s: can't allocate %lu Bytes of memory on device\n", __func__, size);
          |                                                         ~~~                                         ^~~~
          |                                                         %zu
    C:\llama_cpp\llama-cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp(1165,18): error: use of undeclared identifier 'aligned_alloc'; did you mean '_aligned_malloc'?
     1165 |     void * ptr = aligned_alloc(TENSOR_ALIGNMENT, size);
          |                  ^~~~~~~~~~~~~
          |                  _aligned_malloc
    C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\corecrt_malloc.h(154,15): note: '_aligned_malloc' declared here
      154 | void* __cdecl _aligned_malloc(
          |               ^
    C:\llama_cpp\llama-cpp-src\ggml\src\ggml-sycl\ggml-sycl.cpp(3962,1): warning: 'dllimport' attribute ignored [-Wignored-attributes]
     3962 | GGML_API void ggml_backend_sycl_get_device_description(int device, char *description,
          | ^
    C:\llama_cpp\llama-cpp-src\ggml\include\ggml.h(181,41): note: expanded from macro 'GGML_API'
      181 | #            define GGML_API __declspec(dllimport) extern
          |                                         ^
    3 warnings and 1 error generated.
    ninja: build stopped: subcommand failed.
    
  27. arthw commented on Jan 22, 2026

    @arthw
    Contributor

    Sorry, I forgot to test on windows.
    I will fix it.

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedcritical severitystale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions