Upload 2 files
Browse files- curriculum_medium.yaml +81 -0
- final_model.pth +3 -0
curriculum_medium.yaml
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Curriculum Learning Configuration - MEDIUM MODEL
|
| 2 |
+
# Balanced configuration with good performance/memory trade-off
|
| 3 |
+
|
| 4 |
+
# Model configuration - BALANCED CAPACITY
|
| 5 |
+
model:
|
| 6 |
+
target_dim: 18 # Will be overridden based on dataset
|
| 7 |
+
is_unconditional: 0
|
| 8 |
+
timeemb: 256 # Increased from 128 → 256 (2x larger)
|
| 9 |
+
featureemb: 64 # Increased from 16 → 64 (4x larger)
|
| 10 |
+
target_strategy: "random"
|
| 11 |
+
use_aux_loss: False
|
| 12 |
+
aux_weight_order1: 0.4
|
| 13 |
+
aux_weight_order2: 0.4
|
| 14 |
+
aux_loss_normalize: False # CRITICAL FIX: Disable dangerous normalization
|
| 15 |
+
aux_loss_max_value: 2.0
|
| 16 |
+
|
| 17 |
+
# Training configuration
|
| 18 |
+
training:
|
| 19 |
+
seed: 1
|
| 20 |
+
batch_size: 256 # Reduced for stability with larger model
|
| 21 |
+
validation_split: 0.05
|
| 22 |
+
num_workers: 4
|
| 23 |
+
mask_generation_count: 100
|
| 24 |
+
gradient_clip: 0.5 # Tighter clipping to prevent gradient explosion
|
| 25 |
+
weight_decay: 1e-4 # CRITICAL FIX: Proper weight decay for Adam
|
| 26 |
+
ratio: 0.7
|
| 27 |
+
checkpoint_save_step: 10
|
| 28 |
+
use_mixed_precision: False # CRITICAL FIX: Disable mixed precision for stability
|
| 29 |
+
|
| 30 |
+
# Dataset configuration
|
| 31 |
+
dataset:
|
| 32 |
+
window_length: 100
|
| 33 |
+
split: 10
|
| 34 |
+
mask_ratio: 0.5
|
| 35 |
+
scale_factor: 1
|
| 36 |
+
|
| 37 |
+
# Curriculum Learning Parameters
|
| 38 |
+
curriculum:
|
| 39 |
+
phase1_epochs: 30
|
| 40 |
+
phase2_epochs: 30
|
| 41 |
+
|
| 42 |
+
# Phase 1: Easy - Reduced learning rates for gradient stability
|
| 43 |
+
mask_ratio_phase1_start: 0.1
|
| 44 |
+
mask_ratio_phase1_end: 0.3
|
| 45 |
+
noise_ratio_phase1_start: 0.0001
|
| 46 |
+
noise_ratio_phase1_end: 0.1
|
| 47 |
+
lr_phase1_start: 2e-4 # CRITICAL FIX: Conservative, stable LR
|
| 48 |
+
lr_phase1_end: 2e-4 # CRITICAL FIX: Fixed LR prevents momentum disruption
|
| 49 |
+
|
| 50 |
+
# Phase 2: Medium - Reduced learning rates for gradient stability
|
| 51 |
+
mask_ratio_phase2_start: 0.3
|
| 52 |
+
mask_ratio_phase2_end: 0.6
|
| 53 |
+
noise_ratio_phase2_start: 0.1
|
| 54 |
+
noise_ratio_phase2_end: 0.3
|
| 55 |
+
lr_phase2_start: 2e-4 # Keep consistent with phase 1
|
| 56 |
+
lr_phase2_end: 2e-4 # Keep consistent with phase 1
|
| 57 |
+
|
| 58 |
+
# Phase 3: Hard - Reduced learning rates for gradient stability
|
| 59 |
+
mask_ratio_phase3_start: 0.6
|
| 60 |
+
mask_ratio_phase3_end: 0.8
|
| 61 |
+
noise_ratio_phase3_start: 0.3
|
| 62 |
+
noise_ratio_phase3_end: 0.5
|
| 63 |
+
lr_phase3_start: 2e-4 # Keep consistent with phase 1
|
| 64 |
+
lr_phase3_end: 2e-4 # Keep consistent with phase 1
|
| 65 |
+
|
| 66 |
+
# Diffusion configuration - BALANCED CAPACITY
|
| 67 |
+
diffusion:
|
| 68 |
+
layers: 6 # Increased from 4 → 6 (1.5x more layers)
|
| 69 |
+
channels: 128 # Increased from 64 → 128 (2x larger)
|
| 70 |
+
nheads: 8 # Keep at 8 for divisibility (128/8 = 16)
|
| 71 |
+
diffusion_embedding_dim: 256 # Increased from 128 → 256 (2x larger)
|
| 72 |
+
beta_start: 0.0001
|
| 73 |
+
beta_end: 0.01
|
| 74 |
+
num_steps: 500
|
| 75 |
+
schedule: "linear"
|
| 76 |
+
|
| 77 |
+
# Expected parameter count: ~2.4M parameters (good balance)
|
| 78 |
+
# Fixes applied for gradient stability:
|
| 79 |
+
# - Reduced learning rates by 50% across all phases
|
| 80 |
+
# - Tighter gradient clipping (1.0 → 0.5)
|
| 81 |
+
# - Reduced batch size (384 → 256) for stability
|
final_model.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7c2c06ac290d5ad42c8528caaefea3e6e0cb3d77227d2eca79f81ee427811a5
|
| 3 |
+
size 29600287
|