mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3947] [CLOSED] [Engine] Add sm_89 (Ada Lovelace / L4 / RTX 40) to dsv41 CUDA build architectures #4850
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#4850
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/3947
Author: @waroy
Created: 10/24/2026
Status: ❌ Closed
Base:
main← Head:fix-dsv41-sm89-prebuilt📝 Commits (1)
9eb6a2cpackaging: add 89-real to dsv41 default CUDA build architectures📊 Changes
3 files changed (+3 additions, -3 deletions)
View changed files
📝
packaging/build_dsv41_cuda.sh(+1 -1)📝
packaging/build_dsv41_windows.bat(+1 -1)📝
setup.py(+1 -1)📄 Description
Problem and result
Currently, the prebuilt
strata-dsv41-0.1.49engine packages in the signed update feed only carry code forsm_86,sm_120, andcompute_120.On Ada Lovelace GPUs such as the NVIDIA L4 (standard in cloud environments) and RTX 40 series (
sm_89),setup.py --family deepseek41stops at step 4:Because PTX code compiled for
compute_120(Blackwell) cannot JIT-compile down tosm_89(Ada Lovelace), there is no fallback execution path forsm_89devices when using the prebuilt release packages.After this change:
packaging/build_dsv41_cuda.shandpackaging/build_dsv41_windows.batinclude89-realin their default architecture lists, so release builds automatically producesm_89machine code. Users on NVIDIA L4 and RTX 40 GPUs can download and run the prebuilt engine out-of-the-box without manual compilation.Related discussion
Relates to #3935.
Approach
The engine source in
src/dsv41/targetssm_80+Tensor Core instructions (mma.m16n8k16), which are natively supported on Ada Lovelace (sm_89). The main engine (strata-engine) already targetssm_89.This PR adds
89-realto the defaultARCH/DSV41_ARCHlist in bothpackaging/build_dsv41_cuda.shandpackaging/build_dsv41_windows.bat, and updates the supported hardware message insetup.pyto mention RTX 40 series and NVIDIA L4 cards alongside RTX 30 and RTX 50.Validation
Passed:
SRC=. B=build-dsv41 CUDA=/usr/local/cuda-13.0 GG=third_party/llama.cpp ARCH="89-real" JOBS=16 bash packaging/build_dsv41_cuda.shv0.2.4/ PR branchfix-dsv41-sm89-prebuilt.libcudart.so.13,libcublas.so.13,libcublasLt.so.13.STRATA_DSV41_EXE=/path/to/strata-dsv41 python3 setup.py --setup --yes --family deepseek41 --model IST-DAS-2.00bpw --context 262144 --kv q4_0 --data-dir /path/to/data --no-startstrata-dsv41executable on the L4 GPU, validated CUDA 13 runtime libraries, and wrote the engine JSON configuration without errors.python3 tools/dsv41/smoke.py --pack /path/to/packs/deepseek-v4.1-flash-ist-das-2.00bpw --exe /path/to/strata-dsv41[ok] test question answered sensiblyafter initial expert weight prefill into L4 VRAM and system memory.python3 serve/server.py --engine strata --config strata-deepseek-v4.1-flash-ist-das-2.00bpw.json --port 8090POST /v1/chat/completionswith payload{"model": "deepseek-v4.1-flash", "messages": [{"role": "user", "content": "What is 17 + 28? Reply with just the number."}]}choices[0].message.content: "45",choices[0].message.reasoning_content: "We need answer just number. 17+28=45.".Failed:
Not run:
packaging/build_dsv41_windows.bat): Not run on native Windows hardware (tested syntax against existing batch patterns; CI / release pipeline runs on Windows builders).build_dsv41_hip.shfor Radeon AI PRO R9700) and are untouched by this PR.Limits
sm_89adds a few megabytes to the resulting tarball / zip archive.main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.