SPB Git

spb/localvm-research Public License

Running LLMs larger than memory on a consumer Mac — falsification-driven research: margin-gated deferred refinement, out-of-core verification on Apple Silicon. TR-01 published.

Python 63.2% JavaScript 23.5% CSS 11.8% Shell 0.9% Makefile 0.5%
1.7 KB · 43 lines shellscript
Raw Blame History
1#!/bin/zsh2# =============================================================================3#  Project   : localvm-research4#  File      : web/sync-content.sh5#  Purpose   : Snapshot the research repo into web/content/ + build-info.json6#  Author    : Simon-Pierre Boucher7#  Contact   : contact@spboucher.ai8#  Created   : 2026-08-129#  Modified  : 2026-08-1210#  Platform  : macOS / Apple Silicon (arm64)11#  License   : All rights reserved (research code)12# =============================================================================13set -euo pipefail1415REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"16CONTENT="$REPO_ROOT/web/content"1718mkdir -p "$CONTENT"19# NOTE: rsync applies filters in order — excludes MUST precede the broad20# includes, or e.g. experiments/**/testfile.bin (8 GiB) slips through.21rsync -a --delete \22  --exclude='*.bin' --exclude='*.log' --exclude='__pycache__' --exclude='.git' \23  --exclude='node_modules' --exclude='web' \24  --include='CLAUDE.md' --include='README.md' --include='CITATION.cff' \25  --include='Makefile' --include='pyproject.toml' \26  --include='research/***' --include='experiments/***' --include='benchmarks/***' \27  --include='src/***' --include='tools/***' --include='results/***' --include='docs/***' \28  --exclude='*' \29  "$REPO_ROOT/" "$CONTENT/"3031COMMIT=$(git -C "$REPO_ROOT" rev-parse HEAD 2>/dev/null || echo "unknown")32COMMITS=$(git -C "$REPO_ROOT" rev-list --count HEAD 2>/dev/null || echo 0)33cat > "$CONTENT/build-info.json" <<EOF34{35  "author": "Simon-Pierre Boucher",36  "contact": "contact@spboucher.ai",37  "commit": "$COMMIT",38  "commits": $COMMITS,39  "generated": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"40}41EOF42echo "content synced at commit ${COMMIT:0:7} ($COMMITS commits)"43