Archived
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves every shipped container - Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime - /v1/messages works with Claude Code as it ships (gearwave00001) - a long agent conversation keeps its cached history when the client rewrites its last turn (manueloverride) - a stream's first event goes out with the first token, so llama-benchy measures prefill right - opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42) - four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b) - NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA adapters (baKon) - many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool arguments and the CPU's vision and audio encoders - plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
56 lines
2.1 KiB
Bash
Executable File
56 lines
2.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# docker/build.sh -- build the radiance image from a commit with BuildKit (docker buildx) and tag it.
|
|
#
|
|
# The build context is `git archive` of the commit, so the image holds only committed files (no
|
|
# build trees, uncommitted edits or model files). With -s the archive is streamed over ssh to
|
|
# another machine's `docker buildx`, which builds and keeps the image; that machine needs only
|
|
# Docker with buildx.
|
|
#
|
|
# docker/build.sh HEAD, here
|
|
# docker/build.sh -s HOST HEAD, built on and kept by HOST
|
|
# docker/build.sh -r COMMIT another commit
|
|
# docker/build.sh -t 'gfx1200;gfx1201' other GPU architectures (default gfx1201)
|
|
# docker/build.sh -j 8 fewer compile jobs, for a host that is also serving
|
|
# docker/build.sh --target build stop at a stage (tagged radiance-<stage>), e.g. for the
|
|
# GPU test suites
|
|
#
|
|
# Tags: radiance:<project version>, radiance:<commit>, radiance:latest.
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
REV=HEAD
|
|
HOST=
|
|
TARGETS=gfx1201
|
|
JOBS=
|
|
STAGE=
|
|
while [ $# -gt 0 ]; do
|
|
case "$1" in
|
|
-s) shift; HOST="$1" ;;
|
|
-r) shift; REV="$1" ;;
|
|
-t) shift; TARGETS="$1" ;;
|
|
-j) shift; JOBS="$1" ;;
|
|
--target) shift; STAGE="$1" ;;
|
|
*) echo "docker/build.sh: unknown option $1" >&2; exit 2 ;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
SHA=$(git rev-parse --short=12 "$REV^{commit}")
|
|
VERSION=$(git show "$SHA:CMakeLists.txt" | sed -n 's/^project(radiance VERSION \([0-9.]*\).*/\1/p')
|
|
[ -n "$VERSION" ] || { echo "docker/build.sh: no project version in CMakeLists.txt" >&2; exit 1; }
|
|
|
|
if [ -n "$STAGE" ]; then
|
|
TAGS="-t radiance-$STAGE --target $STAGE"
|
|
else
|
|
TAGS="-t radiance:$VERSION -t radiance:$SHA -t radiance:latest"
|
|
fi
|
|
CMD="docker buildx build --load --build-arg GPU_TARGETS='$TARGETS' --build-arg JOBS='$JOBS'"
|
|
CMD="$CMD --build-arg VERSION='$VERSION' --build-arg REVISION='$SHA' $TAGS -"
|
|
|
|
echo "radiance $VERSION ($SHA) for $TARGETS${HOST:+ on $HOST}${STAGE:+, stage $STAGE}"
|
|
if [ -n "$HOST" ]; then
|
|
git archive --format=tar "$SHA" | ssh "$HOST" "$CMD"
|
|
else
|
|
git archive --format=tar "$SHA" | sh -c "$CMD"
|
|
fi
|