Repository navigation
Conversation
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.
|
@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. |
|
A scoped down fix was added in 1.124, please try that |
|
Looks like the device was not detected as legacy GCN, so async was still enabled. 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 for architecture detection override in my pull request to help with debugging. After recompiling for Bulldozer - memory allocation bug still remains: Note what I did on line 13212 in this pull request - that fixes this warning hooking up to callback: |
|
Sorry i think my windows rolling builds failed. I'm rebuilding them now
Is this a new regression? is there any part of your original PR that fixes build compatibility for you? |
|
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 without any changes to the code whatsoever. The crash logs, if helpful, are below:
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: although your current Makefile works unchanged for resulting a Bulldozer-compatible build. |
|
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, |
|
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. |
|
Yup thats just a pinned memory warning - it shouldnt cause issues. |






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.