[PR #2031] [CLOSED] Add Q4_1 PLE dequantization support #3816

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2031
Author: @dororo1989
Created: 10/12/2026
Status: ❌ Closed

Base: main ← Head: add-q4-1-ple


📝 Commits (1)

  • a3c0ead Add Q4_1 PLE dequantization support

📊 Changes

5 files changed (+102 additions, -1 deletions)

View changed files

📝 CMakeLists.txt (+6 -0)
📝 include/strata/artifact/dequant.hpp (+10 -0)
📝 include/strata/kernels/ngram.hpp (+3 -1)
📝 src/kernels/ngram.cpp (+1 -0)
📝 src/ngram/ple_reader_test.cpp (+82 -0)

📄 Description

Summary

  • Add Q4_1 block dequantization for PLE, using 20-byte blocks and 100-byte rows.
  • Register Q4_1 in the table-driven PLE format registry.
  • Add row geometry and format registration checks.
  • Compare Strata's Q4_1 dequantization against GGML's dequantize_row_q4_1.

Validation

  • Windows HIP build tested on AMD Radeon RX 9070 (gfx1201).
  • ple_reader_test.exe --selftest passed, including 2,048 blocks and 2,048 rows compared against GGML with maximum absolute error of 0.000e+00.
  • Loaded and ran the Qwen3.8 Flash-Next AD IQ4_XS model with the custom HIP build.
  • No GPU-side PLE reader changes were made. CUDA and SYCL were not tested separately.

I used AI assistance during development, so there may be things I have overlooked. If anything needs improvement or further testing, please let me know. I would be happy to help make any necessary changes.

Thank you again for your time and for maintaining this project!


🔄 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/2031 **Author:** [@dororo1989](https://github.com/dororo1989) **Created:** 10/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-q4-1-ple` --- ### 📝 Commits (1) - [`a3c0ead`](https://github.com/Niko1221/Strata/commit/a3c0ead855f2474c1a550edc0f2ce16d52f078f4) Add Q4_1 PLE dequantization support ### 📊 Changes **5 files changed** (+102 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+6 -0) 📝 `include/strata/artifact/dequant.hpp` (+10 -0) 📝 `include/strata/kernels/ngram.hpp` (+3 -1) 📝 `src/kernels/ngram.cpp` (+1 -0) 📝 `src/ngram/ple_reader_test.cpp` (+82 -0) </details> ### 📄 Description ## Summary - Add Q4_1 block dequantization for PLE, using 20-byte blocks and 100-byte rows. - Register Q4_1 in the table-driven PLE format registry. - Add row geometry and format registration checks. - Compare Strata's Q4_1 dequantization against GGML's `dequantize_row_q4_1`. ## Validation - Windows HIP build tested on AMD Radeon RX 9070 (gfx1201). - `ple_reader_test.exe --selftest` passed, including 2,048 blocks and 2,048 rows compared against GGML with maximum absolute error of `0.000e+00`. - Loaded and ran the Qwen3.8 Flash-Next AD IQ4_XS model with the custom HIP build. - No GPU-side PLE reader changes were made. CUDA and SYCL were not tested separately. I used AI assistance during development, so there may be things I have overlooked. If anything needs improvement or further testing, please let me know. I would be happy to help make any necessary changes. Thank you again for your time and for maintaining this project! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:58 +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#3816
No description provided.