[PR #5314] Codex/ascend910 qwen38 iq3 xxs #5383

Open
opened 2026-11-07 16:34:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5314
Author: @tyloryang
Created: 11/5/2026
Status: 🔄 Open

Base: main ← Head: codex/ascend910-qwen38-iq3-xxs


📝 Commits (10+)

  • 9a5558b cann: device layer and core ops with CPU parity on Ascend 910B2C
  • fdd1116 cann: Q4_K and Q6_K decoders, bit-exact against ggml
  • 09ac894 cann: gated delta net with a float reference on the 910B2C
  • b0017a6 cann: read the real model file, Q5_K decoder, real-weight GEMV on the NPU
  • c5830cf cann: Q8_0 decoder, tensor loader, and one real block on the NPU
  • e9a4ef6 cann: the whole FFN of blk.0 on the NPU - top-8 routing, expert slabs, shared expert
  • aa8c013 cann: the whole GDN block of blk.0 on the NPU, one token from real weights
  • 043d67d cann: carry the GDN conv history and per-head state across tokens
  • 96930fb cann: rope and the full-attention layer of blk.3 for its first token
  • 84ce9a9 cann: KV cache and the softmax mix in the attention layer

📊 Changes

67 files changed (+11733 additions, -0 deletions)

View changed files

➕ cann/ASCEND_910B_PORT_STATUS.md (+788 -0)
➕ cann/CMakeLists.txt (+115 -0)
➕ cann/QWEN38_IQ3_XXS_ASCEND.md (+163 -0)
➕ cann/README.md (+590 -0)
➕ cann/include/strata/cann/device.hpp (+95 -0)
➕ cann/include/strata/cann/engine.hpp (+51 -0)
➕ cann/include/strata/cann/gdn.hpp (+54 -0)
➕ cann/include/strata/cann/gguf.hpp (+50 -0)
➕ cann/include/strata/cann/ops.hpp (+100 -0)
➕ cann/include/strata/cann/quants.hpp (+67 -0)
➕ cann/include/strata/cann/tensor_load.hpp (+17 -0)
➕ cann/python/model_spec.py (+22 -0)
➕ cann/python/prepare_model.py (+61 -0)
➕ cann/python/qwen38.py (+416 -0)
➕ cann/python/requirements.txt (+3 -0)
➕ cann/python/serve.py (+372 -0)
➕ cann/python/weights.py (+249 -0)
➕ cann/src/aclnn_call.hpp (+23 -0)
➕ cann/src/decode_api.cpp (+27 -0)
➕ cann/src/device.cpp (+213 -0)

...and 47 more files

📄 Description

The title must start with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], for example "[Engine] fix decode stop on long prompts" or "[GUI] keep the model list after a tab switch".

Problem and result

Approach

Validation

Passed:

Failed:

Not run:

Limits


🔄 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/5314 **Author:** [@tyloryang](https://github.com/tyloryang) **Created:** 11/5/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/ascend910-qwen38-iq3-xxs` --- ### 📝 Commits (10+) - [`9a5558b`](https://github.com/Niko1221/Strata/commit/9a5558ba6b6504bc866350ec128d3f84bbb1660d) cann: device layer and core ops with CPU parity on Ascend 910B2C - [`fdd1116`](https://github.com/Niko1221/Strata/commit/fdd1116dc2ca62f25d7888ce6a8138c1ad6b1071) cann: Q4_K and Q6_K decoders, bit-exact against ggml - [`09ac894`](https://github.com/Niko1221/Strata/commit/09ac8941a7bbefb716ac68bc4e3b1d8e738ba34b) cann: gated delta net with a float reference on the 910B2C - [`b0017a6`](https://github.com/Niko1221/Strata/commit/b0017a6824f26608f55818f5969cbdadf0e93e6f) cann: read the real model file, Q5_K decoder, real-weight GEMV on the NPU - [`c5830cf`](https://github.com/Niko1221/Strata/commit/c5830cfe94382442dffa8e1bb16f36b5ffc32d0a) cann: Q8_0 decoder, tensor loader, and one real block on the NPU - [`e9a4ef6`](https://github.com/Niko1221/Strata/commit/e9a4ef65c68858d9822a9bfa95a68d97dc3472d5) cann: the whole FFN of blk.0 on the NPU - top-8 routing, expert slabs, shared expert - [`aa8c013`](https://github.com/Niko1221/Strata/commit/aa8c01348a82557c37bbfd67e3dff2be3da0854a) cann: the whole GDN block of blk.0 on the NPU, one token from real weights - [`043d67d`](https://github.com/Niko1221/Strata/commit/043d67d799c730b18b48de2984fc6d72be8cd8d4) cann: carry the GDN conv history and per-head state across tokens - [`96930fb`](https://github.com/Niko1221/Strata/commit/96930fb0347fbe3713cf58c9d7542bf269668683) cann: rope and the full-attention layer of blk.3 for its first token - [`84ce9a9`](https://github.com/Niko1221/Strata/commit/84ce9a99d033611996c8e296a3126e9039fa429b) cann: KV cache and the softmax mix in the attention layer ### 📊 Changes **67 files changed** (+11733 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `cann/ASCEND_910B_PORT_STATUS.md` (+788 -0) ➕ `cann/CMakeLists.txt` (+115 -0) ➕ `cann/QWEN38_IQ3_XXS_ASCEND.md` (+163 -0) ➕ `cann/README.md` (+590 -0) ➕ `cann/include/strata/cann/device.hpp` (+95 -0) ➕ `cann/include/strata/cann/engine.hpp` (+51 -0) ➕ `cann/include/strata/cann/gdn.hpp` (+54 -0) ➕ `cann/include/strata/cann/gguf.hpp` (+50 -0) ➕ `cann/include/strata/cann/ops.hpp` (+100 -0) ➕ `cann/include/strata/cann/quants.hpp` (+67 -0) ➕ `cann/include/strata/cann/tensor_load.hpp` (+17 -0) ➕ `cann/python/model_spec.py` (+22 -0) ➕ `cann/python/prepare_model.py` (+61 -0) ➕ `cann/python/qwen38.py` (+416 -0) ➕ `cann/python/requirements.txt` (+3 -0) ➕ `cann/python/serve.py` (+372 -0) ➕ `cann/python/weights.py` (+249 -0) ➕ `cann/src/aclnn_call.hpp` (+23 -0) ➕ `cann/src/decode_api.cpp` (+27 -0) ➕ `cann/src/device.cpp` (+213 -0) _...and 47 more files_ </details> ### 📄 Description **The title must start with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], for example "[Engine] fix decode stop on long prompts" or "[GUI] keep the model list after a tab switch".** <!-- Read CONTRIBUTING.md first. Lead with the problem and the result, not a file-by-file list. Placeholders below are not test results: replace them with what you observed, or write "none". --> ## Problem and result <!-- What triggered this change. How it behaves before and after. --> ## Related discussion <!-- The issue URL and the maintainer's agreement on scope, when the change needs one (features, refactors, defaults). Write "none" if not applicable. --> ## Approach <!-- Why this fix. Compatibility effects. Keep unrelated cleanup out of the PR. --> ## Validation <!-- Exact commands, the revision and the environment tested, what you saw. Keep the three lists apart. --> **Passed:** <!-- command, revision/environment, observed result, log --> **Failed:** <!-- command and failure, or "none observed" --> **Not run:** <!-- check, why, and what stays unverified (for example CUDA, HIP, SYCL or Metal builds you could not do) --> ## Limits <!-- Known limitations or remaining work. --> --- <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#5383
No description provided.