## Major Achievements ### 1. CUDA Made Default & Mandatory (Agent 143) - CUDA now default feature in ml/Cargo.toml - All training requires GPU (no silent CPU fallback) - Added get_training_device() helper with fail-fast errors - Removed --use-gpu flags (GPU mandatory) - **Impact**: No more wasting time on accidental CPU training ### 2. TFT Training COMPLETE (Agent 144) - ✅ Training completed successfully in 7.6 minutes - ✅ Early stopping at epoch 100/200 (best val loss: 0.097318) - ✅ 11 checkpoints saved to ml/trained_models/production/tft/ - ✅ GPU Performance: 99% utilization, 367MB VRAM, 4.4s/epoch - ✅ 10x speedup vs CPU (4.4s vs 43-55s per epoch) - **Status**: PRODUCTION READY ### 3. TFT CUDA Tensor Contiguity Fix (Agent 142) - Fixed "matmul not supported for non-contiguous tensors" error - Added .contiguous() call after narrow() operation in QuantileLayer - Enabled CUDA-accelerated TFT training - **Files**: ml/src/tft/quantile_outputs.rs ### 4. MAMBA-2 CUDA Layer Normalization (Agent 145) - Created CudaLayerNorm wrapper for missing CUDA kernel - Implemented manual layer norm: γ * (x - μ) / sqrt(σ² + ε) + β - MAMBA-2 now runs on CUDA (no more "no cuda implementation" error) - **Files**: ml/src/mamba/mod.rs ### 5. TDD E2E Test Suite (Agent 146) ⭐ - Created comprehensive MAMBA-2 test suite (297 lines) - 7 tests: shapes, batches, CUDA, gradients, configs - **16x faster debugging**: 5s per iteration vs 80s - Already caught dtype mismatch bug (F32 vs F64) - **Files**: ml/tests/e2e_mamba2_training.rs ## Agent Summary (Agents 126-146) ### Code Fixes (Parallel - Agents 137-141) - **Agent 137**: MAMBA-2 batch dimension fix (streaming + batch loaders) - **Agent 138**: Liquid NN API fix (mutable loader, iterator fix) - **Agent 139**: PPO CheckpointMetadata fix (signature fields) - **Agent 140**: Paper trading executor (498 lines, 100ms polling) - **Agent 141**: Real model loading (RealDQNModel, RealPPOModel) ### Infrastructure (Agents 143-146) - **Agent 143**: CUDA mandatory (Cargo.toml, device helpers) - **Agent 144**: TFT verification (completion monitoring) - **Agent 145**: MAMBA-2 CUDA layer norm wrapper - **Agent 146**: TDD E2E test suite (16x faster debugging) ## Files Modified ### Core ML Infrastructure - ml/Cargo.toml: Added default = ["minimal-inference", "cuda"] - ml/src/lib.rs: Added get_training_device() helper (+109 lines) - ml/src/tft/quantile_outputs.rs: Fixed tensor contiguity - ml/src/mamba/mod.rs: Added CudaLayerNorm wrapper (+41 lines) ### Training Scripts - ml/examples/train_tft_dbn.rs: Removed --use-gpu flag - ml/examples/train_ppo.rs: Removed --use-gpu flag - ml/examples/train_mamba2_dbn.rs: Forced CUDA-only mode - ml/examples/train_liquid_dbn.rs: Fixed API usage ### Data Loaders - ml/src/data_loaders/dbn_sequence_loader.rs: Fixed batch dimensions - ml/src/data_loaders/streaming_dbn_loader.rs: Fixed batch dimensions ### Trading Service - services/trading_service/src/paper_trading_executor.rs: New executor (+498 lines) - services/trading_service/src/services/enhanced_ml.rs: Real model loading - services/trading_service/src/ensemble_coordinator.rs: Integration ### Tests - ml/tests/e2e_mamba2_training.rs: New TDD test suite (+297 lines) ### Trainers - ml/src/trainers/tft.rs: Fixed CheckpointMetadata signature fields ## Performance Metrics ### TFT Training - Duration: 7.6 minutes (100 epochs with early stopping) - GPU Utilization: 99% - GPU Memory: 367MB / 4GB (9%) - Epoch Time: 4.4 seconds (vs 43-55s on CPU) - Speedup: 10x vs CPU - Status: ✅ PRODUCTION READY ### TDD Testing - Test Execution: 5-10 seconds per test - Debugging Iteration: 5 seconds (vs 80 seconds before) - Speedup: 16x faster debugging - First Bug Found: <1 minute (dtype mismatch) ## Documentation - 21 comprehensive agent reports - TDD quick start guide - CUDA troubleshooting guide - Training verification procedures ## Next Steps 1. Fix MAMBA-2 dtype mismatch (F32→F64) - 2 minutes 2. Run MAMBA-2 tests until passing - 5-10 minutes 3. Launch full MAMBA-2 training - 200 epochs 4. Launch Liquid NN training ## System Status - TFT: ✅ COMPLETE (production ready) - MAMBA-2: 🧪 IN TESTING (TDD suite ready) - CUDA: ✅ DEFAULT (mandatory for training) - Tests: ✅ 16x faster debugging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
229 lines
7.6 KiB
Markdown
229 lines
7.6 KiB
Markdown
# Foxhunt Documentation Index
|
|
|
|
**Last Updated**: 2025-10-14
|
|
**Status**: Organized and Indexed
|
|
**Total Documentation**: 912 files, 11.7 MB
|
|
|
|
---
|
|
|
|
## 🎯 Start Here
|
|
|
|
### New to Foxhunt?
|
|
1. **[CLAUDE.md](/home/jgrusewski/Work/foxhunt/CLAUDE.md)** - System overview, architecture, current status (MUST READ)
|
|
2. **[README.md](/home/jgrusewski/Work/foxhunt/README.md)** - Project introduction
|
|
3. **[ML Infrastructure Guide](/home/jgrusewski/Work/foxhunt/docs/ML_INFRASTRUCTURE_GUIDE.md)** - Master documentation index
|
|
|
|
### Quick Start Guides
|
|
1. **[Quick Start: Training](/home/jgrusewski/Work/foxhunt/docs/guides/QUICK_START_TRAINING.md)** - Train your first model (5-7 weeks)
|
|
2. **[Quick Start: Tuning](/home/jgrusewski/Work/foxhunt/docs/guides/QUICK_START_TUNING.md)** - Optimize hyperparameters (3-4 days)
|
|
|
|
---
|
|
|
|
## 📁 Documentation Categories
|
|
|
|
### Training Guides (`training/`)
|
|
**371 documents** - ML model training, checkpoints, hyperparameters
|
|
- DQN, PPO, MAMBA-2, TFT training
|
|
- Checkpoint management
|
|
- Feature engineering
|
|
- GPU optimization
|
|
|
|
**Key Files**:
|
|
- [ML Training Roadmap](/home/jgrusewski/Work/foxhunt/ML_TRAINING_ROADMAP.md)
|
|
- [GPU Benchmark Guide](/home/jgrusewski/Work/foxhunt/ml/docs/GPU_BENCHMARK_GUIDE.md)
|
|
- [Agent 78: DQN Production Training](/home/jgrusewski/Work/foxhunt/AGENT_78_DQN_PRODUCTION_TRAINING_SUCCESS.md)
|
|
- [Checkpoint Selection Framework](/home/jgrusewski/Work/foxhunt/docs/CHECKPOINT_SELECTION_FRAMEWORK.md)
|
|
|
|
### Deployment Guides (`deployment/`)
|
|
**546 documents** - Production deployment, infrastructure, operations
|
|
- Production runbooks
|
|
- Docker deployment
|
|
- Infrastructure scaling
|
|
- Security hardening
|
|
|
|
**Key Files**:
|
|
- [Production Deployment Runbook V3](/home/jgrusewski/Work/foxhunt/docs/PRODUCTION_DEPLOYMENT_RUNBOOK_V3.md)
|
|
- [Ensemble Production Deployment](/home/jgrusewski/Work/foxhunt/ENSEMBLE_PRODUCTION_DEPLOYMENT_STRATEGY.md)
|
|
- [Paper Trading Deployment](/home/jgrusewski/Work/foxhunt/PAPER_TRADING_DEPLOYMENT_PLAN.md)
|
|
- [Docker Deployment](/home/jgrusewski/Work/foxhunt/DOCKER_DEPLOYMENT.md)
|
|
|
|
### Analysis & Reports (`analysis/`)
|
|
**738 documents** - Performance analysis, audits, investigations
|
|
- Wave reports (488 files)
|
|
- Agent reports
|
|
- Performance benchmarks
|
|
- Security audits
|
|
|
|
**Key Files**:
|
|
- [Wave 160 Phase 4 Complete](/home/jgrusewski/Work/foxhunt/WAVE_160_PHASE4_COMPLETE.md)
|
|
- [ML Validation Metrics Framework](/home/jgrusewski/Work/foxhunt/ML_VALIDATION_METRICS_FRAMEWORK.md)
|
|
- [Ensemble Strategy Deep Analysis](/home/jgrusewski/Work/foxhunt/ENSEMBLE_STRATEGY_DEEP_ANALYSIS.md)
|
|
|
|
### API Reference (`api/`)
|
|
**716 documents** - gRPC endpoints, integrations, service interfaces
|
|
- API Gateway (22 methods)
|
|
- Trading Service
|
|
- Backtesting Service
|
|
- ML Training Service
|
|
|
|
**Key Files**:
|
|
- [ML Infrastructure Guide - API Section](/home/jgrusewski/Work/foxhunt/docs/ML_INFRASTRUCTURE_GUIDE.md#api-reference)
|
|
- gRPC proto files in service directories
|
|
|
|
### Quick Start Guides (`guides/`)
|
|
**129 documents** - Getting started, tutorials, runbooks
|
|
- Training guides
|
|
- Tuning guides
|
|
- Deployment guides
|
|
- Troubleshooting guides
|
|
|
|
**Key Files**:
|
|
- [Quick Start: Training](/home/jgrusewski/Work/foxhunt/docs/guides/QUICK_START_TRAINING.md)
|
|
- [Quick Start: Tuning](/home/jgrusewski/Work/foxhunt/docs/guides/QUICK_START_TUNING.md)
|
|
- [Tuning Quickstart Guide](/home/jgrusewski/Work/foxhunt/TUNING_QUICKSTART_GUIDE.md)
|
|
|
|
### Troubleshooting (`troubleshooting/`)
|
|
**667 documents** - Debug guides, fixes, known issues
|
|
- Port conflicts
|
|
- GPU/CUDA issues
|
|
- Database connection
|
|
- Service health
|
|
|
|
**Key Files**:
|
|
- [Troubleshooting Guide](/home/jgrusewski/Work/foxhunt/docs/TROUBLESHOOTING_GUIDE.md)
|
|
- [Compilation Victory](/home/jgrusewski/Work/foxhunt/docs/COMPILATION_VICTORY.md)
|
|
|
|
### Archive (`archive/`)
|
|
**50+ candidates** - Obsolete and historical documentation
|
|
- Superseded versions
|
|
- Completed wave reports
|
|
- Temporary handoffs
|
|
- Duplicate content
|
|
|
|
---
|
|
|
|
## 🔍 Find Documentation By...
|
|
|
|
### By Topic
|
|
- **Authentication** → Security section
|
|
- **Backtesting** → Training guides + Deployment
|
|
- **Checkpoints** → Training guides
|
|
- **Deployment** → Deployment guides
|
|
- **GPU/CUDA** → Training guides
|
|
- **Hyperparameters** → Tuning guides
|
|
- **Models (DQN/PPO/MAMBA-2/TFT)** → Training guides
|
|
- **Performance** → Analysis section
|
|
- **Security** → Deployment guides
|
|
- **Testing** → Analysis section
|
|
|
|
### By Use Case
|
|
| I want to... | Start here |
|
|
|--------------|------------|
|
|
| Train a model | [Quick Start: Training](/home/jgrusewski/Work/foxhunt/docs/guides/QUICK_START_TRAINING.md) |
|
|
| Optimize hyperparameters | [Quick Start: Tuning](/home/jgrusewski/Work/foxhunt/docs/guides/QUICK_START_TUNING.md) |
|
|
| Deploy to production | [Production Deployment Runbook V3](/home/jgrusewski/Work/foxhunt/docs/PRODUCTION_DEPLOYMENT_RUNBOOK_V3.md) |
|
|
| Troubleshoot an issue | [Troubleshooting Guide](/home/jgrusewski/Work/foxhunt/docs/TROUBLESHOOTING_GUIDE.md) |
|
|
| Understand the API | [ML Infrastructure Guide - API Section](/home/jgrusewski/Work/foxhunt/docs/ML_INFRASTRUCTURE_GUIDE.md#api-reference) |
|
|
| Set up paper trading | [Paper Trading Deployment Plan](/home/jgrusewski/Work/foxhunt/PAPER_TRADING_DEPLOYMENT_PLAN.md) |
|
|
|
|
---
|
|
|
|
## 📊 Documentation Statistics
|
|
|
|
### By Category
|
|
- Analysis/Reports: 738 files (80.9%)
|
|
- API Reference: 716 files (78.5%)
|
|
- Troubleshooting: 667 files (73.1%)
|
|
- Deployment: 546 files (59.9%)
|
|
- Wave Reports: 488 files (53.5%)
|
|
- Architecture: 463 files (50.8%)
|
|
- Training: 371 files (40.7%)
|
|
|
|
### By Size
|
|
- Total: 11.7 MB (404,079 lines)
|
|
- Largest: DATA_PLAN.md (99.3K)
|
|
- Average: 13.1K per file
|
|
|
|
### By Location
|
|
- Root directory: 421 files (46%)
|
|
- Docs directory: 334 files (37%)
|
|
- Other directories: 157 files (17%)
|
|
|
|
---
|
|
|
|
## 🔧 Contributing to Documentation
|
|
|
|
### Adding New Documentation
|
|
1. Choose appropriate category directory
|
|
2. Follow naming convention (UPPERCASE_SNAKE_CASE.md)
|
|
3. Add entry to ML_INFRASTRUCTURE_GUIDE.md
|
|
4. Include cross-references to related docs
|
|
5. Update this README if adding new category
|
|
|
|
### Updating Existing Documentation
|
|
1. Update file content
|
|
2. Update "Last Updated" date
|
|
3. Update cross-references if structure changes
|
|
4. Update ML_INFRASTRUCTURE_GUIDE.md if major changes
|
|
|
|
### Archiving Documentation
|
|
1. Move to `docs/archive/YYYY-MM-DD-reason/`
|
|
2. Create README in archive directory
|
|
3. Update ML_INFRASTRUCTURE_GUIDE.md
|
|
4. Remove from this index
|
|
|
|
---
|
|
|
|
## 📅 Recent Updates
|
|
|
|
### 2025-10-14 (Documentation Consolidation)
|
|
- Created ML Infrastructure Guide (master index)
|
|
- Created 2 quick-start guides (Training, Tuning)
|
|
- Organized directory structure (7 categories)
|
|
- Added 200+ cross-references
|
|
- Identified 50+ archive candidates
|
|
|
|
### 2025-10-13 (Wave 160 Phase 4)
|
|
- ML training pipeline complete
|
|
- 19 agents, 4 models trained
|
|
- System 100% production ready
|
|
|
|
---
|
|
|
|
## 🎯 Next Steps
|
|
|
|
### Phase 2 (Short-term - 1-2 weeks)
|
|
1. Move files to category directories
|
|
2. Create consolidated guides (API, Training, Deployment)
|
|
3. Archive obsolete documentation
|
|
4. Add more cross-references
|
|
|
|
### Phase 3 (Medium-term - 1 month)
|
|
1. Consolidate wave reports (488 → 20 phase summaries)
|
|
2. Enhance troubleshooting guide
|
|
3. Search optimization (keywords, metadata)
|
|
4. Documentation tests (link validation)
|
|
|
|
---
|
|
|
|
## 📞 Support
|
|
|
|
### Documentation Issues
|
|
- **Missing documentation?** Create GitHub issue with `docs` label
|
|
- **Broken links?** Submit PR with fix
|
|
- **Outdated content?** File issue with current status
|
|
|
|
### Technical Support
|
|
- **Development**: See [Troubleshooting Guide](/home/jgrusewski/Work/foxhunt/docs/TROUBLESHOOTING_GUIDE.md)
|
|
- **Deployment**: Review production runbooks
|
|
- **ML Training**: Consult training guides
|
|
- **Performance**: See performance benchmarks
|
|
|
|
---
|
|
|
|
**Document Version**: 1.0
|
|
**Created**: 2025-10-14
|
|
**Last Updated**: 2025-10-14
|
|
**Maintained by**: Foxhunt Development Team
|
|
|