EDIT: it may be related to #2005
I'm getting CUDA errors occasionally when processing prompts (never when actually generating). This is not a new issue but something I've been experiencing for a while few months now. It was never that big of an issue to bother addressing since it doesn't happen too often, I'd say once every 200gens or so, and I have kobold set to restart when this happens, but it is a bit annoying. The usual scenario when this happens (mainly when doing agentic stuff via OpenCode) I would get a processing block in my logs like:
[SmartCache RNN No Match, Saving into slot 2...]
state_write_data: writing state
state_write_data: - writing memory module
state_write_data: writing state
state_write_data: - writing memory module
KV Save State 2: Created SaveState of 101341 tokens, costing 1116 MB.
Processing Prompt [BATCH] (40960 / 57352 tokens)
state_write_data: writing state
state_write_data: - writing memory module
state_write_data: writing state
state_write_data: - writing memory module
KV Save State 6: Created SaveState of 40960 tokens, costing 488 MB.
[SmartCache RNN Lifeboat: Saved 40960-token checkpoint into slot 6]
Processing Prompt [BATCH] (57352 / 57352 tokens)
state_write_data: writing state
state_write_data: - writing memory module
state_write_data: writing state
state_write_data: - writing memory module
KV Save State 1: Created SaveState of 57345 tokens, costing 658 MB.
CUDA error: invalid argument
current device: 0, in function ggml_cuda_kernel_launch at D:\a\koboldcpp\koboldcpp\ggml\src\ggml-cuda\common.cuh:1674
cudaGetLastError()
D:\a\koboldcpp\koboldcpp\ggml\src\ggml-cuda\ggml-cuda.cu:108: CUDA error
and then it would just die with the same error trace every time. If I don't change the session context that caused it, it will keep reprocessing and crashing indefinitely (the Repeatable part), but change the context in any way (add another subsequent message or branch off in any way) and it will go past it and continue to work fine. From trying to read up on the issue I couldn't find much info here on the issue tracker so I thought I'd ask.
My setup: 1x4090 24gb, with the following .kcpps settings (all model layers on gpu):
{
"model_param": "S:/KoboldCPP/Qwen3.6-35B-A3B-UD-IQ4_NL.gguf",
"mmproj": "S:/KoboldCPP/mmproj/Qwen3.6-mmproj-BF16.gguf",
"mmprojcpu": true,
"threads": 11,
"usecuda": [
"normal",
"0"
],
"contextsize": 200000,
"batchsize": 2048,
"smartcache": 5,
"ropeconfig": [
0.0,
1000000.0
],
"onready": [
"S:/KoboldCPP/Post-Launch.bat"
],
"websearch": true,
"savedatafile": "S:/KoboldCPP/SaveDataFile.jsondb",
"jinja": true,
"jinja_tools": true,
"quantkv": "q8_0",
"moeexperts": 8,
"gendefaults": {
"temperature": 0.6,
"top_p": 0.95,
"top_k": 20,
"min_p": 0.0,
"presence_penalty": 0.0,
"rep_pen": 1.0
},
"sdthreads": 11,
"sdlora": [],
"ttsdir": "S:/KoboldCPP/voices",
"admin": true,
"adminpassword": "",
"admindir": "S:/KoboldCPP/admin"
}
Am I doing something wrong?
EDIT: it may be related to #2005
I'm getting CUDA errors occasionally when processing prompts (never when actually generating). This is not a new issue but something I've been experiencing for a
whilefew months now. It was never that big of an issue to bother addressing since it doesn't happen too often, I'd say once every 200gens or so, and I have kobold set to restart when this happens, but it is a bit annoying. The usual scenario when this happens (mainly when doing agentic stuff via OpenCode) I would get a processing block in my logs like:and then it would just die with the same error trace every time. If I don't change the session context that caused it, it will keep reprocessing and crashing indefinitely (the Repeatable part), but change the context in any way (add another subsequent message or branch off in any way) and it will go past it and continue to work fine. From trying to read up on the issue I couldn't find much info here on the issue tracker so I thought I'd ask.
My setup: 1x4090 24gb, with the following .kcpps settings (all model layers on gpu):
{ "model_param": "S:/KoboldCPP/Qwen3.6-35B-A3B-UD-IQ4_NL.gguf", "mmproj": "S:/KoboldCPP/mmproj/Qwen3.6-mmproj-BF16.gguf", "mmprojcpu": true, "threads": 11, "usecuda": [ "normal", "0" ], "contextsize": 200000, "batchsize": 2048, "smartcache": 5, "ropeconfig": [ 0.0, 1000000.0 ], "onready": [ "S:/KoboldCPP/Post-Launch.bat" ], "websearch": true, "savedatafile": "S:/KoboldCPP/SaveDataFile.jsondb", "jinja": true, "jinja_tools": true, "quantkv": "q8_0", "moeexperts": 8, "gendefaults": { "temperature": 0.6, "top_p": 0.95, "top_k": 20, "min_p": 0.0, "presence_penalty": 0.0, "rep_pen": 1.0 }, "sdthreads": 11, "sdlora": [], "ttsdir": "S:/KoboldCPP/voices", "admin": true, "adminpassword": "", "admindir": "S:/KoboldCPP/admin" }Am I doing something wrong?