[PR #1518] [CLOSED] Start Porting for DeepSeek4-Flash #3506

Closed
opened 2026-11-07 14:41:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1518
Author: @perronemirko
Created: 10/8/2026
Status: ❌ Closed

Base: main ← Head: deepseekv4-flash


📝 Commits (3)

  • c71b5eb Start Porting for DeepSeek4-Flash
  • 9aea311 feat(gpu): implement batched prefill for expert and attention processing
  • bd6fc62 build(CMake): configure batch prefill tests and Python3

📊 Changes

53 files changed (+138181 additions, -1 deletions)

View changed files

📝 CMakeLists.txt (+6 -1)
➕ dsv4_ext/.gitignore (+3 -0)
➕ dsv4_ext/CMakeLists.txt (+108 -0)
➕ dsv4_ext/README.md (+193 -0)
➕ dsv4_ext/build.sh (+145 -0)
➕ dsv4_ext/diagrams/architecture.dot (+226 -0)
➕ dsv4_ext/diagrams/classes.dot (+171 -0)
➕ dsv4_ext/docs/deepseek_v4_flash_porting.md (+84 -0)
➕ dsv4_ext/include/dsv4/config.hpp (+131 -0)
➕ dsv4_ext/include/dsv4/dequant.hpp (+128 -0)
➕ dsv4_ext/include/dsv4/dq_traits.hpp (+299 -0)
➕ dsv4_ext/include/dsv4/gguf_header.hpp (+168 -0)
➕ dsv4_ext/include/dsv4/gpu.hpp (+348 -0)
➕ dsv4_ext/include/dsv4/iq_tables.hpp (+122 -0)
➕ dsv4_ext/include/dsv4/mem_plan.hpp (+107 -0)
➕ dsv4_ext/include/dsv4/model.hpp (+321 -0)
➕ dsv4_ext/include/dsv4/ops.hpp (+266 -0)
➕ dsv4_ext/include/dsv4/sampler.hpp (+104 -0)
➕ dsv4_ext/include/dsv4/serve_loop.hpp (+67 -0)
➕ dsv4_ext/serve-work/tokenizer/chat_template.jinja (+248 -0)

...and 33 more files

📄 Description

Title


Issue: Resolves #
support the deepseek v4 flash (https://github.com/Niko1221/Strata/issues/1501)

Summary

Adding add_subdirectory(dsv4_ext) to keep the Strata core clean
Adding DeepSeekV4 Flash

What changed

All the files inside the subdirectory dsv4_ext are used to port the DeepSeekV4 Flash

Extra Notes

Everything is done with my supervision and have been tested on /DeepSeek-V4-Flash-UD-IQ1_M
Device: NVIDIA driver: nvidia v: 610.57.04
CUDA 12.8
export CXX=/usr/bin/g++-10
export CC=/usr/bin/gcc-10
ninja --version
1.10.1
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy


🔄 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/1518 **Author:** [@perronemirko](https://github.com/perronemirko) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `deepseekv4-flash` --- ### 📝 Commits (3) - [`c71b5eb`](https://github.com/Niko1221/Strata/commit/c71b5eb824ac22bb4d8e0244b904f0ab7c3eb86a) Start Porting for DeepSeek4-Flash - [`9aea311`](https://github.com/Niko1221/Strata/commit/9aea31176b33c5b6e499065b0a2d1a02743e5aa2) feat(gpu): implement batched prefill for expert and attention processing - [`bd6fc62`](https://github.com/Niko1221/Strata/commit/bd6fc62a377acb06fc5fb1d800262a4e6731a935) build(CMake): configure batch prefill tests and Python3 ### 📊 Changes **53 files changed** (+138181 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+6 -1) ➕ `dsv4_ext/.gitignore` (+3 -0) ➕ `dsv4_ext/CMakeLists.txt` (+108 -0) ➕ `dsv4_ext/README.md` (+193 -0) ➕ `dsv4_ext/build.sh` (+145 -0) ➕ `dsv4_ext/diagrams/architecture.dot` (+226 -0) ➕ `dsv4_ext/diagrams/classes.dot` (+171 -0) ➕ `dsv4_ext/docs/deepseek_v4_flash_porting.md` (+84 -0) ➕ `dsv4_ext/include/dsv4/config.hpp` (+131 -0) ➕ `dsv4_ext/include/dsv4/dequant.hpp` (+128 -0) ➕ `dsv4_ext/include/dsv4/dq_traits.hpp` (+299 -0) ➕ `dsv4_ext/include/dsv4/gguf_header.hpp` (+168 -0) ➕ `dsv4_ext/include/dsv4/gpu.hpp` (+348 -0) ➕ `dsv4_ext/include/dsv4/iq_tables.hpp` (+122 -0) ➕ `dsv4_ext/include/dsv4/mem_plan.hpp` (+107 -0) ➕ `dsv4_ext/include/dsv4/model.hpp` (+321 -0) ➕ `dsv4_ext/include/dsv4/ops.hpp` (+266 -0) ➕ `dsv4_ext/include/dsv4/sampler.hpp` (+104 -0) ➕ `dsv4_ext/include/dsv4/serve_loop.hpp` (+67 -0) ➕ `dsv4_ext/serve-work/tokenizer/chat_template.jinja` (+248 -0) _...and 33 more files_ </details> ### 📄 Description ## Title [<!-- If Applicable, reference the GitHub issue -->](https://github.com/Niko1221/Strata/issues/1501) Issue: Resolves # support the deepseek v4 flash (https://github.com/Niko1221/Strata/issues/1501) ## Summary Adding add_subdirectory(dsv4_ext) to keep the Strata core clean Adding DeepSeekV4 Flash ## What changed All the files inside the subdirectory dsv4_ext are used to port the DeepSeekV4 Flash ## Extra Notes Everything is done with my supervision and have been tested on /DeepSeek-V4-Flash-UD-IQ1_M Device: NVIDIA driver: nvidia v: 610.57.04 CUDA 12.8 export CXX=/usr/bin/g++-10 export CC=/usr/bin/gcc-10 ninja --version 1.10.1 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:57 +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#3506
No description provided.