Files
foxhunt/deploy_mamba2_hyperopt.sh
jgrusewski 3853988af7 feat(hyperopt): Complete DQN hyperopt analysis and PSO optimizer fix
- Fixed PSO budget calculation bug in ml/src/hyperopt/optimizer.rs
  - Root cause: Division by n_particles in sequential execution
  - Now correctly calculates max_iters = remaining_trials (no division)
  - Result: 50 trials complete instead of 23 (100% vs 46%)

- Added comprehensive DQN hyperopt results analysis
  - 39/50 trials analyzed across 2 RunPod deployments
  - Best hyperparameters identified: LR 4.89e-5 (ultra-low)
  - Created DQN_HYPEROPT_RESULTS_SUMMARY.md with expert validation

- GitLab CI/CD pipeline operational (48 lines fixed)
  - Fixed YAML syntax errors (unquoted colons)
  - All 7 jobs validated and working

- Warning cleanup complete (136 → 0 warnings)
  - Removed 143 lines dead code
  - Fixed visibility, unused imports, Debug traits

- Archived Wave D reports to docs/archive/
  - 8 early stopping reports moved
  - Root directory cleaned up

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 21:49:07 +01:00

60 lines
1.8 KiB
Bash
Executable File

#!/bin/bash
# MAMBA2 Hyperopt RunPod Deployment Script
# Deploys MAMBA2 hyperparameter optimization to RunPod GPU
set -e
# Activate virtual environment
source .venv/bin/activate
# Set PYTHONPATH to include custom runpod module
export PYTHONPATH=/home/jgrusewski/Work/foxhunt:$PYTHONPATH
# Configuration
GPU_TYPE="RTX A4000"
POD_NAME="mamba2-hyperopt"
IMAGE="jgrusewski/foxhunt:latest"
TRIALS=50
EPOCHS=50
TIMEOUT="120m"
# MAMBA2 hyperopt command for RunPod
# Note: Binary is wrapped by entrypoint-self-terminate.sh
COMMAND="hyperopt_mamba2_demo \
--parquet-file /runpod-volume/test_data/ES_FUT_180d.parquet \
--base-dir /runpod-volume/ml_training \
--trials ${TRIALS} \
--epochs ${EPOCHS} \
--batch-size-max 96 \
--early-stopping-patience 5"
echo "======================================================================"
echo "MAMBA2 Hyperopt RunPod Deployment"
echo "======================================================================"
echo "GPU Type: ${GPU_TYPE}"
echo "Docker Image: ${IMAGE}"
echo "Trials: ${TRIALS}"
echo "Epochs per Trial: ${EPOCHS}"
echo "Max Monitoring: ${TIMEOUT}"
echo "Command: ${COMMAND}"
echo "======================================================================"
echo ""
# Deploy pod with monitoring and auto-stop
python3 scripts/runpod_deploy.py \
--gpu-type "${GPU_TYPE}" \
--image "${IMAGE}" \
--command "${COMMAND}" \
--monitor \
--auto-stop \
--timeout "${TIMEOUT}" \
--monitor-interval 15
echo ""
echo "======================================================================"
echo "Deployment Complete!"
echo "======================================================================"
echo "Results will be saved to: /runpod-volume/ml_training/"
echo "Check S3 bucket for outputs: s3://se3zdnb5o4/ml_training/"
echo "======================================================================"