[PR #2913] [CLOSED] Fix Qwen3.6 CUDA 12.0 build in debug half-bit print #4332

Closed
opened 2026-11-07 15:34:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2913
Author: @CC-David-CC
Created: 10/17/2026
Status: ❌ Closed

Base: main ← Head: fix/cuda120-q36-debug-half


📝 Commits (1)

  • 2290360 fix(qwen36): make debug half bits readable with CUDA 12.0

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 src/qwen35/q36_engine.cu (+5 -1)

📄 Description

Building 0.1.45 with CUDA 12.0.140 fails in Engine::verify_q8: __half_as_ushort is device-only in that toolkit, but the diagnostic runs on the host.

Read the converted half's two bytes with memcpy and a size assertion. This only changes STRATA_Q36_VDEBUG reporting; inference arithmetic and defaults are unchanged.

Validated: full strata build with CUDA 12.0.140, GCC 12.4 and sm_61; --version, --families, and Qwen3.6 Q4 text generation on a Tesla P4. HIP was not compiled. Related older host-half failure: #2322.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2913 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/cuda120-q36-debug-half` --- ### 📝 Commits (1) - [`2290360`](https://github.com/Niko1221/Strata/commit/229036036a417a6265e83ebbfe8c9fdd429ff546) fix(qwen36): make debug half bits readable with CUDA 12.0 ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/qwen35/q36_engine.cu` (+5 -1) </details> ### 📄 Description Building 0.1.45 with CUDA 12.0.140 fails in `Engine::verify_q8`: `__half_as_ushort` is device-only in that toolkit, but the diagnostic runs on the host. Read the converted half's two bytes with `memcpy` and a size assertion. This only changes `STRATA_Q36_VDEBUG` reporting; inference arithmetic and defaults are unchanged. Validated: full `strata` build with CUDA 12.0.140, GCC 12.4 and sm_61; `--version`, `--families`, and Qwen3.6 Q4 text generation on a Tesla P4. HIP was not compiled. Related older host-half failure: #2322. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:57 +07:00
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#4332
No description provided.