Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6afd3ff4d8 |
No files matched your search
@@ -1,7 +1,24 @@
|
||||
# UnbiasedStrata build. Needs CMake 3.24+, a C++20 compiler and the CUDA toolkit. Nothing is downloaded.
|
||||
BUILD_DIR ?= build
|
||||
# Pascal/Volta are a community, experimental build: `make build PASCAL=1` compiles sm_61 (GTX 10-series,
|
||||
# Tesla P40; sm_60/P100 works too, override with CUDA_ARCHS=60) and turns on the engine's
|
||||
# STRATA_EXPERIMENTAL_SM60 path (see README.md and src/core/device.cu). It needs a CUDA 12.x toolkit:
|
||||
# CUDA 13 dropped sm_60/sm_70, so the check below fails early with the reason instead of inside nvcc.
|
||||
PASCAL ?=
|
||||
ifeq ($(PASCAL),1)
|
||||
CUDA_ARCHS ?= 61
|
||||
PASCAL_CMAKE_FLAGS := -DSTRATA_EXPERIMENTAL_SM60=ON
|
||||
NVCC ?= $(shell command -v nvcc 2>/dev/null)
|
||||
NVCC_MAJOR := $(shell $(NVCC) --version 2>/dev/null | sed -n 's/.*release \([0-9]*\).*/\1/p' | head -n1)
|
||||
ifneq ($(NVCC_MAJOR),)
|
||||
ifeq ($(shell [ $(NVCC_MAJOR) -ge 13 ] && echo yes),yes)
|
||||
$(error PASCAL=1 needs a CUDA 12.x toolkit; nvcc $(NVCC_MAJOR) dropped sm_60/sm_70)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
# RTX 30 (86), RTX 40 (89) and RTX 50 (120) in one binary. sm_120 needs CUDA 12.8+, and upstream recommends 13.0+.
|
||||
CUDA_ARCHS ?= 86;89;120
|
||||
endif
|
||||
# capped: inside a container nproc reports the host's CPUs, not the container's quota
|
||||
JOBS ?= $(shell n=$$(nproc 2>/dev/null || echo 4); [ $$n -gt 16 ] && n=16; echo $$n)
|
||||
|
||||
@@ -13,7 +30,8 @@ build:
|
||||
@git -C third_party/llama.cpp apply --check --reverse ../../patches/llama.cpp-qwen3-coder-any-argument-order.patch 2>/dev/null || \
|
||||
git -C third_party/llama.cpp apply ../../patches/llama.cpp-qwen3-coder-any-argument-order.patch
|
||||
cmake -S . -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DSTRATA_NATIVE_EXPERTS=ON \
|
||||
-DSTRATA_PORTABLE=ON -DSTRATA_BUILD_TESTS=OFF "-DCMAKE_CUDA_ARCHITECTURES=$(CUDA_ARCHS)"
|
||||
-DSTRATA_PORTABLE=ON -DSTRATA_BUILD_TESTS=OFF "-DCMAKE_CUDA_ARCHITECTURES=$(CUDA_ARCHS)" \
|
||||
$(PASCAL_CMAKE_FLAGS)
|
||||
cmake --build $(BUILD_DIR) -j $(JOBS) --target unbiased-strata
|
||||
@echo "built: $(BUILD_DIR)/unbiased-strata"
|
||||
|
||||
|
||||
@@ -26,6 +26,12 @@ ssh host 'cd UnbiasedStrata && make build' # produces build/unbiased-strata
|
||||
The tree is 6 MB plus the pinned llama.cpp submodule in `third_party/` (about 170 MB checked out). The
|
||||
build fetches nothing. `make build JOBS=N` sets the job count; `CUDA_ARCHS` defaults to `86;89;120`.
|
||||
|
||||
Pascal is an experimental, community build: `make build PASCAL=1` compiles sm_61 (GTX 10-series, Tesla P40;
|
||||
`CUDA_ARCHS=60` for P100) and turns on the engine's `STRATA_EXPERIMENTAL_SM60` path. It needs a CUDA 12.x
|
||||
toolkit (CUDA 13 dropped sm_60/sm_70) and is outside the validated configuration above: no tensor cores, so
|
||||
expect the portable FP32 attention path and much lower throughput, and a card under 24 GB leans on the expert
|
||||
cache.
|
||||
|
||||
## Run
|
||||
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user