mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #136] [CLOSED] Linux prebuilt from CI: CUDA 12.8, sm_80/86/89 + PTX, attached to each release #2475
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#2475
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/136
Author: @architectds
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:pr/linux-prebuilt📝 Commits (2)
d48cd40Linux prebuilt from CI: CUDA 12.8, sm_80/86/89 + PTX, attached to each release896f75eLinux prebuilt: native sm_90/sm_120; setup checks the driver for PTX and CUDA 13📊 Changes
4 files changed (+216 additions, -27 deletions)
View changed files
➕
.github/workflows/linux-prebuilt.yml(+134 -0)📝
README.md(+3 -1)📝
docs/DETAILS.md(+3 -1)📝
setup.py(+76 -25)📄 Description
The first piece from #103, as you suggested: a Linux prebuilt, built by CI.
The workflow (
.github/workflows/linux-prebuilt.yml) compilesstrata-linux-x64.zipon Ubuntu 22.04. It needs no GPU.strata-vision) with CUDA 12.8.80-real;86-real;89: sm_80, sm_86 and sm_89 as machine code, plus compute_89 PTX for newer cards.STRATA_PORTABLE=ON). The AVX-512 kernels are still picked at run time where the CPU has them.BUILD.jsonthatget_prebuiltreads.When you publish a release, a second job attaches the zip and its SHA-256 to it.
releases/latest/download/strata-linux-x64.zipthen sits next to the Windows zip, about 40 minutes after publishing. Until then, a Linux setup compiles, as it does today. Running the workflow by hand, from Actions > linux-prebuilt with other architectures if you want, builds an artifact only. So does a PR that changes the workflow.setup.py uses CUDA 12 on Linux to match that build:
cuda_lib_dirsnow finds.Windows is unchanged (CUDA 13).
STRATA_CUDA=12or13picks the other one. A prebuilt built with another CUDA major is not used, because it would look for libraries setup did not install; setup compiles instead.Tested:
main(0.1.23), 37 minutes. The engine for three architectures took 5 min, the image encoder 29 min. The zip is 99.5 MB:BUILD.jsonis{"version": "0.1.23", "archs": [80, 86, 89], "ptx": true, "cuda": "12.8", "vision": "gpu", ...};libcudart.so.12,libcublas.so.12andlibcublasLt.so.12, which are the pinned pip wheels.setup.py --prebuiltall day: 262K context, images, and decode at 61 tok/s.The RAM-based context cap is the other piece: #134.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.