[GH-ISSUE #3669] [Engine] strata-vision.exe in Windows cuda12 package lacks sm_60 cubins (IM2COL failed: CUDA error: device kernel image is invalid on Pascal P100) #1518

Closed
opened 2026-11-04 01:51:54 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Darkstarrd-dev on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3669

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

The Windows CUDA 12 ready-made engine package (strata-engine-0.1.47-windows-x86_64-cuda-cuda12.tar.gz, as well as 0.1.46) lists sm_60 in BUILD.json and engine-component.json ("archs": [60, ...], "experimental_sm60": true).

While strata.exe runs on Pascal sm_60 cards (Tesla P100 16 GB) without issue, the bundled strata-vision.exe (143,306,752 bytes) fails during the initialization warmup whenever it runs on an sm_60 device:

load_hparams: Qwen-VL models require at minimum 1024 image tokens to function correctly on grounding tasks
load_hparams: if you encounter problems with accuracy, try adding --image-min-tokens 1024
load_hparams: more info: https://github.com/ggml-org/llama.cpp/issues/16842

strata-vision: model files loaded in 4.2 s
ggml_cuda_compute_forward: IM2COL failed
CUDA error: device kernel image is invalid
  current device: 0, in function ggml_cuda_compute_forward at C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:2422
  err
C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:108: CUDA error

Process exits with code 3221226505 (0xC0000409 / abort).

When starting the server with GPU vision enabled on an sm_60 card (--vision gpu with cuda_device: 0 on P100, or single-GPU P100 mode), serve/server.py halts at launch:

loading the vision encoder ...
Traceback (most recent call last):
  File "C:\Strata\serve\server.py", line 8269, in <module>
    sys.exit(main())
  ...
RuntimeError: the vision encoder did not start:

Smallest steps or command that reproduce it

  1. On Windows with an sm_60 GPU (e.g. Tesla P100 16 GB, GPU 0):
  2. Using the binaries extracted from strata-engine-0.1.47-windows-x86_64-cuda-cuda12.tar.gz:
  3. Run strata-vision.exe directly on device 0:
    set CUDA_DEVICE_ORDER=PCI_BUS_ID
    set CUDA_VISIBLE_DEVICES=0
    strata-vision.exe --mmproj C:\Strata-data\models\mmproj-Qwen3.8-Flash-Next-BF16.gguf --model C:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --gpu --max-tokens 1024
    
  4. Output shows IM2COL failed, CUDA error: device kernel image is invalid and process aborts without outputting READY.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.2 · engine 0.1.47 (and 0.1.46)

Graphics card, memory and system

Tesla P100-PCIE-16GB (Pascal sm_60) + NVIDIA GeForce RTX 3080 Ti 12 GB · 96 GB RAM · Windows 11 · Driver 546.12 / CUDA 12.3

Model, size and settings

Qwen3.8-Flash-Next IQ3_S · 262K context · pictures on (GPU on P100, cuda_device: 0)

Logs

loading the vision encoder ...
Traceback (most recent call last):
  File "C:\Strata\serve\server.py", line 8269, in <module>
    sys.exit(main())
             ^^^^^^
  File "C:\Strata\serve\server.py", line 7941, in main
    vision = Vision(vcfg, log=open(cfg["log"], "a", encoding="utf-8") if cfg.get("log") else None,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Strata\serve\server.py", line 2554, in __init__
    self._start()
  File "C:\Strata\serve\server.py", line 2582, in _start
    self._start_reader()
  File "C:\Strata\serve\server.py", line 2612, in _start_reader
    raise RuntimeError(vision_start_error(line, self.spawn[1]))
RuntimeError: the vision encoder did not start:

Direct binary test stderr:

strata-vision: model files loaded in 4.2 s
ggml_cuda_compute_forward: IM2COL failed
CUDA error: device kernel image is invalid
  current device: 0, in function ggml_cuda_compute_forward at C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:2422
  err
C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:108: CUDA error

Suspected cause & notes

packaging/ENGINE-COMPONENT.md notes that strata-vision.exe was reused across releases. When tools/vision/CMakeLists.txt builds llama.cpp (mtmd), CMAKE_CUDA_ARCHITECTURES defaults to standard toolchain targets (typically sm_70+) unless explicitly passed. Thus strata-vision.exe ends up missing sm_60 code objects for ggml-cuda, even though strata.exe itself is built with STRATA_EXPERIMENTAL_SM60=ON.

Replacing strata-vision.exe with a binary compiled with sm_60 cubins passes initialization and responds with READY 2560 as expected.

Originally created by @Darkstarrd-dev on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3669 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) ### What happened The Windows CUDA 12 ready-made engine package (`strata-engine-0.1.47-windows-x86_64-cuda-cuda12.tar.gz`, as well as 0.1.46) lists `sm_60` in `BUILD.json` and `engine-component.json` (`"archs": [60, ...], "experimental_sm60": true`). While `strata.exe` runs on Pascal `sm_60` cards (Tesla P100 16 GB) without issue, the bundled `strata-vision.exe` (143,306,752 bytes) fails during the initialization warmup whenever it runs on an `sm_60` device: ```text load_hparams: Qwen-VL models require at minimum 1024 image tokens to function correctly on grounding tasks load_hparams: if you encounter problems with accuracy, try adding --image-min-tokens 1024 load_hparams: more info: https://github.com/ggml-org/llama.cpp/issues/16842 strata-vision: model files loaded in 4.2 s ggml_cuda_compute_forward: IM2COL failed CUDA error: device kernel image is invalid current device: 0, in function ggml_cuda_compute_forward at C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:2422 err C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:108: CUDA error ``` Process exits with code `3221226505` (`0xC0000409` / abort). When starting the server with GPU vision enabled on an sm_60 card (`--vision gpu` with `cuda_device: 0` on P100, or single-GPU P100 mode), `serve/server.py` halts at launch: ```text loading the vision encoder ... Traceback (most recent call last): File "C:\Strata\serve\server.py", line 8269, in <module> sys.exit(main()) ... RuntimeError: the vision encoder did not start: ``` ### Smallest steps or command that reproduce it 1. On Windows with an `sm_60` GPU (e.g. Tesla P100 16 GB, GPU 0): 2. Using the binaries extracted from `strata-engine-0.1.47-windows-x86_64-cuda-cuda12.tar.gz`: 3. Run `strata-vision.exe` directly on device 0: ```cmd set CUDA_DEVICE_ORDER=PCI_BUS_ID set CUDA_VISIBLE_DEVICES=0 strata-vision.exe --mmproj C:\Strata-data\models\mmproj-Qwen3.8-Flash-Next-BF16.gguf --model C:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --gpu --max-tokens 1024 ``` 4. Output shows `IM2COL failed, CUDA error: device kernel image is invalid` and process aborts without outputting `READY`. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.2 · engine 0.1.47 (and 0.1.46) ### Graphics card, memory and system Tesla P100-PCIE-16GB (Pascal sm_60) + NVIDIA GeForce RTX 3080 Ti 12 GB · 96 GB RAM · Windows 11 · Driver 546.12 / CUDA 12.3 ### Model, size and settings Qwen3.8-Flash-Next IQ3_S · 262K context · pictures on (GPU on P100, `cuda_device: 0`) ### Logs ```text loading the vision encoder ... Traceback (most recent call last): File "C:\Strata\serve\server.py", line 8269, in <module> sys.exit(main()) ^^^^^^ File "C:\Strata\serve\server.py", line 7941, in main vision = Vision(vcfg, log=open(cfg["log"], "a", encoding="utf-8") if cfg.get("log") else None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Strata\serve\server.py", line 2554, in __init__ self._start() File "C:\Strata\serve\server.py", line 2582, in _start self._start_reader() File "C:\Strata\serve\server.py", line 2612, in _start_reader raise RuntimeError(vision_start_error(line, self.spawn[1])) RuntimeError: the vision encoder did not start: ``` Direct binary test stderr: ```text strata-vision: model files loaded in 4.2 s ggml_cuda_compute_forward: IM2COL failed CUDA error: device kernel image is invalid current device: 0, in function ggml_cuda_compute_forward at C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:2422 err C:\Users\AI-Server\Desktop\Strata\Public\Engine\third_party\llama.cpp\ggml\src\ggml-cuda\ggml-cuda.cu:108: CUDA error ``` ### Suspected cause & notes `packaging/ENGINE-COMPONENT.md` notes that `strata-vision.exe` was reused across releases. When `tools/vision/CMakeLists.txt` builds `llama.cpp` (`mtmd`), `CMAKE_CUDA_ARCHITECTURES` defaults to standard toolchain targets (typically sm_70+) unless explicitly passed. Thus `strata-vision.exe` ends up missing `sm_60` code objects for `ggml-cuda`, even though `strata.exe` itself is built with `STRATA_EXPERIMENTAL_SM60=ON`. Replacing `strata-vision.exe` with a binary compiled with `sm_60` cubins passes initialization and responds with `READY 2560` as expected.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1518
No description provided.