Niko1221
5c523d55f7
dsv41: device kernels for IQ1_S, IQ4_NL and IQ1_M (the three IST-DAS types that had none)
...
Found and implemented on z440's CUDA bring-up, applied here and re-verified on HIP.
ds4_iq.cu: decode<T>/deq8<T> for kIQ1_S, kIQ4_NL, kIQ1_M, plus iq1_codes() (iq1s_grid_gpu's 4-bit nibbles -> the int8 codes
8*(n-1)+-1 through two __vsub4) and iq1m_d() (IQ1_M carries its F16 d in the top nibbles of its four u16 scales - there is no d
field). kQK<T> is 32 for IQ4_NL as well as MXFP4; load_tab uses iq1s_grid_gpu / kvalues_iq4nl; DS4_IQ_SWITCH and
supported() cover the three types, so they leave the CPU lane and join the device path.
tests/dsv41/iq_expert_test.cpp: make_mat now writes IQ1_M's scale where the format keeps it (bytes 49/51/53/55, high nibbles).
Without that the derived d is random and roughly 1/32 of the blocks come out NaN, which std::max then hides.
Parity (z440, one A4000, ds4_iq_test --type 19,20,29): token gate_up 6.70e-08 / 2.04e-08 / 5.97e-08, token down 3.62e-08 /
4.71e-08 / 3.71e-08 against ggml's to_float and a double reference; CPU lane 3.4e-8..8.2e-8; F16 prompt tiles inside their
own tolerances. Bandwidth: IQ4_NL 376 GB/s (84% of the A4000's 448, bandwidth-bound), IQ1_S 214, IQ1_M 202 (both
compute-bound at 0.92-1.10e12 weight-values/s against IQ2_XXS's 1.22e12).
Not covered: no end-to-end run with a pack that uses these expert types (none on z440); a combined-seed run put IQ1_M's
light-path gate_up at 1.10e-2 against its 1e-2 tolerance, which is the int8 activation rounding of that path (it does not
move with tensor cores off), not the dequant.
2026-10-23 12:34:16 +02:00
..
2026-10-23 12:34:16 +02:00
2026-10-20 18:45:22 +02:00
2026-10-20 10:43:45 +02:00
2026-10-13 05:53:21 +02:00
2026-10-14 22:23:29 +02:00
2026-10-20 19:59:48 +02:00
2026-10-20 14:13:34 +02:00
2026-10-13 04:36:04 +02:00
2026-10-19 23:26:32 +02:00
2026-10-07 20:42:39 +02:00
2026-10-09 15:23:32 +02:00
2026-10-09 11:51:43 +02:00
2026-10-14 07:00:09 +02:00
2026-10-14 07:07:06 +02:00
2026-10-07 04:07:42 +02:00
2026-10-19 21:23:19 +02:00
2026-10-17 06:33:36 +02:00
2026-10-09 10:01:59 +02:00
2026-09-24 18:42:20 +02:00
2026-10-20 13:59:25 +02:00
2026-10-11 07:58:34 +02:00
2026-09-30 17:52:12 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:43:28 +02:00
2026-10-03 19:29:26 +02:00
2026-10-03 18:19:49 +02:00
2026-10-03 08:04:53 +02:00
2026-10-15 21:28:47 +02:00
2026-10-15 21:28:47 +02:00
2026-09-24 18:42:20 +02:00
2026-10-10 18:49:32 +02:00
2026-10-19 08:41:24 +02:00
2026-10-20 12:35:59 +02:00
2026-09-30 20:36:29 +02:00
2026-10-20 16:03:23 +02:00
2026-10-09 15:21:30 +02:00
2026-10-09 15:21:29 +02:00
2026-10-11 07:58:34 +02:00
2026-10-05 19:57:36 +02:00
2026-10-19 16:23:26 +02:00
2026-10-19 16:23:26 +02:00
2026-10-15 10:23:23 +02:00
2026-10-19 23:38:38 +02:00
2026-09-24 18:42:20 +02:00
2026-09-27 10:18:14 +02:00
2026-09-28 14:53:30 +02:00
2026-10-12 20:29:45 +02:00
2026-10-19 23:44:24 +02:00
2026-10-12 20:29:45 +02:00
2026-10-12 20:29:45 +02:00
2026-09-24 18:42:20 +02:00
2026-09-27 10:18:14 +02:00
2026-10-03 18:14:59 +02:00
2026-10-14 11:58:16 +02:00
2026-10-01 10:31:23 +02:00
2026-10-19 16:35:51 +02:00
2026-10-19 16:35:51 +02:00
2026-10-14 07:08:59 +02:00
2026-10-14 07:08:58 +02:00
2026-10-12 21:16:33 +02:00
2026-10-12 20:48:37 +02:00
2026-10-13 00:57:20 +02:00
2026-10-18 22:22:31 +02:00
2026-10-09 21:09:03 +02:00
2026-10-07 00:01:12 +02:00
2026-10-07 21:07:59 +02:00
2026-10-09 10:30:16 +02:00
2026-10-06 14:58:47 +02:00
2026-10-09 03:06:46 +02:00
2026-10-06 16:35:09 +02:00
2026-10-20 14:13:34 +02:00
2026-10-20 14:07:31 +02:00
2026-10-20 19:22:11 +02:00
2026-10-07 03:02:55 +02:00
2026-10-20 18:45:21 +02:00
2026-10-07 04:07:42 +02:00
2026-10-14 06:52:37 +02:00
2026-10-20 17:17:45 +02:00
2026-10-20 13:59:25 +02:00
2026-09-30 16:43:28 +02:00
2026-09-30 16:31:46 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:31:44 +02:00
2026-09-30 16:31:45 +02:00
2026-09-30 16:31:44 +02:00
2026-10-03 19:29:26 +02:00
2026-10-19 23:38:49 +02:00
2026-10-07 17:34:36 +02:00
2026-10-20 14:11:50 +02:00
2026-10-03 18:19:49 +02:00
2026-10-10 11:11:20 +02:00
2026-10-20 00:41:38 +02:00
2026-10-19 23:26:32 +02:00
2026-10-20 16:03:23 +02:00
2026-10-11 08:25:30 +02:00
2026-10-03 18:14:52 +02:00
2026-10-19 23:38:38 +02:00
2026-10-16 19:32:05 +02:00
2026-10-19 20:59:29 +02:00
2026-10-18 13:18:38 +02:00
2026-10-13 01:07:28 +02:00
2026-10-07 00:01:12 +02:00
2026-10-20 14:13:34 +02:00
2026-10-05 21:44:09 +02:00
2026-10-19 20:37:29 +02:00
2026-10-08 02:31:56 +02:00
2026-10-20 00:11:11 +02:00
2026-10-05 15:58:35 +02:00
2026-10-13 00:49:11 +02:00
2026-10-19 23:44:24 +02:00
2026-10-19 20:07:33 +02:00
2026-10-13 04:36:28 +02:00
2026-10-20 19:23:44 +02:00
2026-10-19 20:38:04 +02:00
2026-10-07 20:46:11 +02:00
2026-10-19 08:34:26 +02:00
2026-10-20 14:17:29 +02:00
2026-10-18 22:44:12 +02:00
2026-10-19 08:26:54 +02:00
2026-10-14 21:38:21 +02:00
2026-10-19 23:25:46 +02:00
2026-10-10 11:04:37 +02:00
2026-10-19 19:56:01 +02:00
2026-10-19 20:37:29 +02:00
2026-10-20 16:58:31 +02:00
2026-10-20 00:05:48 +02:00
2026-10-19 08:41:24 +02:00
2026-10-19 07:23:44 +02:00
2026-10-03 23:35:52 +02:00
2026-10-19 07:23:44 +02:00
2026-10-20 14:29:58 +02:00
2026-10-09 15:16:03 +02:00
2026-10-04 03:36:22 +02:00
2026-10-06 15:57:38 +02:00
2026-10-19 08:41:24 +02:00
2026-10-01 20:46:19 +02:00
2026-10-20 14:17:29 +02:00
2026-10-17 20:16:02 +02:00
2026-10-14 01:16:56 +02:00
2026-10-17 20:28:16 +02:00
2026-10-07 03:57:38 +02:00
2026-10-14 10:48:36 +02:00
2026-09-30 16:31:31 +02:00
2026-10-14 03:17:43 +02:00
2026-10-13 13:51:01 +02:00
2026-10-15 06:22:32 +02:00
2026-10-09 03:15:12 +02:00
2026-10-20 00:05:48 +02:00
2026-10-19 21:40:50 +02:00
2026-10-20 16:58:14 +02:00
2026-10-09 03:15:12 +02:00
2026-10-03 01:58:25 +02:00
2026-10-07 03:02:55 +02:00
2026-10-13 00:26:51 +02:00
2026-10-12 14:21:19 +02:00
2026-10-13 02:06:01 +02:00
2026-10-20 15:05:13 +02:00
2026-10-15 05:41:24 +02:00
2026-10-20 00:47:08 +02:00
2026-10-09 03:04:21 +02:00
2026-10-20 00:11:11 +02:00
2026-10-19 21:42:12 +02:00
2026-10-13 04:12:24 +02:00
2026-10-20 19:59:48 +02:00