remove gradient accumulation

This commit is contained in:
YannAhlgrim
2026-07-08 11:39:00 +02:00
parent 372033a4d6
commit 733c8a1bd1
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ grid:
optimization.weight_decay: [5.0e-4, 0]
optimization.momentum: [0.9]
optimization.lr_schedule: [cosine]
optimization.gradient_accumulation_steps: [8, 16, 32, 64]
data.batch_size: [16]
optimization.gradient_accumulation_steps: [1]
data.batch_size: [128, 256, 512, 1024]
meta.representation_type: [last_avgpool, last4_avgpool_concat]
meta.head_type: [linear, bn_linear]
+2 -2
View File
@@ -12,7 +12,7 @@ meta:
use_gradient_checkpointing: true
data:
batch_size: 16
batch_size: 256
root_path: ./wilds_data
num_workers: 10
pin_mem: true
@@ -33,7 +33,7 @@ optimization:
lr: 0.001
weight_decay: 5.0e-4
lr_schedule: cosine
gradient_accumulation_steps: 16
gradient_accumulation_steps: 1
final_lr: 0.0
early_stopping:
enabled: true
+2 -2
View File
@@ -10,7 +10,7 @@ meta:
head_type: bn_linear
data:
batch_size: 16
batch_size: 512
root_path: ./wilds_data
num_workers: 10
pin_mem: true
@@ -31,7 +31,7 @@ optimization:
lr: 0.001
weight_decay: 5.0e-4
lr_schedule: cosine
gradient_accumulation_steps: 32
gradient_accumulation_steps: 1
final_lr: 0.0
early_stopping:
enabled: true
+2 -2
View File
@@ -11,7 +11,7 @@ meta:
head_type: linear
data:
batch_size: 16
batch_size: 1024
root_path: ./wilds_data
num_workers: 10
pin_mem: true
@@ -32,7 +32,7 @@ optimization:
lr: 0.01
weight_decay: 0
lr_schedule: cosine
gradient_accumulation_steps: 64
gradient_accumulation_steps: 1
final_lr: 0.0
early_stopping:
enabled: true
+2 -2
View File
@@ -11,7 +11,7 @@ meta:
head_type: bn_linear
data:
batch_size: 16
batch_size: 512
root_path: ./wilds_data
num_workers: 10
pin_mem: true
@@ -32,7 +32,7 @@ optimization:
lr: 0.001
weight_decay: 5.0e-4
lr_schedule: cosine
gradient_accumulation_steps: 32
gradient_accumulation_steps: 1
final_lr: 0.0
early_stopping:
enabled: true
+2 -2
View File
@@ -10,7 +10,7 @@ meta:
head_type: bn_linear
data:
batch_size: 16
batch_size: 1024
root_path: ./wilds_data
num_workers: 10
pin_mem: true
@@ -31,7 +31,7 @@ optimization:
lr: 0.01
weight_decay: 5.0e-4
lr_schedule: cosine
gradient_accumulation_steps: 64
gradient_accumulation_steps: 1
final_lr: 0.0
early_stopping:
enabled: true
+2 -2
View File
@@ -12,7 +12,7 @@ meta:
use_gradient_checkpointing: true
data:
batch_size: 64
batch_size: 512
root_path: ./wilds_data
num_workers: 10
pin_mem: true
@@ -33,7 +33,7 @@ optimization:
lr: 0.001
weight_decay: 0
lr_schedule: cosine
gradient_accumulation_steps: 8
gradient_accumulation_steps: 1
final_lr: 0.0
early_stopping:
enabled: true