Files
foxhunt/scripts
jgrusewski e61e8f54da feat(ml): Complete hyperopt infrastructure + documentation
Changes:
- CLAUDE.md: Update OOM fix validation status
- Add comprehensive documentation (30+ markdown reports)
- LSTM encoder varmap bug fix (tft/lstm_encoder.rs:290)
- Quantized LSTM layer matching fix (tft/quantized_lstm.rs)
- Hyperopt paths module (ml/src/hyperopt/paths.rs)
- Training path tests for all adapters (DQN, MAMBA-2, PPO, TFT)
- Checkpoint integrity tests
- Script cleanup: Remove 29 obsolete deployment scripts
- Archive old scripts to scripts/archive/
- New deployment utilities: check_gpu_availability.py, monitor_hyperopt.sh

Validation:
- OOM fixes validated: 5/5 trials successful (pod b6kc3mc5lbjiro)
- Batch-size-max 256 tested successfully
- All hyperopt adapters working correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 19:52:21 +01:00
..

RunPod Deployment Script

Script: runpod_deploy.py

Automated deployment script for RunPod GPU pods in EUR-IS region (SECURE cloud).

Features

  • Scans available GPUs with ≥16GB VRAM
  • Auto-selects best value GPU (RTX 4090 preferred, then cheapest)
  • Supports custom GPU selection
  • Dry-run mode for testing
  • Automatic network volume attachment

Requirements

pip install requests python-dotenv

Configuration

Create .env.runpod with:

RUNPOD_API_KEY=your_api_key
RUNPOD_VOLUME_ID=your_volume_id

Usage Examples

# Auto-select best value GPU (dry run)
./scripts/runpod_deploy.py --dry-run

# Deploy with default settings (RTX 4090 preferred)
./scripts/runpod_deploy.py

# Deploy with specific GPU
./scripts/runpod_deploy.py --gpu-type "RTX 3090"

# Custom image and larger disk
./scripts/runpod_deploy.py \
  --image runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel \
  --container-disk 100

# With custom command
./scripts/runpod_deploy.py --command "jupyter lab --allow-root"

Default Configuration

  • Cloud Type: SECURE (no spot interruptions)
  • Region: EUR-IS (Iceland - low latency to Europe)
  • Image: runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04
  • Container Disk: 50GB
  • Network Volume: Attached from .env.runpod
  • Ports: 8888/http (Jupyter)

GPU Selection Logic

  1. If --gpu-type specified and available → use it
  2. Else if RTX 4090 available → use it (best value)
  3. Else → use cheapest available GPU

Output

✅ POD DEPLOYED SUCCESSFULLY
======================================================================
Pod ID:          abc123-xyz789
GPU:             RTX 4090 (24GB)
Cost:            $0.340/hr
Image:           runpod/pytorch:2.4.0
Status:          RUNNING
======================================================================

📝 NEXT STEPS:
1. Wait 2-3 minutes for pod to initialize
2. Access Jupyter at: https://abc123-8888.proxy.runpod.net
3. SSH access: ssh root@abc123.ssh.runpod.io
4. Monitor pod: https://www.runpod.io/console/pods

Cost Warning

The script will display hourly costs. Remember to stop pods when done to avoid unnecessary charges.