Skip to content

[Docs] patch bundles: the standalone Qwen4-35B-A3B support port and the Clover fix, with install docs (EN/RU) - #441

Closed
Inex0rablePwz wants to merge 1 commit into
simplexai-labs:mainfrom
Inex0rablePwz:docs/patch-bundle
Closed

Inex0rablePwz wants to merge 1 commit into
simplexai-labs:mainfrom
Inex0rablePwz:docs/patch-bundle

Conversation

@Inex0rablePwz

Copy link
Copy Markdown

Adds a patches/ bundle with both porting efforts as apply-able files plus exact install documentation in English and Russian:

  • patches/qwen4exp-full-port/ — the standalone arch=qwen4exp port of Qwen4-35B-A3B to strata-poly (format-patch against 4106d1a7c), its architecture docs (README / TENSOR-MAP / PLE / tensor-layout) and the validation harness verify/ (llama.cpp reference stage + --dump-layers comparison, tokenizer tool, float CPU reference, tensor-dump tool) with the expected artifacts of the 2026-12-04 run: on main + the Direct-reader PLE of [Engine] qwen4: read the PLE n-gram table row by row from disk through the Direct reader #440 the port matched llama.cpp byte for byte (1249/1249 chars over 256 greedy tokens).
  • patches/qwen35-clover/ — the Clover fix as it stands against current main: ssm_a = -exp(A_log) is already upstream; this adds per-layer detection of the block-of-guesses tensors, so --clover-masks disables itself on clover_moe files without ssm_conv1d.weight_right instead of throwing. Apply-checked and build-verified on df2c3ff30.

Deliberately excluded: the regenerable 21 MB metadata.json GGUF key dump and the ~400 MB CPU-reference .f32 dumps (the docs explain how to recreate both). The zip bundle lives beside this tree, not in it.

…r fix, with install docs

A patches/ bundle with the two porting efforts kept as apply-able files and exact install
docs (English + Russian):

- patches/qwen4exp-full-port/: the standalone arch=qwen4exp port of Qwen4-35B-A3B to
  strata-poly (its format-patch, based on 4106d1a), the port's architecture docs
  (README, TENSOR-MAP, PLE, tensor layout), and the validation harness verify/ - the
  llama.cpp reference + dump-layers comparison script, the tokenizer, the float CPU
  reference and its tensor-dump tool - with the expected artifacts of the 2026-12-04 run
  (main + the Direct-reader PLE of PR simplexai-labs#440 matched llama.cpp byte for byte, 1249/1249 chars).
- patches/qwen35-clover/: the Clover fix as it stands against current main: ssm_a was
  already fixed upstream; this adds per-layer detection of the block-of-guesses tensors,
  so --clover-masks disables itself on clover_moe files without ssm_conv1d.weight_right
  instead of throwing.  Apply-checked and build-verified on df2c3ff.

The 21 MB metadata.json key dump and the ~400 MB CPU-reference .f32 dumps are not in the
tree: both are regenerable, the docs say how.
@VecSzn

VecSzn commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Thank you for sharing these patches and docs! We are closing this PR because we cannot merge checked-in .patch bundles at the repo root against an older commit, and native Qwen4-35B-A3B support has already shipped on main in �0.2.20-poly.10. If you still need a Clover fix on top of current main, feel free to open a small direct PR against main.

@VecSzn VecSzn closed this Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants