mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #662] [CLOSED] setup: prefer uv for the venv and package installs when uv is installed #2751
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#2751
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/662
Author: @tanzious01
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:pr/uv-support📝 Commits (10+)
b0dda4bAMD: gfx1101 (RX 7800 XT, #254 by jhohertz) and gfx1200 (RX 9060 XT, #256 by Efeisot) as community-validated cardscc97fcdsetup: AMD layer splits with --gpus (every chosen card a supported AMD arch; the engine compiled for each)e9e2ba3pinned (#243 follow-up): the shared-memory-budget cap on the sliced pin is opt-in (STRATA_ARENA_PIN_GIB=auto) - by default the arena pins as in 0.1.30; on this 64 GB PC the cap pinned 26 instead of 30 GiB and cost ~20% prompt speed and 2-4% IQ3_S decodecacffa9CS-T speed: the file tier fetched in parallel, PCIe planning without file reads, a partial pin of the RAM tier, bit-exact AVX2 multi-token kernels for Q4_K / Q5_1 / Q8_0 experts, decode-only tier statsa348c7aMerge branch 'f-131-srv' into r131-q4b93a00cMerge branch 'f-q4-on242' into r131-q48f5148cCS-T: the partial pin at most 24 GiB (STRATA_PARTIAL_PIN_GIB), the Q4_K/Q5_1/Q8_0 multi-token kernels from two tokens on5ffda19CS-T: the GGUF-in-place prefetch asks Windows for all of a layer's missed slices at once (PrefetchVirtualMemory)ed6c124#253: the 8 GiB arena pin cap only under WDDM; STRATA_ARENA_PIN_GIB; the split's prompt chunk steps down450149d--split-skip-if-fits (opt-in): an auto split runs on the main card alone when it holds every profiled expert + KV📊 Changes
2 files changed (+25 additions, -9 deletions)
View changed files
📝
setup.py(+5 -1)📝
setup.sh(+20 -8)📄 Description
On NixOS, a venv made with the system Python cannot use the pip wheels
Strata needs (numpy/pillow dlopen libraries outside the store, and the
system interpreter is not one the wheels are built against).
uvwithits own managed interpreter works there, and
uv pipis fastereverywhere else.
When
uvis onPATH:setup.shcreates.venvwithuv venv --managed-python --seed --python 3.12— uv's own interpreter, which finds its librarieswithout help from the distro.
setup.py's package step installs withuv pip install --python <sys.executable>.Without
uv, every path is exactly as before (standardvenv+ pip,same package list, same stamps). Windows is untouched.
This makes the NixOS path documented in
docs/DETAILS.mdwork with thedistro's own package manager:
uvinenvironment.systemPackages,nothing else.
Tested on NixOS (unstable, RTX + CUDA): fresh
./setup.shcreates theuv venv, installs the pinned packages, compiles the engine, starts the
model; a second run starts directly. On a Fedora box without uv:
unchanged behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.