Repository navigation
Conversation
…ical measurements (Day 3)
… quality standards
…rk runner (bench_rocm.py)
…formance documentation
A Qwen load sets the trunk kernel for the whole process because was a static variable read by globally. If multiple models were loaded into a single process, the first model's kernel choice would incorrectly affect subsequent ones, changing computations dynamically. This patch: - Adds to - Initializes in - Modifies to read instead of the static. - Leaves and alone, as they still define the process-wide default properly. Closes sqliteai#68
|
Thanks for taking #68 on — the diagnosis in the description is right, and It is superseded. #75 implements the same idea, is based on current This branch cannot be merged as it stands. It branches from On current
The default now matches neither kernel. The reason is the two halves:
Separately, and this is the part that would need removing whatever happened to
None of that reads as intentional for this PR — it looks like a debugging branch If you would like to take the ROCm/HIP work forward, please open it as its own CI never ran on this branch — Closing against #75. 🤖 Generated with Claude Code |
Closes #68
Description
This resolves the issue where a Qwen load sets the trunk kernel for the whole process.
Before this change,
trunk_kernwas a file-static insrc/model.cread directly bymatvec_t_innerfor every 4-bit trunk tensor, meaning that loading a Qwen container after another container would unexpectedly shift the first container's computations toi8mm.With this fix:
trunk_kernis moved into thewaste_modelstruct.matvec_t_inneris updated to readm->trunk_kern.WASTE_TRUNK_KERNELstays as a process-wide pin overriding the per-model default.waste_model_set_sdot4is preserved fortests/sweep.c, honoring the global preference as it did before.