remove gradient accumulation
This commit is contained in:
@@ -9,8 +9,8 @@ grid:
|
|||||||
optimization.weight_decay: [5.0e-4, 0]
|
optimization.weight_decay: [5.0e-4, 0]
|
||||||
optimization.momentum: [0.9]
|
optimization.momentum: [0.9]
|
||||||
optimization.lr_schedule: [cosine]
|
optimization.lr_schedule: [cosine]
|
||||||
optimization.gradient_accumulation_steps: [8, 16, 32, 64]
|
optimization.gradient_accumulation_steps: [1]
|
||||||
data.batch_size: [16]
|
data.batch_size: [128, 256, 512, 1024]
|
||||||
meta.representation_type: [last_avgpool, last4_avgpool_concat]
|
meta.representation_type: [last_avgpool, last4_avgpool_concat]
|
||||||
meta.head_type: [linear, bn_linear]
|
meta.head_type: [linear, bn_linear]
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ meta:
|
|||||||
use_gradient_checkpointing: true
|
use_gradient_checkpointing: true
|
||||||
|
|
||||||
data:
|
data:
|
||||||
batch_size: 16
|
batch_size: 256
|
||||||
root_path: ./wilds_data
|
root_path: ./wilds_data
|
||||||
num_workers: 10
|
num_workers: 10
|
||||||
pin_mem: true
|
pin_mem: true
|
||||||
@@ -33,7 +33,7 @@ optimization:
|
|||||||
lr: 0.001
|
lr: 0.001
|
||||||
weight_decay: 5.0e-4
|
weight_decay: 5.0e-4
|
||||||
lr_schedule: cosine
|
lr_schedule: cosine
|
||||||
gradient_accumulation_steps: 16
|
gradient_accumulation_steps: 1
|
||||||
final_lr: 0.0
|
final_lr: 0.0
|
||||||
early_stopping:
|
early_stopping:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ meta:
|
|||||||
head_type: bn_linear
|
head_type: bn_linear
|
||||||
|
|
||||||
data:
|
data:
|
||||||
batch_size: 16
|
batch_size: 512
|
||||||
root_path: ./wilds_data
|
root_path: ./wilds_data
|
||||||
num_workers: 10
|
num_workers: 10
|
||||||
pin_mem: true
|
pin_mem: true
|
||||||
@@ -31,7 +31,7 @@ optimization:
|
|||||||
lr: 0.001
|
lr: 0.001
|
||||||
weight_decay: 5.0e-4
|
weight_decay: 5.0e-4
|
||||||
lr_schedule: cosine
|
lr_schedule: cosine
|
||||||
gradient_accumulation_steps: 32
|
gradient_accumulation_steps: 1
|
||||||
final_lr: 0.0
|
final_lr: 0.0
|
||||||
early_stopping:
|
early_stopping:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ meta:
|
|||||||
head_type: linear
|
head_type: linear
|
||||||
|
|
||||||
data:
|
data:
|
||||||
batch_size: 16
|
batch_size: 1024
|
||||||
root_path: ./wilds_data
|
root_path: ./wilds_data
|
||||||
num_workers: 10
|
num_workers: 10
|
||||||
pin_mem: true
|
pin_mem: true
|
||||||
@@ -32,7 +32,7 @@ optimization:
|
|||||||
lr: 0.01
|
lr: 0.01
|
||||||
weight_decay: 0
|
weight_decay: 0
|
||||||
lr_schedule: cosine
|
lr_schedule: cosine
|
||||||
gradient_accumulation_steps: 64
|
gradient_accumulation_steps: 1
|
||||||
final_lr: 0.0
|
final_lr: 0.0
|
||||||
early_stopping:
|
early_stopping:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ meta:
|
|||||||
head_type: bn_linear
|
head_type: bn_linear
|
||||||
|
|
||||||
data:
|
data:
|
||||||
batch_size: 16
|
batch_size: 512
|
||||||
root_path: ./wilds_data
|
root_path: ./wilds_data
|
||||||
num_workers: 10
|
num_workers: 10
|
||||||
pin_mem: true
|
pin_mem: true
|
||||||
@@ -32,7 +32,7 @@ optimization:
|
|||||||
lr: 0.001
|
lr: 0.001
|
||||||
weight_decay: 5.0e-4
|
weight_decay: 5.0e-4
|
||||||
lr_schedule: cosine
|
lr_schedule: cosine
|
||||||
gradient_accumulation_steps: 32
|
gradient_accumulation_steps: 1
|
||||||
final_lr: 0.0
|
final_lr: 0.0
|
||||||
early_stopping:
|
early_stopping:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ meta:
|
|||||||
head_type: bn_linear
|
head_type: bn_linear
|
||||||
|
|
||||||
data:
|
data:
|
||||||
batch_size: 16
|
batch_size: 1024
|
||||||
root_path: ./wilds_data
|
root_path: ./wilds_data
|
||||||
num_workers: 10
|
num_workers: 10
|
||||||
pin_mem: true
|
pin_mem: true
|
||||||
@@ -31,7 +31,7 @@ optimization:
|
|||||||
lr: 0.01
|
lr: 0.01
|
||||||
weight_decay: 5.0e-4
|
weight_decay: 5.0e-4
|
||||||
lr_schedule: cosine
|
lr_schedule: cosine
|
||||||
gradient_accumulation_steps: 64
|
gradient_accumulation_steps: 1
|
||||||
final_lr: 0.0
|
final_lr: 0.0
|
||||||
early_stopping:
|
early_stopping:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ meta:
|
|||||||
use_gradient_checkpointing: true
|
use_gradient_checkpointing: true
|
||||||
|
|
||||||
data:
|
data:
|
||||||
batch_size: 64
|
batch_size: 512
|
||||||
root_path: ./wilds_data
|
root_path: ./wilds_data
|
||||||
num_workers: 10
|
num_workers: 10
|
||||||
pin_mem: true
|
pin_mem: true
|
||||||
@@ -33,7 +33,7 @@ optimization:
|
|||||||
lr: 0.001
|
lr: 0.001
|
||||||
weight_decay: 0
|
weight_decay: 0
|
||||||
lr_schedule: cosine
|
lr_schedule: cosine
|
||||||
gradient_accumulation_steps: 8
|
gradient_accumulation_steps: 1
|
||||||
final_lr: 0.0
|
final_lr: 0.0
|
||||||
early_stopping:
|
early_stopping:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user