Skip to content

AZ-000 - fix: support legacy AMD hardware in CPU and Vulkan paths - #2564

Closed
zakhalex wants to merge 1 commit into
LostRuins:concedofrom
zakhalex:feature/AZ-000-fixing-legacy-AMD-hardware-issues
Closed

zakhalex wants to merge 1 commit into
LostRuins:concedofrom
zakhalex:feature/AZ-000-fixing-legacy-AMD-hardware-issues

Conversation

@zakhalex

@zakhalex zakhalex commented Oct 26, 2026 •

Copy link
Copy Markdown

Adjust Makefile configuration to support Bulldozer-era FX CPUs such as the FX-8120 without requiring unsupported AVX2, FMA3, F16C, or BMI/BMI2 instructions.

Fix a bug with memory allocation.

Add GGML_VK_DISABLE_GET_TENSOR_ASYNC to disable the Vulkan asynchronous tensor-readback callback independently of the broader async backend interface.

Preserve the existing asynchronous execution behavior by default; enable the readback fallback only when explicitly requested.

Work around corrupted generation observed with Gemma 4 on an AMD Radeon R9 390 using the legacy Windows Vulkan driver.

Tested with Gemma 4 E4B IT Q4_K_M on an AMD FX-8120 / Radeon R9 390 system. Disabling the asynchronous tensor-readback callback (export GGML_VK_DISABLE_GET_TENSOR_ASYNC=1 right before calling koboldcpp execution) restored coherent generation in both KoboldCpp and standalone llama.cpp while retaining Vulkan GPU offload.

Adjust Makefile configuration to support Bulldozer-era FX CPUs such as the FX-8120 without requiring unsupported AVX2, FMA3, F16C, or BMI/BMI2 instructions.

Add GGML_VK_DISABLE_GET_TENSOR_ASYNC to disable the Vulkan asynchronous tensor-readback callback independently of the broader async backend interface.

Preserve the existing asynchronous execution behavior by default; enable the readback fallback only when explicitly requested.

Work around corrupted generation observed with Gemma 4 on an AMD Radeon R9 390 using the legacy Windows Vulkan driver.

Tested with Gemma 4 E4B IT Q4_K_M on an AMD FX-8120 / Radeon R9 390 system. Disabling the asynchronous tensor-readback callback restored coherent generation in both KoboldCpp and standalone llama.cpp while retaining Vulkan GPU offload.
@zakhalex

Copy link
Copy Markdown
Author

@LostRuins - did a few fixes for my legacy hardware (it worked) and figured it might be beneficial to get them out there into public repo, so, bringing them up for your attention.

@LostRuins

Copy link
Copy Markdown
Owner

A scoped down fix was added in 1.124, please try that

@zakhalex

Copy link
Copy Markdown
Author

A scoped down fix was added in 1.124, please try that
The scoped down fix didn't work - corruption behavior unchanged from 1.123.

  1. Simply launching the .exe for 1.124 without recompiling libraries for Bulldozer-compatibility yields:

Loading Text Model: G:\LLMs\models\unsloth\gemma-4-E4B-it-GGUF\gemma-4-E4B-it-UD-IQ2_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54


Identified as GGUF model.
Attempting to Load...

Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
File "koboldcpp.py", line 14663, in
main(launch_args=launch_args,default_args=parser.parse_args([]))
File "koboldcpp.py", line 13061, in main
kcpp_main_process(args,global_memory,using_gui_launcher)
File "koboldcpp.py", line 13843, in kcpp_main_process
loadok = load_model(modelname)
File "koboldcpp.py", line 2273, in load_model
ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[20732] Failed to execute script 'koboldcpp' due to unhandled exception!
image

  1. After recompiling through w64devkit with
make LLAMA_VULKAN=1 LLAMA_PORTABLE=1 LLAMA_NOAVX2=1 EXTRA_CFLAGS="-march=bdver1 -mno-avx2 -mno-fma -mno-f16c -mno-bmi -mno-bmi2" EXTRA_CXXFLAGS="-march=bdver1 -mno-avx2 -mno-fma -mno-f16c -mno-bmi -mno-bmi2"

