Skip to content

Commit

Permalink
default BS=9 in handcode_opt bert (tinygrad#6783)
Browse files Browse the repository at this point in the history
using 54 for 6 gpus now, and 2 is not a good default
  • Loading branch information
chenyuxyz authored Sep 27, 2024
1 parent 9a3f6f3 commit 2fc2689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/handcode_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_sched_bert():
optim = nn.optim.LAMB(nn.state.get_parameters(mdl))

# fake data
BS = getenv("BS", 2)
BS = getenv("BS", 9)
input_ids = Tensor.empty((BS, 512), dtype=dtypes.float32)
segment_ids = Tensor.empty((BS, 512), dtype=dtypes.float32)
attention_mask = Tensor.empty((BS, 512), dtype=dtypes.default_float)
Expand Down

0 comments on commit 2fc2689

Please sign in to comment.