Website docs (website/docs/): - Delete 6 stale -md.html duplicates - Rename docs-clients/miners/developers → clients/miners/developers.html - Unify header/nav across all 15 pages (new .site-header pattern) - Fix 34 dead href=# links with real targets - Upgrade Font Awesome v4→v6 in index.html - Replace search stub with live client-side search (15-page index) - Extract all inline CSS into shared docs.css (+630 lines) - Extract inline theme JS into shared theme.js - Strip inline style= attributes from 10+ pages - Add .announce-banner, .source-links, .search-results CSS classes - Add Markdown Source links to clients/miners/developers pages - Update components.html title to Architecture & Components - Move browser-wallet.html to website/wallet/, leave redirect - Update all dates to February 2026 Website root: - Delete 6 root-level duplicate HTML files (160KB saved) - Rewire index.html and 404.html links Root README.md: - Fix 8 broken doc links to new numbered folder structure - Update copyright to 2026 .gitignore + .example files: - Gitignore private files: .aitbc.yaml, .env, deploy scripts, GPU scripts, service scripts, infra configs, .windsurf/, website README - Create 7 .example files for GitHub users with sanitized templates - Untrack 47 previously committed private files Live server: - Push all website files to aitbc-cascade:/var/www/html/ - Clean stale admin.html and index.nginx-debian.html
53 lines
1.3 KiB
Bash
53 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
# AITBC GPU Miner Startup Script
|
|
# Copy to start_gpu_miner.sh and adjust variables for your environment
|
|
|
|
set -e
|
|
|
|
# === CONFIGURE THESE ===
|
|
COORDINATOR_URL="http://YOUR_COORDINATOR_IP:18000"
|
|
MINER_API_KEY="your_miner_api_key"
|
|
OLLAMA_HOST="http://127.0.0.1:11434"
|
|
GPU_ID="gpu-0"
|
|
|
|
echo "🔧 Starting AITBC GPU Miner"
|
|
echo "Coordinator: $COORDINATOR_URL"
|
|
echo "Ollama: $OLLAMA_HOST"
|
|
echo ""
|
|
|
|
# Check Ollama is running
|
|
if ! curl -s "$OLLAMA_HOST/api/tags" > /dev/null 2>&1; then
|
|
echo "❌ Ollama not running at $OLLAMA_HOST"
|
|
echo "Start it with: ollama serve"
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Ollama is running"
|
|
|
|
# Check GPU
|
|
if command -v nvidia-smi &> /dev/null; then
|
|
echo "GPU detected:"
|
|
nvidia-smi --query-gpu=name,memory.total --format=csv,noheader
|
|
else
|
|
echo "⚠️ No NVIDIA GPU detected (CPU-only mode)"
|
|
fi
|
|
|
|
# Register miner
|
|
echo ""
|
|
echo "Registering miner with coordinator..."
|
|
curl -s -X POST "$COORDINATOR_URL/v1/miners/register" \
|
|
-H "X-Api-Key: $MINER_API_KEY" \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"gpu_id\": \"$GPU_ID\", \"ollama_url\": \"$OLLAMA_HOST\"}"
|
|
|
|
echo ""
|
|
echo "✅ Miner registered. Starting heartbeat loop..."
|
|
|
|
# Heartbeat + job polling loop
|
|
while true; do
|
|
curl -s -X POST "$COORDINATOR_URL/v1/miners/heartbeat" \
|
|
-H "X-Api-Key: $MINER_API_KEY" > /dev/null 2>&1
|
|
sleep 10
|
|
done
|