(I didn't have to touch the Makefile - command line override was sufficient)

If started with

python koboldcpp.py --usevulkan --noavx2 --failsafe --model "G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf" --gpulayers 99

without any extra variables in the environment - it starts, but it still has the memory allocation bug that this pull request was fixing (hence the warning about overallocating):

WARNING: Requested buffer size (2315255840) exceeds device max_buffer_size limit (2147483648)!
load_tensors: offloading output layer to GPU
load_tensors: offloading 41 repeating layers to GPU
load_tensors: offloaded 43/43 layers to GPU
load_tensors:      Vulkan0 model buffer size =  2883.51 MiB
load_tensors:  Vulkan_Host model buffer size =  2208.00 MiB
load_all_data: using async uploads for device Vulkan0, buffer type Vulkan0, backend Vulkan0

and during execution it still produces corrupted output:

image

If I use the

export GGML_VK_DISABLE_ASYNC=1

before starting - output normalizes

image

But, like I've noted in this pull request - it is excessive as it disables three asynchronous code paths, wheres, what I did in the pull request specifically disabled one, leaving the other two intact.

@LostRuins

Copy link
Copy Markdown
Owner

Looks like the device was not detected as legacy GCN, so async was still enabled.
I've broadened the checks, can you test this rolling build? Being able to auto-detect it would be better than adding a flag people must use manually

https://github.com/LostRuins/koboldcpp/releases/tag/rolling

Build will be ready in 2 hours from now... you can try the above later.

@zakhalex

zakhalex commented Nov 1, 2026

Copy link
Copy Markdown
Author

Looks like the device was not detected as legacy GCN, so async was still enabled. I've broadened the checks, can you test this rolling build? Being able to auto-detect it would be better than adding a flag people must use manually

https://github.com/LostRuins/koboldcpp/releases/tag/rolling

Build will be ready in 2 hours from now... you can try the above later.

The GPU is indeed detected as Other (might be due to int dot 0 - didn't dig further: ggml_vulkan: 0 = AMD Radeon (TM) R9 390 Series (AMD proprietary driver) | uma: 0 | fp16: 0 | bf16: 0 | fp4: 0 | warp size: 64 | shared memory: 65536 | int dot: 0 | matrix cores: none). Since I was aiming for surgical fix, you can see that I have added an additional flag

GGML_VK_FORCE_AMD_GCN

for architecture detection override in my pull request to help with debugging.
The rolling builds are still not Bulldozer-compatible:


G:\LLMs>koboldcpp-nocuda.exe
***
Welcome to KoboldCpp - Version 1.124.1
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Auto Selected Vulkan Backend (flag=1)

Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI222162\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 2263 MB
Initializing dynamic library: koboldcpp_vulkan_noavx2.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword='', adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=None, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel=None, embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=True, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile=None, mmproj=None, mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv=None, overridenativecontext=0, overridetensors=None, parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory=None, prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile=None, sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=-1, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=3, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=3, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[0], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
  File "koboldcpp.py", line 14709, in <module>
    main(launch_args=launch_args,default_args=parser.parse_args([]))
  File "koboldcpp.py", line 13107, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
  File "koboldcpp.py", line 13889, in kcpp_main_process
    loadok = load_model(modelname)
  File "koboldcpp.py", line 2304, in load_model
    ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[19840] Failed to execute script 'koboldcpp' due to unhandled exception!

G:\LLMs>koboldcpp-oldpc.exe
***
Welcome to KoboldCpp - Version 1.124.1
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Auto Selected Vulkan Backend (flag=1)

Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI31682\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 2297 MB
Initializing dynamic library: koboldcpp_vulkan_noavx2.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword='', adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=None, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel=None, embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=True, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile=None, mmproj=None, mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv=None, overridenativecontext=0, overridetensors=None, parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory=None, prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile=None, sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=-1, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=3, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=3, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[0], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
  File "koboldcpp.py", line 14709, in <module>
    main(launch_args=launch_args,default_args=parser.parse_args([]))
  File "koboldcpp.py", line 13107, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
  File "koboldcpp.py", line 13889, in kcpp_main_process
    loadok = load_model(modelname)
  File "koboldcpp.py", line 2304, in load_model
    ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[16220] Failed to execute script 'koboldcpp' due to unhandled exception!

G:\LLMs>koboldcpp.exe
***
Welcome to KoboldCpp - Version 1.124.1
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Auto Selected Vulkan Backend (flag=1)

Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI184882\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 2345 MB
Initializing dynamic library: koboldcpp_vulkan_noavx2.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword='', adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=None, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel=None, embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=True, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile=None, mmproj=None, mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv=None, overridenativecontext=0, overridetensors=None, parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory=None, prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile=None, sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=-1, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=3, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=3, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[0], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
  File "koboldcpp.py", line 14709, in <module>
    main(launch_args=launch_args,default_args=parser.parse_args([]))
  File "koboldcpp.py", line 13107, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
  File "koboldcpp.py", line 13889, in kcpp_main_process
    loadok = load_model(modelname)
  File "koboldcpp.py", line 2304, in load_model
    ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[17484] Failed to execute script 'koboldcpp' due to unhandled exception!

G:\LLMs>

After recompiling for Bulldozer - memory allocation bug still remains:

WARNING: Requested buffer size (2315255840) exceeds device max_buffer_size limit (2147483648)!

Note what I did on line 13212 in this pull request - that fixes this warning hooking up to callback:

/* .get_max_size        = */ ggml_backend_vk_host_buffer_type_get_max_size, // kcpp: defaults to SIZE_MAX,

Your async fix for the output worked though:
image

@LostRuins

Copy link
Copy Markdown
Owner

Sorry i think my windows rolling builds failed. I'm rebuilding them now

The rolling builds are still not Bulldozer-compatible

Is this a new regression? is there any part of your original PR that fixes build compatibility for you?

@LostRuins

Copy link
Copy Markdown
Owner

The release has been updated - does it still crash now? If so, would appreciate if you could highlight which change exactly fixes it for you

@zakhalex

zakhalex commented Nov 2, 2026

Copy link
Copy Markdown
Author

The release has been updated - does it still crash now? If so, would appreciate if you could highlight which change exactly fixes it for you

The executables still crash when loading the model. What fixes it for me is checking out the code locally (e.g. last time I responded and confirmed that your async fix works, I used concedo_experimental branch) and recompiling the libraries on the local machine via

make LLAMA_VULKAN=1 LLAMA_PORTABLE=1 LLAMA_NOAVX2=1

without any changes to the code whatsoever.

The crash logs, if helpful, are below:

  1. Koboldcpp:
G:\LLMs>koboldcpp.exe
***
Welcome to KoboldCpp - Version 1.124.2
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Auto Selected Vulkan Backend (flag=1)

Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI88802\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 6840 MB
Initializing dynamic library: koboldcpp_vulkan_noavx2.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword='', adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=None, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel=None, embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=True, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile=None, mmproj=None, mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv=None, overridenativecontext=0, overridetensors=None, parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory=None, prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile=None, sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=-1, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=3, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=3, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[0], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
  File "koboldcpp.py", line 14712, in <module>
    main(launch_args=launch_args,default_args=parser.parse_args([]))
  File "koboldcpp.py", line 13110, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
  File "koboldcpp.py", line 13892, in kcpp_main_process
    loadok = load_model(modelname)
  File "koboldcpp.py", line 2304, in load_model
    ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[9584] Failed to execute script 'koboldcpp' due to unhandled exception!
  1. koboldcpp-oldpc.exe:
G:\LLMs>koboldcpp-oldpc.exe
***
Welcome to KoboldCpp - Version 1.124.2
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Auto Selected Vulkan Backend (flag=1)

Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI202362\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 6844 MB
Initializing dynamic library: koboldcpp_vulkan_noavx2.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword='', adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=None, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel=None, embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=True, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile=None, mmproj=None, mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv=None, overridenativecontext=0, overridetensors=None, parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory=None, prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile=None, sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=-1, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=3, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=3, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[0], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
  File "koboldcpp.py", line 14712, in <module>
    main(launch_args=launch_args,default_args=parser.parse_args([]))
  File "koboldcpp.py", line 13110, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
  File "koboldcpp.py", line 13892, in kcpp_main_process
    loadok = load_model(modelname)
  File "koboldcpp.py", line 2304, in load_model
    ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[14908] Failed to execute script 'koboldcpp' due to unhandled exception!
  1. koboldcpp-nocuda.exe:
G:\LLMs>koboldcpp-nocuda.exe
***
Welcome to KoboldCpp - Version 1.124.2
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Auto Selected Vulkan Backend (flag=1)

Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI133242\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 6874 MB
Initializing dynamic library: koboldcpp_vulkan_noavx2.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword='', adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=None, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel=None, embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=False, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=True, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile=None, mmproj=None, mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv=None, overridenativecontext=0, overridetensors=None, parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory=None, prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile=None, sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=-1, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=3, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=3, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[0], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
Traceback (most recent call last):
  File "koboldcpp.py", line 14712, in <module>
    main(launch_args=launch_args,default_args=parser.parse_args([]))
  File "koboldcpp.py", line 13110, in main
    kcpp_main_process(args,global_memory,using_gui_launcher)
  File "koboldcpp.py", line 13892, in kcpp_main_process
    loadok = load_model(modelname)
  File "koboldcpp.py", line 2304, in load_model
    ret = handle.load_model(inputs)
OSError: [WinError -1073741795] Windows Error 0xc000001d
[940] Failed to execute script 'koboldcpp' due to unhandled exception!

I strongly suspect that it is related to lack of FMA3 and F16C support on Bulldozer that are still included in the rolling build. You can see that in my original pull request I was trying to inject the flags to exclude them into the makefile:

<img width="1179" height="103" alt="image" src="https://github.com/user-attachments/assets/c1ec60a2-7b18-44a1-8aed-c2bbd73ef9ae" />

although your current Makefile works unchanged for

make LLAMA_VULKAN=1 LLAMA_PORTABLE=1 LLAMA_NOAVX2=1

resulting a Bulldozer-compatible build.

@LostRuins

Copy link
Copy Markdown
Owner

Hang on, have you tried running the Vulkan (Older PC) option?

Please try launching that from koboldcpp-oldpc.exe

image

Or pass in --usevulkan --failsafe when launching the oldpc.exe

@zakhalex

zakhalex commented Nov 2, 2026

Copy link
Copy Markdown
Author

Hang on, have you tried running the Vulkan (Older PC) option?

Please try launching that from koboldcpp-oldpc.exe
image

Or pass in --usevulkan --failsafe when launching the oldpc.exe

It works from CLI:

G:\LLMs>koboldcpp-oldpc.exe --usevulkan --failsafe
***
Welcome to KoboldCpp - Version 1.124.2
For command line arguments, please run --help in the terminal.
Note: The GUI mode is not accessible to screen readers.
***
Loading Chat Completions Adapter: C:\Users\Admin\AppData\Local\Temp\_MEI186602\kcpp_adapters\AutoGuess.json
Chat Completions Adapter Loaded
Auto Recommended GPU Layers: 10
GPU layers is default: Will enable AutoFit for increased estimation accuracy.
System: Windows 10.0.26100 AMD64 AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD
Detected Available GPU Memory: 7936 MB
Detected Available RAM: 7206 MB
Initializing dynamic library: koboldcpp_vulkan_failsafe.dll
Loaded shared common library: koboldcpp_common.dll
==========
Namespace(admin=False, admindir='', adminpassword=None, adminunloadtimeout=0, agent=False, agent_api_key=None, agent_base_url=None, agentload='', allow_config_onready=False, analyze='', autofit=True, autofitpadding=1024, autoswapmode=False, autoswapthreshold=256, baseconfig='', batchsize=512, benchmark=None, blasthreads=0, chatcompletionsadapter='AutoGuess', cli=False, config=None, contextsize=16384, debugmode=0, defaultgenamt=2048, device='', downloaddir='', draftamount=4, draftgpulayers=999, draftgpusplit=None, draftmodel='', embeddingsgpu=False, embeddingsmaxctx=4096, embeddingsmodel='', enableguidance=False, exportconfig='', exporttemplate='', failsafe=True, ffncpu=0, flashattention=False, forceversion=False, foreground=False, gendefaults='', gendefaultsoverwrite=False, genlimit=0, gpulayers=10, highpriority=False, hordeconfig=None, hordegenlen=0, hordekey='', hordemaxctx=0, hordemodelname='', hordeworkername='', host='', ignoremissing=False, jinja=False, jinja_kwargs='', jinjatemplate='', jinjathink='default', launch=False, lazy_mode='auto', lora=None, loramult=1.0, lowvram=False, maingpu=-1, maxrequestsize=32, mcpfile='', mmproj='', mmprojcpu=False, model=[], model_param='G:/LLMs/gemma-4-E4B-it-Q4_K_M.gguf', moe_cache_mib=0, moecpu=0, moeexperts=-1, multiplayer=False, multiuser=None, musicdiffusion='', musicembeddings='', musicllm='', musiclowvram=False, musicvae='', noavx2=True, noblas=False, nobostoken=False, nocertify=False, nofastforward=False, noflashattention=False, nommap=False, nommq=False, nomodel=False, nopipelineparallel=False, noshift=False, noswa=False, onready='', overridekv='', overridenativecontext=0, overridetensors='', parallelrequests=1, paralleltotalcontext=0, password=None, pipelineparallel=False, port=5001, port_param=5001, preloadstory='', prompt='', proxy_port=None, quantkv='f16', queuelimit=10, quiet=False, ratelimit=0, reasoningeffort='default', remotetunnel=False, reqtimeout=600, ropeconfig=[0.0, 10000.0], routermode=False, rpccache='', rpcdevice='', rpchost='0.0.0.0', rpcmode='disabled', rpcport=5551, rpctargets='', run_bundled_agent=False, savedatafile='', sdaudiovae='', sdclamped=0, sdclampedsoft=0, sdclip1='', sdclip2='', sdclipdevice=-2, sdclipgpu=False, sdconfig=None, sdconvdirect='off', sdflashattention=False, sdgendefaults=False, sdllm='', sdlora=[], sdloramult=[1.0], sdmaingpu=None, sdmodel='', sdnotile=False, sdoffloadcpu=False, sdphotomaker='', sdquant=0, sdt5xxl=None, sdthreads=0, sdtiledvae=512, sdupscaler='', sdvae='', sdvaeauto=False, sdvaecpu=False, sdvaedevice=-1, sdvramlimit=0, showgui=False, singleinstance=False, skiplauncher=False, smartcache=0, smartcontext=False, splitmode='layer', ssl=None, swapadding=0, tensor_split=None, testmemory=False, threads=3, ttsdir='', ttsgpu=False, ttsmaxlen=4096, ttsmodel='', ttsthreads=0, ttswavtokenizer='', ubatchsize=-1, unpack='', usecpu=False, usecuda=None, usedirectio=False, usemlock=False, usemmap=False, usemtp=False, useswa=False, usevulkan=[], version=False, visionmaxres=1024, visionmaxtokens=-1, visionmintokens=-1, websearch=False, whispermodel='')
==========
Loading Text Model: G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf

The reported GGUF Arch is: gemma4
Arch Category: 54

---
Identified as GGUF model.
Attempting to Load...
---
Using automatic RoPE scaling for GGUF. If the model has custom RoPE settings, they'll be used directly instead!
System Info: AVX = 0 | AVX_VNNI = 0 | AVX2 = 0 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | AMX_INT8 = 0 | FMA = 0 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 0 | FP16_VA = 0 | RISCV_VECT = 0 | WASM_SIMD = 0 | SSE3 = 0 | SSSE3 = 0 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 |
ggml_vulkan: Found 1 Vulkan devices:
ggml_vulkan: 0 = AMD Radeon (TM) R9 390 Series (AMD proprietary driver) | uma: 0 | fp16: 0 | bf16: 0 | fp4: 0 | warp size: 64 | shared memory: 65536 | int dot: 0 | matrix cores: none
Number of Backends: 3
Backend 0: Vulkan
Backend 1: RPC
Backend 2: CPU

Attempting to use llama.cpp's automating fitting code. This will override all your layer configs, may or may not work!
Autofit Reserve Space: 1024 MB
Autofit Success: 1, Autofit Result: -c 16512 -ngl -1
llama_model_loader: loaded meta data with 56 key-value pairs and 720 tensors from G:\LLMs\gemma-4-E4B-it-Q4_K_M.gguf (version GGUF V3 (latest))
print_info: file format = GGUF V3 (latest)
print_info: file type   = unknown, may not work
print_info: file size   = 4.62 GiB (5.28 BPW)
llama_prepare_model_devices: using device Vulkan0 (AMD Radeon (TM) R9 390 Series) (unknown id) - 7383 MiB free
init_tokenizer: initializing tokenizer for type 2
load: 0 unused tokens
load: control-looking token:    212 '</s>' was not control-type; this is probably a bug in the model. its type will be overridden
load: control-looking token:     50 '<|tool_response>' was not control-type; this is probably a bug in the model. its type will be overridden
load: control-looking token:      1 '<eos>' was not control-type; this is probably a bug in the model. its type will be overridden
load: printing all EOG tokens:
load:   - 1 ('<eos>')
load:   - 50 ('<|tool_response>')
load:   - 106 ('<turn|>')
load:   - 212 ('</s>')
load: '</s>' is a normal token here, removing it from EOG list
load: special tokens cache size = 24
load: token to piece cache size = 1.9445 MB
print_info: arch                  = gemma4
print_info: vocab_only            = 0
print_info: no_alloc              = 0
print_info: n_ctx_train           = 131072
print_info: n_embd_inp            = 2560
print_info: n_embd                = 2560
print_info: n_embd_out            = 2560
print_info: n_layer               = 42
print_info: n_layer_all           = 42
print_info: n_head                = 8
print_info: n_head_kv             = 2
print_info: n_rot                 = 512
print_info: n_swa                 = 512
print_info: is_swa_any            = 1
print_info: non_causal_type       = 1
print_info: n_embd_head_k         = 512
print_info: n_embd_head_v         = 512
print_info: n_gqa                 = 4
print_info: n_embd_k_gqa          = [512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024]
print_info: n_embd_v_gqa          = [512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024, 512, 512, 512, 512, 512, 1024]
print_info: f_norm_eps            = 0.0e+00
print_info: f_norm_rms_eps        = 1.0e-06
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          = 1.0e+00
print_info: f_attn_value_scale    = 0.0000
print_info: n_ff                  = 10240
print_info: n_expert              = 0
print_info: n_expert_used         = 0
print_info: n_expert_groups       = 0
print_info: n_group_used          = 0
print_info: causal attn           = 1
print_info: pooling type          = -1
print_info: rope type             = 2
print_info: rope scaling          = linear
print_info: freq_base_train       = 1000000.0
print_info: freq_scale_train      = 1
print_info: freq_base_swa         = 10000.0
print_info: freq_scale_swa        = 1
print_info: n_embd_head_k_swa     = 256
print_info: n_embd_head_v_swa     = 256
print_info: n_rot_swa             = 256
print_info: n_ctx_orig_yarn       = 131072
print_info: rope_yarn_log_mul     = 0.0000
print_info: rope_finetuned        = unknown
print_info: model type            = E4B
print_info: model params          = 7.52 B
print_info: general.name          = Gemma-4-E4B-It
print_info: vocab type            = BPE
print_info: n_vocab               = 262144
print_info: n_merges              = 514906
print_info: BOS token             = 2 '<bos>'
print_info: EOS token             = 106 '<turn|>'
print_info: UNK token             = 3 '<unk>'
print_info: PAD token             = 0 '<pad>'
print_info: MASK token            = 4 '<mask>'
print_info: LF token              = 107 '
'
print_info: EOG token             = 1 '<eos>'
print_info: EOG token             = 50 '<|tool_response>'
print_info: EOG token             = 106 '<turn|>'
print_info: max token length      = 93
load_tensors: loading model tensors, this can take a while... (load_mode = none)

**WARNING: Requested buffer size (2315255840) exceeds device max_buffer_size limit (2147483648)!**
load_tensors: offloading output layer to GPU
load_tensors: offloading 41 repeating layers to GPU
load_tensors: offloaded 43/43 layers to GPU
load_tensors:      Vulkan0 model buffer size =  2883.51 MiB
load_tensors:  Vulkan_Host model buffer size =  2208.00 MiB
load_all_data: using async uploads for device Vulkan0, buffer type Vulkan0, backend Vulkan0
....................................................

SWA Mode is ENABLED!
Note that using SWA Mode cannot be used with Context Shifting!
Context shifting is DISABLED!
Automatic RoPE Scaling: Using model internal value.
llama_context: constructing llama_context
llama_context: n_seq_max             = 1
llama_context: n_ctx                 = 16640
llama_context: n_ctx_seq             = 16640
llama_context: n_batch               = 512
llama_context: n_ubatch              = 512
llama_context: causal_attn           = 1
llama_context: flash_attn            = enabled
llama_context: kv_unified            = true
llama_context: freq_base             = 1000000.0
llama_context: freq_scale            = 1
llama_context: n_rs_seq              = 0
llama_context: n_outputs_max         = 512
llama_context: n_outputs_max_per_seq = 1
llama_context: n_ctx_seq (16640) < n_ctx_train (131072) -- the full capacity of the model will not be utilized
set_abort_callback: call
llama_context: Vulkan_Host  output buffer size =     1.00 MiB
llama_kv_cache_iswa: creating non-SWA KV cache, size = 16640 cells
llama_kv_cache: reusing layers:
llama_kv_cache:    Vulkan0 KV buffer size =   260.00 MiB
llama_kv_cache: size =  260.00 MiB ( 16640 cells,   4 layers,  1/1 seqs), K (f16):  130.00 MiB, V (f16):  130.00 MiB
llama_kv_cache: n_rot_k = 0, n_embd_head_k_all = 512
llama_kv_cache: n_rot_v = 0, n_embd_head_k_all = 512
llama_kv_cache_iswa: creating     SWA KV cache, size = 1152 cells
llama_kv_cache: reusing layers:
llama_kv_cache:    Vulkan0 KV buffer size =    45.00 MiB
llama_kv_cache: size =   45.00 MiB (  1152 cells,  20 layers,  1/1 seqs), K (f16):   22.50 MiB, V (f16):   22.50 MiB
llama_kv_cache: n_rot_k = 0, n_embd_head_k_all = 256
llama_kv_cache: n_rot_v = 0, n_embd_head_k_all = 256
llama_context: enumerating backends
llama_context: backend_ptrs.size() = 2
sched_reserve: reserving ...
sched_reserve: max_nodes = 5768
resolve_fused_ops: resolving fused DeepSeek V4 HC support:
resolve_fused_ops: fused DeepSeek V4 HC pre enabled
resolve_fused_ops: fused DeepSeek V4 HC comb enabled
resolve_fused_ops: fused DeepSeek V4 HC post enabled
sched_reserve:    Vulkan0 compute buffer size =   570.40 MiB
sched_reserve: Vulkan_Host compute buffer size =    58.41 MiB
sched_reserve: graph: nodes = 1868, splits = 2, input objects = 5, input tensors = 14
sched_reserve: reserve took 149.67 ms, sched copies = 1
Threadpool set to 3 threads and 3 blasthreads...

Power Throttling skipped in compatibility mode.
attach_threadpool: call
Starting model warm up, please wait a moment...
Load Text Model OK: True
Chat completion heuristic: Google Gemma 4 (E2B and E4B)
Embedded KoboldAI Lite loaded.
Embedded API docs loaded.
Llama.cpp UI loaded.

@zakhalex

zakhalex commented Nov 2, 2026

Copy link
Copy Markdown
Author

It works from UI as well. When testing I kept i0116 at Old CPU without checking for Older CPU version.

I guess the last useful piece of this PR is memory allocation bug fix (switching from NULL that causes the warning to:

/* .get_max_size = */ ggml_backend_vk_host_buffer_type_get_max_size, // kcpp: defaults to SIZE_MAX,

@LostRuins

Copy link
Copy Markdown
Owner

Great, so i guess the issues are solved now? If so i will close this PR

@zakhalex

zakhalex commented Nov 2, 2026

Copy link
Copy Markdown
Author

Great, so i guess the issues are solved now? If so i will close this PR

The last issue is the memory allocation warning on startup. All other issues are solved.

@LostRuins

Copy link
Copy Markdown
Owner

Yup thats just a pinned memory warning - it shouldnt cause issues.

@LostRuins LostRuins closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants