mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3994] [CLOSED] [Engine] build the DeepSeek engine for sm_89 (the RTX 40 series) #4867
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4867
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
484cd61dsv41: 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:
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 to86-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 todocs/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__ >= 800paths already include sm_89). The feed's arch matching stays exact on purpose (the main engine ships89-realfor 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 as484cd617— the rebase only re-words the README tables upstream restyled; the dsv41 tests re-ran green on484cd617. Passed, failed and not run kept apart):Passed
strata-dsv41from this branch on Linux (CUDA 13.4, gcc 15.2, cmake 4.2, llama.cpp3cf0325,packaging/build_dsv41_cuda.sh): a 101 MB binary whosecuobjdumplists 10 fatbin entries each for sm_86, sm_89 and sm_120, plus PTXcompute_120.setup.py --family deepseek41 --model IST-DAS-2.00bpwend 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/terminalon Linux: 1607 passed, 47 skipped, 331 subtests passed, 18 failed. Every failure also fails on unmodified8183c6b6in 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_pathandtest_tuiqa_version.py::ProductVersion::test_dash_dash_version_leads_with_it_and_keeps_the_build_numberverified 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 testinapps/hoston macOS: its 17 failures are byte-identical to unmodified main on the same machine (macOS-native behaviors; this diff does not touchapps/).Failed
tests/terminalon macOS has 92 failures andtools/test_setup_*has 19 (macOS delegates setup tometal/setup_mac.py, so those tests need Windows or Linux). The Linux numbers above are the reference runs.Not run
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.Limits: RTX 40 users are fixed when a feed package built with these defaults is published; until then the manual
--dsv41-packagepath 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.