Files
foxhunt/archive/scripts/terminate_hyperopt_pods.sh
jgrusewski 2df1ea92e1 feat(ml): WAVE 29 DQN Codebase Cleanup & Refactoring Campaign
BREAKING CHANGES:
- Removed orphaned dqn.rs monolithic trainer (4,975 lines)
- Removed orphaned dqn_ensemble.rs module (816 lines)
- Removed orphaned tft.rs and tft_complete_int8_integration_test.rs
- TFT trainer split into modular directory structure

DQN Module Refactoring:
- Split trainers/dqn.rs into modular structure (config.rs, statistics.rs, trainer.rs)
- Fixed hyperopt 39D search space (continuous params only)
- Boolean flags (use_dueling, use_double_dqn, use_per, use_noisy_nets) are now FIXED architectural decisions
- use_distributional defaults to false (Candle BUG #36 - scatter_add gradient issues)

Clean Module Structure:
- ml/src/trainers/dqn/ directory with proper mod.rs exports
- ml/src/trainers/tft/ directory with config.rs, types.rs, model.rs, trainer.rs, tests.rs
- All P0 features validated: TD-error clamping, batch diversity, LR scheduler, priority staleness

Documentation:
- Added comprehensive docs in docs/codebase-cleanup/
- ADR-001 for DQN refactoring decisions
- Rainbow DQN component matrix and quick reference guides

Build Status: Compiles with zero errors

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 23:46:13 +01:00

48 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Terminate both hyperopt pods
source .env.runpod
DQN_POD_ID="dy2bn5ninzaxma"
PPO_POD_ID="dytpb1mcqwj54t"
echo "========================================="
echo "TERMINATING HYPEROPT PODS"
echo "========================================="
echo ""
echo "WARNING: This will terminate both hyperopt pods"
echo " DQN: ${DQN_POD_ID}"
echo " PPO: ${PPO_POD_ID}"
echo ""
read -p "Continue? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Cancelled."
exit 1
fi
# GraphQL mutation to terminate pods
MUTATION=$(cat <<EOF
mutation {
podTerminate(input: {podId: "${DQN_POD_ID}"})
podTerminate(input: {podId: "${PPO_POD_ID}"})
}
EOF
)
echo "Terminating DQN pod..."
curl -s -X POST https://api.runpod.io/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${RUNPOD_API_KEY}" \
-d "{\"query\": $(echo "mutation { podTerminate(input: {podId: \"${DQN_POD_ID}\"}) }" | jq -Rs .)}" | jq
echo ""
echo "Terminating PPO pod..."
curl -s -X POST https://api.runpod.io/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${RUNPOD_API_KEY}" \
-d "{\"query\": $(echo "mutation { podTerminate(input: {podId: \"${PPO_POD_ID}\"}) }" | jq -Rs .)}" | jq
echo ""
echo "✅ Termination requests sent"
echo ""