[PR #3994] [CLOSED] [Engine] build the DeepSeek engine for sm_89 (the RTX 40 series) #4867

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3994
Author: @woodsonl
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: f-dsv41-sm89


📝 Commits (1)

  • 484cd61 dsv41: build the DeepSeek engine for sm_89 too (the RTX 40 series)

📊 Changes

14 files changed (+33 additions, -18 deletions)

View changed files

📝 README.de.md (+1 -1)
📝 README.es.md (+1 -1)
📝 README.fr.md (+1 -1)
📝 README.ja.md (+1 -1)
📝 README.md (+1 -1)
📝 README.pt-BR.md (+1 -1)
📝 README.zh-CN.md (+1 -1)
📝 docs/DEEPSEEK41.md (+1 -1)
📝 packaging/ENGINE-COMPONENT.md (+1 -1)
📝 packaging/build_dsv41_cuda.sh (+6 -4)
📝 packaging/build_dsv41_windows.bat (+2 -2)
📝 setup.py (+1 -1)
📝 strata_control/dsv41_fit.py (+3 -2)
📝 tests/terminal/test_dsv41_engine.py (+12 -0)

📄 Description

Problem: With the 0.2.4 DeepSeek engine package, setup refused every RTX 40 card (sm_89) at the feed check, before anything was downloaded:

0.1.49 linux-x86_64-cuda-cuda13 has code for sm_86, sm_120, compute_120, this PC's GPU is sm_89

The engine's kernels already cover the card (the exl3 decode path needs sm_80+); only the build's arch list was short.

Result: Both dsv41 build scripts (packaging/build_dsv41_cuda.sh, packaging/build_dsv41_windows.bat) default to 86-real;89-real;120 (sm_86 + sm_89 + sm_120 SASS, PTX sm_120), setup's message names the RTX 40 series, and the next package built from them installs and runs on RTX 40 cards. A regression test pins sm_89 in both defaults. Numbers measured on an RTX 4080 SUPER are added to docs/DEEPSEEK41.md, the seven READMEs and setup's plan lines (strata_control/dsv41_fit.py).

Approach: one default per script plus docs; no C++ change (__CUDA_ARCH__ >= 800 paths already include sm_89). The feed's arch matching stays exact on purpose (the main engine ships 89-real for the same reason), so the package carries its own sm_89 SASS instead of relying on sm_86 minor-revision binary compatibility.

Validation (hardware runs on 0015db9b, then rebased without conflicts onto the 0.2.4.2 release tip as 484cd617 — the rebase only re-words the README tables upstream restyled; the dsv41 tests re-ran green on 484cd617. Passed, failed and not run kept apart):

Passed

  • Built strata-dsv41 from this branch on Linux (CUDA 13.4, gcc 15.2, cmake 4.2, llama.cpp 3cf0325, packaging/build_dsv41_cuda.sh): a 101 MB binary whose cuobjdump lists 10 fatbin entries each for sm_86, sm_89 and sm_120, plus PTX compute_120.
  • Ran it on an RTX 4080 SUPER (16 GB, i9-14900K, 61 GB RAM, NVMe, driver 615.71.09): setup.py --family deepseek41 --model IST-DAS-2.00bpw end to end (257 GB download, pack build, expert profile), and the 16-token smoke question was answered sensibly twice (fresh install, then the skip-everything re-run). Served at 8192 context with --dspark auto / --dspark-conf 0.65 (the setup defaults): a 3,641-token prompt is first read at about 230 tokens/s; three 100-128-token answers ran at 25.0, 28.8 and 17.9 tokens/s.
  • python -m pytest tests/terminal on Linux: 1607 passed, 47 skipped, 331 subtests passed, 18 failed. Every failure also fails on unmodified 8183c6b6 in the same environment (16 of them in main's own full-suite run before it was interrupted; test_recipes.py::test_calibration_requires_fresh_exclusivity_and_uses_new_report_path and test_tuiqa_version.py::ProductVersion::test_dash_dash_version_leads_with_it_and_keeps_the_build_number verified identical on both trees at file level). The box carries real Strata installs, which is what the discovery tests pick up. The two tests this validation first made fail (test_list_and_the_wizard_agree_on_the_install) were setup artifacts written inside the checkout; with the tree clean they pass.
  • tools/test_setup_*.py: all 50 pass on Linux.
  • npm test in apps/host on macOS: its 17 failures are byte-identical to unmodified main on the same machine (macOS-native behaviors; this diff does not touch apps/).

Failed

  • Nothing caused by this change. In the same environments, unmodified main also fails: tests/terminal on macOS has 92 failures and tools/test_setup_* has 19 (macOS delegates setup to metal/setup_mac.py, so those tests need Windows or Linux). The Linux numbers above are the reference runs.

Not run

  • The Windows build of build_dsv41_windows.bat. Its default changes to the same ARCH string the Linux build compiled and ran; a Windows smoke needs the owner PC.
  • HIP and SYCL: untouched, dsv41 is a CUDA-only build path.

Limits: RTX 40 users are fixed when a feed package built with these defaults is published; until then the manual --dsv41-package path named in the error message is the workaround. Only the 2.00 bpw set was measured on RTX 40; IQ1_M and IQ2_XS speeds there are not measured. No release-notes file is added; notes are cut at the version bump.


🔄 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/3994 **Author:** [@woodsonl](https://github.com/woodsonl) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `f-dsv41-sm89` --- ### 📝 Commits (1) - [`484cd61`](https://github.com/Niko1221/Strata/commit/484cd617b2a82e9b4726deed94d91fc2c6000f95) dsv41: build the DeepSeek engine for sm_89 too (the RTX 40 series) ### 📊 Changes **14 files changed** (+33 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `README.de.md` (+1 -1) 📝 `README.es.md` (+1 -1) 📝 `README.fr.md` (+1 -1) 📝 `README.ja.md` (+1 -1) 📝 `README.md` (+1 -1) 📝 `README.pt-BR.md` (+1 -1) 📝 `README.zh-CN.md` (+1 -1) 📝 `docs/DEEPSEEK41.md` (+1 -1) 📝 `packaging/ENGINE-COMPONENT.md` (+1 -1) 📝 `packaging/build_dsv41_cuda.sh` (+6 -4) 📝 `packaging/build_dsv41_windows.bat` (+2 -2) 📝 `setup.py` (+1 -1) 📝 `strata_control/dsv41_fit.py` (+3 -2) 📝 `tests/terminal/test_dsv41_engine.py` (+12 -0) </details> ### 📄 Description **Problem:** With the 0.2.4 DeepSeek engine package, setup refused every RTX 40 card (sm_89) at the feed check, before anything was downloaded: ``` 0.1.49 linux-x86_64-cuda-cuda13 has code for sm_86, sm_120, compute_120, this PC's GPU is sm_89 ``` The engine's kernels already cover the card (the exl3 decode path needs sm_80+); only the build's arch list was short. **Result:** Both dsv41 build scripts (`packaging/build_dsv41_cuda.sh`, `packaging/build_dsv41_windows.bat`) default to `86-real;89-real;120` (sm_86 + sm_89 + sm_120 SASS, PTX sm_120), setup's message names the RTX 40 series, and the next package built from them installs and runs on RTX 40 cards. A regression test pins sm_89 in both defaults. Numbers measured on an RTX 4080 SUPER are added to `docs/DEEPSEEK41.md`, the seven READMEs and setup's plan lines (`strata_control/dsv41_fit.py`). **Approach:** one default per script plus docs; no C++ change (`__CUDA_ARCH__ >= 800` paths already include sm_89). The feed's arch matching stays exact on purpose (the main engine ships `89-real` for the same reason), so the package carries its own sm_89 SASS instead of relying on sm_86 minor-revision binary compatibility. **Validation** (hardware runs on `0015db9b`, then rebased without conflicts onto the 0.2.4.2 release tip as `484cd617` — the rebase only re-words the README tables upstream restyled; the dsv41 tests re-ran green on `484cd617`. Passed, failed and not run kept apart): *Passed* - Built `strata-dsv41` from this branch on Linux (CUDA 13.4, gcc 15.2, cmake 4.2, llama.cpp `3cf0325`, `packaging/build_dsv41_cuda.sh`): a 101 MB binary whose `cuobjdump` lists 10 fatbin entries each for sm_86, sm_89 and sm_120, plus PTX `compute_120`. - Ran it on an RTX 4080 SUPER (16 GB, i9-14900K, 61 GB RAM, NVMe, driver 615.71.09): `setup.py --family deepseek41 --model IST-DAS-2.00bpw` end to end (257 GB download, pack build, expert profile), and the 16-token smoke question was answered sensibly twice (fresh install, then the skip-everything re-run). Served at 8192 context with `--dspark auto` / `--dspark-conf 0.65` (the setup defaults): a 3,641-token prompt is first read at about 230 tokens/s; three 100-128-token answers ran at 25.0, 28.8 and 17.9 tokens/s. - `python -m pytest tests/terminal` on Linux: 1607 passed, 47 skipped, 331 subtests passed, 18 failed. Every failure also fails on unmodified `8183c6b6` in the same environment (16 of them in main's own full-suite run before it was interrupted; `test_recipes.py::test_calibration_requires_fresh_exclusivity_and_uses_new_report_path` and `test_tuiqa_version.py::ProductVersion::test_dash_dash_version_leads_with_it_and_keeps_the_build_number` verified identical on both trees at file level). The box carries real Strata installs, which is what the discovery tests pick up. The two tests this validation first made fail (`test_list_and_the_wizard_agree_on_the_install`) were setup artifacts written inside the checkout; with the tree clean they pass. - `tools/test_setup_*.py`: all 50 pass on Linux. - `npm test` in `apps/host` on macOS: its 17 failures are byte-identical to unmodified main on the same machine (macOS-native behaviors; this diff does not touch `apps/`). *Failed* - Nothing caused by this change. In the same environments, unmodified main also fails: `tests/terminal` on macOS has 92 failures and `tools/test_setup_*` has 19 (macOS delegates setup to `metal/setup_mac.py`, so those tests need Windows or Linux). The Linux numbers above are the reference runs. *Not run* - The Windows build of `build_dsv41_windows.bat`. Its default changes to the same ARCH string the Linux build compiled and ran; a Windows smoke needs the owner PC. - HIP and SYCL: untouched, dsv41 is a CUDA-only build path. **Limits:** RTX 40 users are fixed when a feed package built with these defaults is published; until then the manual `--dsv41-package` path named in the error message is the workaround. Only the 2.00 bpw set was measured on RTX 40; IQ1_M and IQ2_XS speeds there are not measured. No release-notes file is added; notes are cut at the version bump. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16: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#4867
No description provided.