[GH-ISSUE #103] Ampere (A100) and CPUs without AVX-512: a Linux prebuilt with CUDA 12, PRs welcome? #57

Closed
opened 2026-11-04 01:39:22 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @architectds on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/103

Hi, and thanks for Strata: it really is fast.

I run it on Colab's A100-40G (Ampere, sm_80) under Linux, through collabosm, a small app that serves models on Colab GPUs. A few things there are outside what the setup expects today, and I made them work in a fork. Happy to send any of it as PRs, separately, if you want it upstream:

1. Ampere (sm_80). The engine builds and runs on sm_80 as it is (-DCMAKE_CUDA_ARCHITECTURES=80; the CMake check already allows 8.0 and up). Measured on an A100-SXM4-40GB with IQ3_S at a 262K context:

  • 17,037 of 24,576 experts in VRAM;
  • decode 42-52 tok/s, with an expert hit rate of about 0.97;
  • prefill 870 tok/s at 32K and 1,558 tok/s at 86K.

2. CPUs without AVX-512 VBMI. Colab's hosts are 6-core Xeons at 2.2 GHz with no VBMI. With STRATA_PORTABLE=ON the build is at the AVX2 baseline, and your run-time check keeps the AVX-512 expert kernels off, so it just works. At that hit rate, decode is mostly GPU-bound anyway.

3. Drivers older than 580. Cloud GPUs often cannot update the driver, and CUDA 13 needs r580. The fork adds STRATA_CUDA=12 to setup.py. It uses a ready-made engine built with CUDA 12.8 (driver 525 or newer), installs CUDA 12's pip wheels (nvidia-cublas-cu12, nvidia-cuda-runtime-cu12, whose libraries sit in separate folders), and refuses a prebuilt whose BUILD.json names another CUDA major. Unset, nothing changes.

4. A Linux prebuilt from CI. setup.py already looks for strata-linux-x64.zip. The fork has a GitHub Actions workflow that builds it on Ubuntu 22.04 with no GPU: about 5 minutes for the engine, 12 more for the image encoder. A v*-linux-* tag publishes the build as that tag's release.

5. The 262K cap for IQ3_*. setup.py cuts IQ3_S and IQ3_XXS to 128K below 90 GB of RAM. With KV streaming the context costs mostly RAM, so the fork counts it: the experts' arena, plus the 8-bit KV, plus 24 GB of room. 64 GB PCs still get 128K for both models, while an 83.5 GiB box keeps 262K; it runs there in 59 GB.

Would any of these be welcome as PRs?

Originally created by @architectds on GitHub (Sep 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/103 Hi, and thanks for Strata: it really is fast. I run it on Colab's A100-40G (Ampere, sm_80) under Linux, through [collabosm](https://github.com/architectds/collabosm), a small app that serves models on Colab GPUs. A few things there are outside what the setup expects today, and I made them work in a fork. Happy to send any of it as PRs, separately, if you want it upstream: **1. Ampere (sm_80).** The engine builds and runs on sm_80 as it is (`-DCMAKE_CUDA_ARCHITECTURES=80`; the CMake check already allows 8.0 and up). Measured on an A100-SXM4-40GB with IQ3_S at a 262K context: - 17,037 of 24,576 experts in VRAM; - decode 42-52 tok/s, with an expert hit rate of about 0.97; - prefill 870 tok/s at 32K and 1,558 tok/s at 86K. **2. CPUs without AVX-512 VBMI.** Colab's hosts are 6-core Xeons at 2.2 GHz with no VBMI. With `STRATA_PORTABLE=ON` the build is at the AVX2 baseline, and your run-time check keeps the AVX-512 expert kernels off, so it just works. At that hit rate, decode is mostly GPU-bound anyway. **3. Drivers older than 580.** Cloud GPUs often cannot update the driver, and CUDA 13 needs r580. The fork adds `STRATA_CUDA=12` to `setup.py`. It uses a ready-made engine built with CUDA 12.8 (driver 525 or newer), installs CUDA 12's pip wheels (`nvidia-cublas-cu12`, `nvidia-cuda-runtime-cu12`, whose libraries sit in separate folders), and refuses a prebuilt whose `BUILD.json` names another CUDA major. Unset, nothing changes. **4. A Linux prebuilt from CI.** `setup.py` already looks for `strata-linux-x64.zip`. The fork has a GitHub Actions workflow that builds it on Ubuntu 22.04 with no GPU: about 5 minutes for the engine, 12 more for the image encoder. A `v*-linux-*` tag publishes the build as that tag's release. **5. The 262K cap for IQ3_\*.** `setup.py` cuts IQ3_S and IQ3_XXS to 128K below 90 GB of RAM. With KV streaming the context costs mostly RAM, so the fork counts it: the experts' arena, plus the 8-bit KV, plus 24 GB of room. 64 GB PCs still get 128K for both models, while an 83.5 GiB box keeps 262K; it runs there in 59 GB. - Fork (branch `linux-prebuilt`): https://github.com/architectds/Strata/tree/linux-prebuilt - Releases: https://github.com/architectds/Strata/releases Would any of these be welcome as PRs?
Author
Owner

@Niko1221 commented on GitHub (Sep 29, 2026):

Yes, PRs welcome, as separate pieces: (1) a Linux prebuilt (CUDA 12, sm_80/86/89 + PTX) from CI, (2) the RAM-based context cap in setup. Note that A100 (sm_80) is supported by the code; the Windows prebuilt just doesn't include sm_80, and a CPU without AVX-512 works (AVX2 path).

<!-- gh-comment-id:5887959286 --> @Niko1221 commented on GitHub (Sep 29, 2026): Yes, PRs welcome, as separate pieces: (1) a Linux prebuilt (CUDA 12, sm_80/86/89 + PTX) from CI, (2) the RAM-based context cap in setup. Note that A100 (sm_80) is supported by the code; the Windows prebuilt just doesn't include sm_80, and a CPU without AVX-512 works (AVX2 path).
Author
Owner

@Niko1221 commented on GitHub (Sep 29, 2026):

Thanks @architectds. A100 and AVX2-only CPUs both work, and the remaining pieces are now your PRs #134 (context cap from RAM) and #136 (Linux CUDA 12 prebuilt), so I'll close this and review those.

<!-- gh-comment-id:5898165765 --> @Niko1221 commented on GitHub (Sep 29, 2026): Thanks @architectds. A100 and AVX2-only CPUs both work, and the remaining pieces are now your PRs #134 (context cap from RAM) and #136 (Linux CUDA 12 prebuilt), so I'll close this and review those.
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#57
No description provided.