From 64b86940fed0d19b4ca64e380965be42f8975ab4 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 30 Nov 2026 19:03:19 +0000 Subject: [PATCH] c0mpute-autoscale: downgrade Vast to one $0.058/h RTX 3060, drop video nodes Anthony 2026-11-30: downgrade to ~$0.05/h, cancel all other Vast instances, see if it earns $0.10/h over 24-48 h. vast-3060 now instance 63372455 (RTX 3060 + Ryzen 5 5600X, Poland, driver CUDA 13.2); replace cap $0.08/h; video nodes removed; 9b-burst pool max_nodes 1. Adds the 24/48 h earnings check script (mails Anthony from riotcoder@). Co-Authored-By: Claude Opus 5.5 --- dev2/c0mpute-autoscale/autoscale.toml | 48 ++---------------- .../vast-3060-earnings-check.sh | 49 +++++++++++++++++++ 2 files changed, 54 insertions(+), 43 deletions(-) create mode 100755 dev2/c0mpute-autoscale/vast-3060-earnings-check.sh diff --git a/dev2/c0mpute-autoscale/autoscale.toml b/dev2/c0mpute-autoscale/autoscale.toml index 8de08e3..0c2e64d 100644 --- a/dev2/c0mpute-autoscale/autoscale.toml +++ b/dev2/c0mpute-autoscale/autoscale.toml @@ -7,7 +7,7 @@ log_file = "~/www/vast-autoscale/state.log" [[node]] name = "vast-3060" provider = "vast" -instance = "61205210" # "c0mpute-gpu-3060 profullstack" +instance = "63372455" # "c0mpute-gpu-3060 profullstack": RTX 3060 + Ryzen 5 5600X Poland (driver CUDA 13.2), $0.058/h incl 40 GB disk, rented 2026-11-30 ~18:55Z (Anthony: downgrade to ~$0.05/h, 24-48 h earnings test) node = "sdNT3kCN" models = ["eriktonon/qwen3.8-uncensored:9b"] # Anthony 2026-11-18: this GPU stays up 24/7. Watch only: log what autoscale WOULD do @@ -23,7 +23,7 @@ busy_cmd = "~/.config/c0mpute/autoscale/vast-hook.sh" pre_stop_cmd = "~/.config/c0mpute/autoscale/vast-hook.sh stop-worker" [node.replace] -max_usd_per_hour = 0.12 # pre-approved cap (Anthony 2026-11-18) +max_usd_per_hour = 0.08 # Anthony 2026-11-30: ~$0.05/h box only gpus = ["RTX 3060", "RTX 3070", "RTX 4060 Ti"] min_gpu_ram_gb = 12 min_reliability = 0.98 @@ -33,45 +33,7 @@ onstart_file = "~/.config/c0mpute/autoscale/vast-onstart.sh" identity_file = "~/.config/c0mpute/autoscale/sdNT3kCN-identity.key" label = "c0mpute-gpu-3060 profullstack" -[[node]] -# Anthony 2026-11-28 ("do it"): a rented 24 GB GPU for Wan 2.2 5B (18+ / 720p video) -# and Wan 2.1 1.3B, running ONLY while there is video demand. Rented by riotcoder. -name = "vast-video-3090" -provider = "vast" -instance = "62993768" # RTX 3090 Ti 24 GB + 64 GB RAM, $0.204/h, rented 2026-11-28 08:5xZ after 62958623 vanished from the account (same node identity) -node = "12D3KooWBrRXaVVRitjUTfD8qrDukY2wG9nBdvw4CouwmtKXcVNd" -models = ["wan2.2-ti2v-5b"] -dry_run = false -api_key_file = "~/.config/c0mpute/autoscale/vast.key" -idle_minutes = 20 -min_run_minutes = 15 -boot_timeout_minutes = 10 - -[node.replace] -max_usd_per_hour = 0.25 # Anthony approved ~$0.20-0.35/h (2026-11-28) -gpus = ["RTX 3090", "RTX 3090 Ti", "RTX 4090"] -min_gpu_ram_gb = 24 -min_reliability = 0.98 -disk_gb = 90 -image = "nvidia/cuda:12.8.1-base-ubuntu24.04" -onstart_file = "~/.config/c0mpute/autoscale/vast-video-onstart.sh" -identity_file = "~/.config/c0mpute/autoscale/video3090-identity.key" -label = "c0mpute-video-3090 profullstack" - -[[node]] -# Anthony 2026-11-28 ("do the 3060": per-model GPUs): a second video card beside the 3090, -# Quadro RTX 8000 48 GB (Wan 2.2 5B fully on-GPU, no offload), $0.268/h, running ONLY while -# there is video demand. Rented by riotcoder. Onstart: autoscale/vast-video-onstart.sh. -name = "vast-video-rtx8000" -provider = "vast" -instance = "62992904" # "c0mpute-video-rtx8000 profullstack", 48 GB VRAM, 96 GB RAM -node = "12D3KooWLFpYRqFtq1yvBKH3JsmJz9CcGEBRUMtwbmCCTj9bPsCe" -models = ["wan2.2-ti2v-5b", "ace-step-1.5"] # music moved here 11-28: ACE-Step OOMs beside the resident 9B on the 3060 -dry_run = false -api_key_file = "~/.config/c0mpute/autoscale/vast.key" -idle_minutes = 20 -min_run_minutes = 15 -boot_timeout_minutes = 10 +# Video nodes vast-video-3090 / vast-video-rtx8000 removed 2026-11-30 (Anthony: "cancel all other instances on vast.ai"). Backup: autoscale.toml.bak-20261130-downgrade # riotcoder 2026-11-30 (Anthony: "autoscale gpus on c0mpute fleet, pay with crypto"). # Vast takes crypto only as prepaid credit (no autobill): nothing new is rented below @@ -92,7 +54,7 @@ low_balance_cmd = "~/.config/c0mpute/autoscale/vast-lowbalance.sh" name = "9b-burst" models = ["eriktonon/qwen3.8-uncensored:9b"] api_key_file = "~/.config/c0mpute/autoscale/vast.key" -max_nodes = 2 +max_nodes = 1 # 2026-11-30: 24-48 h earnings test; seed $0 so it rents only from real profit max_usd_per_day = 0 # SEED: $0. Anthony 11-30: "new profits get used to buy more gpus at a profit"; nothing is rented until there is real surplus scale_out_waiting = 3 scale_out_minutes = 5 @@ -104,7 +66,7 @@ max_nodes_ceiling = 8 max_usd_per_day_ceiling = 50 [pool.rent] -max_usd_per_hour = 0.12 +max_usd_per_hour = 0.08 gpus = ["RTX 3060", "RTX 3070", "RTX 4060 Ti"] min_gpu_ram_gb = 12 min_reliability = 0.98 diff --git a/dev2/c0mpute-autoscale/vast-3060-earnings-check.sh b/dev2/c0mpute-autoscale/vast-3060-earnings-check.sh new file mode 100755 index 0000000..c662f46 --- /dev/null +++ b/dev2/c0mpute-autoscale/vast-3060-earnings-check.sh @@ -0,0 +1,49 @@ +#!/bin/bash +# riotcoder 2026-11-30: 24 h / 48 h earnings check for the downgraded Vast 3060 (instance 63372455, +# node sdNT3kCN, $0.058/h). Anthony's target: >= $0.10/h. Mails him from riotcoder@. +# Usage: vast-3060-earnings-check.sh [--dry] (--dry prints the mail instead of sending) +set -u +INST=63372455; NODE=sdNT3kCN; START="2026-11-30T19:00:00Z" +K=$(cat ~/.config/c0mpute/autoscale/vast.key) +j=$(curl -s -H "Authorization: Bearer $K" "https://console.vast.ai/api/v0/instances/$INST/" | jq -c '.instances') +ip=$(jq -r '.public_ipaddr // empty' <<<"$j"); p=$(jq -r '.ports["22/tcp"][0].HostPort // empty' <<<"$j") +dph=$(jq -r '.dph_total // 0' <<<"$j" | xargs printf '%.4f'); st=$(jq -r '.actual_status // "gone"' <<<"$j") + +# Worker log lines: "market price learned job_id=X cleared=Y" and "we won job_id=X". +lines=$(timeout 60 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=15 -p "$p" "root@$ip" \ + "sed 's/\x1b\[[0-9;]*m//g' /home/c0mpute/worker.log | grep -E 'market price learned|we won'" 2>/dev/null) +read -r won gross < <(awk ' + { id=""; c="" + for (i=1;i<=NF;i++) { if ($i ~ /^job_id=/) id=substr($i,8); if ($i ~ /^cleared=/) c=substr($i,9) } } + /market price learned/ && id!="" { price[id]=c } + /we won/ && id!="" { w[id]=1 } + END { n=0; s=0; for (k in w) { n++; s+=price[k] } printf "%d %.4f\n", n, s }' <<<"$lines") +won=${won:-0}; gross=${gross:-0} + +hrs=$(awk -v a="$(date -ud "$START" +%s)" -v b="$(date -u +%s)" 'BEGIN{printf "%.1f",(b-a)/3600}') +perh=$(awk -v g="$gross" -v h="$hrs" 'BEGIN{printf "%.4f", (h>0?g/h:0)}') +credit=$(curl -s -H "Authorization: Bearer $K" https://console.vast.ai/api/v0/users/current/ | jq -r '.credit' | xargs printf '%.2f') +pnl=$(timeout 120 ~/.claude/skills/cfo/scripts/node-pnl.sh "$NODE" "$INST" 2>&1 | tail -15) +verdict=$(awk -v x="$perh" 'BEGIN{print (x>=0.10?"MEETS":"BELOW")}') + +body=$(cat < $verdict the \$0.10/h target. Cost: \$${dph}/h. +Vast credit left: \$${credit} + +Caveat (cfo rule): that gross is almost all our own fleet's traffic (house lane), not outside revenue. +Outside customer spend, from the cfo node-pnl script: +$pnl + +Your call after 48 h: keep, stop (disk-only ~\$0.007/h) or destroy. Nothing changes until you say. + +riotcoder +MSG +) +if [ "${1:-}" = "--dry" ]; then echo "$body"; exit 0; fi +mail send -a riotcoder --to ettinger@gmail.com --subject "Vast 3060 earnings: ${hrs} h, \$${perh}/h vs \$0.10 target" --body "$body"