Parcourir la source

update hyperparams

Eric Wang il y a 3 ans
Parent
commit
648af26073
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      finetune.py

+ 2 - 2
finetune.py

@@ -62,8 +62,8 @@ def generate_prompt(data_point):
 MICRO_BATCH_SIZE = 4  # this could actually be 5 but i like powers of 2
 BATCH_SIZE = 128
 GRADIENT_ACCUMULATION_STEPS = BATCH_SIZE // MICRO_BATCH_SIZE
-EPOCHS = 3  # from the result
-LEARNING_RATE = 2e-5  # also from the result
+EPOCHS = 1  # we don't need 3 tbh
+LEARNING_RATE = 3e-4  # the karpathy constant
 CUTOFF_LEN = 256  # 256 accounts for about 96% of the data
 
 data = data.shuffle().map(