[PR #3875] [Engine] --ple-gguf: accept a GGUF shard holding only the PLE table, as a strata-ple file #4812

Open
opened 2026-11-07 15:39:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3875
Author: @baptisterajaut
Created: 10/23/2026
Status: 🔄 Open

Base: main ← Head: fix/ple-gguf-table-only


📝 Commits (1)

  • 544cbb5 fix: a --ple-gguf shard holding only the PLE table is not added to the native dense shards

📊 Changes

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

View changed files

📝 src/program/generate.cpp (+4 -1)

📄 Description

Problem and result

--ple-gguf pointing at a GGUF shard that holds only per_layer_token_embd.weight, taken from another release of the same model, stops the engine at start. Here: Orca's Qwen3.8-Flash-Next-Uncensored-IQ4_XS as --native, and shard 3 of 5 of Qwen3.8-Flash-Next-heretic-2-IQ4_XS, whose only tensor is the PLE table in Q8_0 instead of Orca's IQ4_NL. On main the --ple-gguf file joins the native dense shards and fails their split check: native dense projections: native dense: additional shard must match the architecture-validated first shard's split metadata. With this change the engine starts and reads the table from that file (PLE on, table 320001536 rows of .../Qwen3.8-Flash-Next-heretic-2-IQ4_XS-00003-of-00005.gguf).

none

Approach

A --ple-gguf file whose only tensor is per_layer_token_embd.weight is treated like a strata-ple file (tools/ple_fp8_pack.py): it is not appended to the native dense shards, since it carries no projection and the table has its own reader. The split check on the dense shards is unchanged. A setup that starts today loads the same dense weights: the default --ple-gguf (shard 2 of the ISTA files) is one of the --native shards and is already in the list, and a file holding only the table adds no dense tensor either way. In this case the two tables are the same table at two precisions: on 3,000 random rows, cosine 0.997 on average and 0.996 at worst between Orca's IQ4_NL copy and heretic-2's Q8_0 one (0.001 for mismatched rows).

Validation

Passed:

  • Linux, CUDA 13.2, sm_86, RTX 3090 24 GB, 2x Xeon Gold 6226, 64 GB; cmake --build build --target strata at 7ddc17a3 (main) and at this branch.
  • strata --serve with Orca IQ4_XS as --native and heretic-2's shard 3 as --ple-gguf: at 7ddc17a3 the start fails with the split metadata error above; at this branch it starts in 115 s and logs the PLE table from that file.
  • Two LRU-cache prompts through /v1/chat/completions on this branch: coherent answers, 55.4 and 56.7 tok/s.

Failed: none observed

Not run: the test suite; HIP, SYCL and Metal builds; a start on the ISTA files (not on this machine), unchanged by reading the code since their PLE shard is one of the --native shards.

Limits

Nothing checks that the table belongs to the same base model: a table from another model with the same row count loads without complaint, as a strata-ple file already does.


🔄 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/3875 **Author:** [@baptisterajaut](https://github.com/baptisterajaut) **Created:** 10/23/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/ple-gguf-table-only` --- ### 📝 Commits (1) - [`544cbb5`](https://github.com/Niko1221/Strata/commit/544cbb5c536ca4adcc3d90346e646cbea52ddfc4) fix: a --ple-gguf shard holding only the PLE table is not added to the native dense shards ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/program/generate.cpp` (+4 -1) </details> ### 📄 Description ## Problem and result `--ple-gguf` pointing at a GGUF shard that holds only `per_layer_token_embd.weight`, taken from another release of the same model, stops the engine at start. Here: Orca's `Qwen3.8-Flash-Next-Uncensored-IQ4_XS` as `--native`, and shard 3 of 5 of `Qwen3.8-Flash-Next-heretic-2-IQ4_XS`, whose only tensor is the PLE table in Q8_0 instead of Orca's IQ4_NL. On main the `--ple-gguf` file joins the native dense shards and fails their split check: `native dense projections: native dense: additional shard must match the architecture-validated first shard's split metadata`. With this change the engine starts and reads the table from that file (`PLE on, table 320001536 rows of .../Qwen3.8-Flash-Next-heretic-2-IQ4_XS-00003-of-00005.gguf`). ## Related discussion none ## Approach A `--ple-gguf` file whose only tensor is `per_layer_token_embd.weight` is treated like a `strata-ple` file (`tools/ple_fp8_pack.py`): it is not appended to the native dense shards, since it carries no projection and the table has its own reader. The split check on the dense shards is unchanged. A setup that starts today loads the same dense weights: the default `--ple-gguf` (shard 2 of the ISTA files) is one of the `--native` shards and is already in the list, and a file holding only the table adds no dense tensor either way. In this case the two tables are the same table at two precisions: on 3,000 random rows, cosine 0.997 on average and 0.996 at worst between Orca's IQ4_NL copy and heretic-2's Q8_0 one (0.001 for mismatched rows). ## Validation **Passed:** - Linux, CUDA 13.2, sm_86, RTX 3090 24 GB, 2x Xeon Gold 6226, 64 GB; `cmake --build build --target strata` at 7ddc17a3 (main) and at this branch. - `strata --serve` with Orca IQ4_XS as `--native` and heretic-2's shard 3 as `--ple-gguf`: at 7ddc17a3 the start fails with the split metadata error above; at this branch it starts in 115 s and logs the PLE table from that file. - Two LRU-cache prompts through `/v1/chat/completions` on this branch: coherent answers, 55.4 and 56.7 tok/s. **Failed:** none observed **Not run:** the test suite; HIP, SYCL and Metal builds; a start on the ISTA files (not on this machine), unchanged by reading the code since their PLE shard is one of the `--native` shards. ## Limits Nothing checks that the table belongs to the same base model: a table from another model with the same row count loads without complaint, as a `strata-ple` file already does. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4812
No description provided.