philipstevens commited on
Commit
ac943b3
·
verified ·
1 Parent(s): 37e5dc6

Add HP sweep config for banking77

Browse files
Files changed (1) hide show
  1. sweeps/banking77_lr_rank.yaml +32 -0
sweeps/banking77_lr_rank.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # banking77 hyperparameter sweep — find best (learning_rate, lora_rank) on
2
+ # the new stratified+5000 train pool. Six trials, ranked by held-out val
3
+ # eval_loss. Same template as configs/sweeps/fpb_lr_rank.yaml; each task gets
4
+ # its own sweep because the (data-size × num-classes × prompt-length) shape
5
+ # differs enough that the FPB winner (lr=1e-4, rank=8) is not transferable.
6
+ #
7
+ # Run:
8
+ # python scripts/prepare_datasets.py --task banking77 # if banking77.yaml changed
9
+ # python scripts/run_sweep.py --config configs/sweeps/banking77_lr_rank.yaml
10
+ #
11
+ # Axis choices
12
+ # lr: 3 points spanning the FPB winner (1e-4) up an order of magnitude;
13
+ # 77 classes + 5000 rows + larger prompts (1024 seq_len) may want
14
+ # different magnitudes than FPB's 3-class setup.
15
+ # lora_rank: 4 and 8 — both below the qwen3-8b default of 16. The default
16
+ # isn't included because the FPB baseline showed rank=16 overfit on a
17
+ # similar data-to-classes ratio; here we expect the same and want to
18
+ # see if rank=4 or 8 is the sweet spot.
19
+ # alpha: pinned to the model default (32) by the sweep. The chosen
20
+ # lora_overrides.alpha is then promoted post-sweep paired to the winning
21
+ # rank (alpha = 2 × rank to keep alpha/r consistent with the model
22
+ # baseline's alpha/r = 2).
23
+ name: banking77_lr_rank
24
+ model: qwen3-8b
25
+ task: banking77
26
+ smoke_test: false
27
+
28
+ search: grid
29
+
30
+ params:
31
+ learning_rate: [2.0e-5, 5.0e-5, 1.0e-4]
32
+ lora_rank: [4, 8]