Operating System
Other Linux (specify below)
OS Details (if "Other" or additional info)
Ubuntu 26.04
GPU Model
AMD Radeon AI PRO R9700
llamacpp-rocm Build Version
B8935
Model Used
unsloth/Qwen3.6-27B-GGUF-UD-Q4_K_XL
Does this issue also occur with Vulkan on upstream llama.cpp?
Yes — also broken on Vulkan / upstream llama.cpp
Issue Description
On Ubuntu Linux 26.04 llama.cpp rocm backend run on platform with one GPU (R9700, gfx1201) and integrated graphics (9950X3D, gfx1036) , llama.cpp rocm backend will segfault with default options. This is behaviour also happens with upstream llama.cpp build.
Additional Information
It will load successfully if main GPU selected and pipeline parallelism disabled `-mg 0 -sm none`
llama.cpp vulkan backend loads successfully
Log output:
2026-05-17 12:33:05.652 [Info] (Process) ............................................................................................
2026-05-17 12:33:05.655 [Info] (Process) common_init_result: added <|endoftext|> logit bias = -inf
2026-05-17 12:33:05.655 [Info] (Process) common_init_result: added <|im_end|> logit bias = -inf
2026-05-17 12:33:05.655 [Info] (Process) common_init_result: added <|fim_pad|> logit bias = -inf
2026-05-17 12:33:05.655 [Info] (Process) common_init_result: added <|repo_name|> logit bias = -inf
2026-05-17 12:33:05.655 [Info] (Process) common_init_result: added <|file_sep|> logit bias = -inf
2026-05-17 12:33:05.655 [Info] (Process) llama_context: constructing llama_context
2026-05-17 12:33:05.655 [Info] (Process) llama_context: n_seq_max = 4
2026-05-17 12:33:05.655 [Info] (Process) llama_context: n_ctx = 131072
2026-05-17 12:33:05.655 [Info] (Process) llama_context: n_ctx_seq = 131072
2026-05-17 12:33:05.655 [Info] (Process) llama_context: n_batch = 2048
2026-05-17 12:33:05.655 [Info] (Process) llama_context: n_ubatch = 512
2026-05-17 12:33:05.655 [Info] (Process) llama_context: causal_attn = 1
2026-05-17 12:33:05.655 [Info] (Process) llama_context: flash_attn = auto
2026-05-17 12:33:05.655 [Info] (Process) llama_context: kv_unified = true
2026-05-17 12:33:05.655 [Info] (Process) llama_context: freq_base = 10000000.0
2026-05-17 12:33:05.655 [Info] (Process) llama_context: freq_scale = 1
2026-05-17 12:33:05.655 [Info] (Process) llama_context: n_ctx_seq (131072) < n_ctx_train (262144) -- the full capacity of the model will not be utilized
2026-05-17 12:33:05.656 [Info] (Process) llama_context: ROCm_Host output buffer size = 3.79 MiB
2026-05-17 12:33:05.657 [Info] (Process) llama_kv_cache: ROCm0 KV buffer size = 2048.00 MiB
2026-05-17 12:33:05.944 [Info] (Process) llama_kv_cache: ROCm1 KV buffer size = 6144.00 MiB
2026-05-17 12:33:06.082 [Info] (Process) llama_kv_cache: size = 8192.00 MiB (131072 cells, 16 layers, 4/1 seqs), K (f16): 4096.00 MiB, V (f16): 4096.00 MiB
2026-05-17 12:33:06.082 [Info] (Process) llama_kv_cache: attn_rot_k = 0, n_embd_head_k_all = 256
2026-05-17 12:33:06.082 [Info] (Process) llama_kv_cache: attn_rot_v = 0, n_embd_head_k_all = 256
2026-05-17 12:33:06.083 [Info] (Process) llama_memory_recurrent: ROCm0 RS buffer size = 162.09 MiB
2026-05-17 12:33:06.115 [Info] (Process) llama_memory_recurrent: ROCm1 RS buffer size = 436.41 MiB
2026-05-17 12:33:06.116 [Info] (Process) llama_memory_recurrent: size = 598.50 MiB ( 4 cells, 64 layers, 4 seqs), R (f32): 22.50 MiB, S (f32): 576.00 MiB
2026-05-17 12:33:06.116 [Info] (Process) llama_context: pipeline parallelism enabled
2026-05-17 12:33:06.116 [Info] (Process) sched_reserve: reserving ...
2026-05-17 12:33:06.120 [Info] (Process) sched_reserve: Flash Attention was auto, set to enabled
2026-05-17 12:33:06.120 [Info] (Process) sched_reserve: resolving fused Gated Delta Net support:
2026-05-17 12:33:06.120 [Info] (Process) sched_reserve: fused Gated Delta Net (autoregressive) enabled
2026-05-17 12:33:06.121 [Info] (Process) sched_reserve: fused Gated Delta Net (chunked) enabled
2026-05-17 12:33:06.331 [Info] (Process) sched_reserve: ROCm0 compute buffer size = 1336.06 MiB
2026-05-17 12:33:06.331 [Info] (Process) sched_reserve: ROCm1 compute buffer size = 1047.07 MiB
2026-05-17 12:33:06.331 [Info] (Process) sched_reserve: ROCm_Host compute buffer size = 1044.08 MiB
2026-05-17 12:33:06.331 [Info] (Process) sched_reserve: graph nodes = 3657
2026-05-17 12:33:06.331 [Info] (Process) sched_reserve: graph splits = 3
2026-05-17 12:33:06.331 [Info] (Process) sched_reserve: reserve took 215.60 ms, sched copies = 4
2026-05-17 12:33:06.331 [Info] (Process) common_init_from_params: KV cache shifting is not supported for this context, disabling KV cache shifting
2026-05-17 12:33:06.331 [Info] (Process) common_init_from_params: warming up the model with an empty run - please wait ... (--no-warmup to disable)
2026-05-17 12:33:06.561 [Error] (WrappedServer) llama-server process has terminated with exit code: -1
2026-05-17 12:33:06.561 [Error] (WrappedServer) This usually means:
2026-05-17 12:33:06.561 [Error] (WrappedServer) - Missing required drivers or dependencies
2026-05-17 12:33:06.561 [Error] (WrappedServer) - Incompatible model file
2026-05-17 12:33:06.561 [Error] (WrappedServer) - Try running the server manually to see the actual error
2026-05-17 12:33:11.570 [Warn] (ProcessManager) Process did not respond to SIGTERM, using SIGKILL
2026-05-17 12:33:11.570 [Info] (ProcessManager) Process terminated, waiting for GPU driver cleanup...
2026-05-17 12:33:13.570 [Error] (Router) Retry also failed: llama-server failed to start
2026-05-17 12:33:13.570 [Info] (LlamaCpp) Unloading model...
2026-05-17 12:33:13.570 [Info] (LlamaCpp) Unloading model...
2026-05-17 12:33:13.570 [Error] (Router) Failed to load model: llama-server failed to start
2026-05-17 12:33:13.570 [Error] (Server) Failed to load model: llama-server failed to start
2026-05-17 12:33:13.570 [Error] (Server) Error 500: POST /api/v1/load
2026-05-17 12:56:26.478 [Info] (Server) Log level changed to: debug
rocminfo:
ROCk module is loaded
=====================
HSA System Attributes
=====================
Runtime Version: 1.1
Runtime Ext Version: 1.14
System Timestamp Freq.: 1000.000000MHz
Sig. Max Wait Duration: 18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model: LARGE
System Endianness: LITTLE
Mwaitx: DISABLED
XNACK enabled: NO
DMAbuf Support: YES
VMM Support: YES
==========
HSA Agents
==========
*******
Agent 1
*******
Name: AMD Ryzen 9 9950X3D 16-Core Processor
Uuid: CPU-XX
Marketing Name: AMD Ryzen 9 9950X3D 16-Core Processor
Vendor Name: CPU
Feature: None specified
Profile: FULL_PROFILE
Float Round Mode: NEAR
Max Queue Number: 0(0x0)
Queue Min Size: 0(0x0)
Queue Max Size: 0(0x0)
Queue Type: MULTI
Node: 0
Device Type: CPU
Cache Info:
L1: 49152(0xc000) KB
Chip ID: 0(0x0)
ASIC Revision: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 5756
BDFID: 0
Internal Node ID: 0
Compute Unit: 32
SIMDs per CU: 0
Shader Engines: 0
Shader Arrs. per Eng.: 0
WatchPts on Addr. Ranges:1
Memory Properties:
Features: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 127097132(0x793592c) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size: 127097132(0x793592c) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 3
Segment: GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size: 127097132(0x793592c) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 4
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 127097132(0x793592c) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
ISA Info:
*******
Agent 2
*******
Name: gfx1201
Uuid: GPU-7c3bbefc1ef95918
Marketing Name: AMD Radeon AI PRO R9700
Vendor Name: AMD
Feature: KERNEL_DISPATCH
Profile: BASE_PROFILE
Float Round Mode: NEAR
Max Queue Number: 128(0x80)
Queue Min Size: 64(0x40)
Queue Max Size: 131072(0x20000)
Queue Type: MULTI
Node: 1
Device Type: GPU
Cache Info:
L1: 32(0x20) KB
L2: 8192(0x2000) KB
L3: 65536(0x10000) KB
Chip ID: 30033(0x7551)
ASIC Revision: 1(0x1)
Cacheline Size: 256(0x100)
Max Clock Freq. (MHz): 2350
BDFID: 768
Internal Node ID: 1
Compute Unit: 64
SIMDs per CU: 2
Shader Engines: 4
Shader Arrs. per Eng.: 2
WatchPts on Addr. Ranges:4
Coherent Host Access: FALSE
Memory Properties:
Features: KERNEL_DISPATCH
Fast F16 Operation: TRUE
Wavefront Size: 32(0x20)
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Max Waves Per CU: 32(0x20)
Max Work-item Per CU: 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
Max fbarriers/Workgrp: 32
Packet Processor uCode:: 218
SDMA engine uCode:: 662
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 33406976(0x1fdc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 2
Segment: GROUP
Size: 64(0x40) KB
Allocatable: FALSE
Alloc Granule: 0KB
Alloc Recommended Granule:0KB
Alloc Alignment: 0KB
Accessible by all: FALSE
ISA Info:
ISA 1
Name: amdgcn-amd-amdhsa--gfx1201
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
ISA 2
Name: amdgcn-amd-amdhsa--gfx12-generic
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
*******
Agent 3
*******
Name: gfx1036
Uuid: GPU-XX
Marketing Name: AMD Ryzen 9 9950X3D 16-Core Processor
Vendor Name: AMD
Feature: KERNEL_DISPATCH
Profile: BASE_PROFILE
Float Round Mode: NEAR
Max Queue Number: 128(0x80)
Queue Min Size: 64(0x40)
Queue Max Size: 131072(0x20000)
Queue Type: MULTI
Node: 2
Device Type: GPU
Cache Info:
L1: 16(0x10) KB
L2: 256(0x100) KB
Chip ID: 5056(0x13c0)
ASIC Revision: 1(0x1)
Cacheline Size: 128(0x80)
Max Clock Freq. (MHz): 2200
BDFID: 31488
Internal Node ID: 2
Compute Unit: 2
SIMDs per CU: 2
Shader Engines: 1
Shader Arrs. per Eng.: 1
WatchPts on Addr. Ranges:4
Coherent Host Access: FALSE
Memory Properties: APU
Features: KERNEL_DISPATCH
Fast F16 Operation: TRUE
Wavefront Size: 32(0x20)
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Max Waves Per CU: 32(0x20)
Max Work-item Per CU: 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
Max fbarriers/Workgrp: 32
Packet Processor uCode:: 26
SDMA engine uCode:: 9
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 63548564(0x3c9ac94) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size: 63548564(0x3c9ac94) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 3
Segment: GROUP
Size: 64(0x40) KB
Allocatable: FALSE
Alloc Granule: 0KB
Alloc Recommended Granule:0KB
Alloc Alignment: 0KB
Accessible by all: FALSE
ISA Info:
ISA 1
Name: amdgcn-amd-amdhsa--gfx1036
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
ISA 2
Name: amdgcn-amd-amdhsa--gfx10-3-generic
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
*** Done ***
Operating System
Other Linux (specify below)
OS Details (if "Other" or additional info)
Ubuntu 26.04
GPU Model
AMD Radeon AI PRO R9700
llamacpp-rocm Build Version
B8935
Model Used
unsloth/Qwen3.6-27B-GGUF-UD-Q4_K_XL
Does this issue also occur with Vulkan on upstream llama.cpp?
Yes — also broken on Vulkan / upstream llama.cpp
Issue Description
On Ubuntu Linux 26.04 llama.cpp rocm backend run on platform with one GPU (R9700, gfx1201) and integrated graphics (9950X3D, gfx1036) , llama.cpp rocm backend will segfault with default options. This is behaviour also happens with upstream llama.cpp build.
Additional Information