Spaces:
Paused
Paused
File size: 2,572 Bytes
5551585 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# WandB Configuration for Medical VQA Training Monitoring
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
## QUICK START:
### 1. Create WandB Account
Go to: https://wandb.ai/
Sign up with GitHub or Email
### 2. Get API Key
Go to: https://wandb.ai/settings/profile
Copy your API key
### 3. Set Environment Variable
export WANDB_API_KEY="your_api_key_here"
# Or in Jupyter:
import os
os.environ['WANDB_API_KEY'] = 'your_api_key_here'
### 4. Run Training
python train_medical.py --variant A1
# Automatically logs to WandB!
## WHAT GETS LOGGED:
β
Training Metrics (per epoch):
- train_loss
- train_accuracy
- train_bleu
- train_rouge
- train_bertscore
β
Validation Metrics (per epoch):
- val_loss
- val_accuracy
- val_bleu
- val_rouge
- val_bertscore
β
Model Info:
- Number of parameters
- Model architecture
- Config settings
β
Hardware:
- GPU usage
- Memory
- Training time
β
Learning Rate:
- Current LR per epoch
- Warmup schedule
## MONITORING DASHBOARD:
View live at: https://wandb.ai/QuangVoAI/MedicalVQA-Vietnam
Features:
- Real-time loss graphs
- Metric comparison across variants
- Training progress
- System resource monitoring
- Hyperparameter tracking
- Model checkpoints
## ADVANCED:
Save Checkpoints to WandB:
wandb.save('checkpoint.pt')
Log Custom Metrics:
wandb.log({'custom_metric': value, 'epoch': epoch})
Compare Models:
Visit: https://wandb.ai/QuangVoAI/MedicalVQA-Vietnam/reports
## OFFLINE MODE:
If you don't have internet:
export WANDB_MODE=offline
python train_medical.py --variant A1
# Saves locally, can sync later
## TIPS:
1. Set descriptive run names:
wandb.init(..., name="A2_50epochs_final")
2. Add tags for easy filtering:
wandb.init(..., tags=["production", "50-epochs"])
3. Create reports with charts:
Use WandB UI to create custom reports
4. Compare multiple runs:
Group runs by config/variant
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|