Skip to content

Commit 3080b9e

Browse files
committed
test
1 parent 18fe024 commit 3080b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pretrain/shakespeare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
grad_clip = 1.0
4343

4444
# For shakespeare, choose smaller block size than vanilla LLaMA
45-
block_size = 1024
45+
block_size = 128
4646

4747

4848
def main() -> None:
4949
auto_wrap_policy = partial(transformer_auto_wrap_policy, transformer_layer_cls={Block})
5050
strategy = FSDPStrategy(auto_wrap_policy=auto_wrap_policy, activation_checkpointing=Block, limit_all_gathers=True)
5151

52-
fabric = L.Fabric(accelerator="cuda", devices=4, precision="bf16-mixed", strategy=strategy)
52+
fabric = L.Fabric(accelerator="cuda", devices=1, precision="bf16-true", strategy=strategy)
5353
fabric.launch()
5454
fabric.seed_everything(1337 + fabric.global_rank)
5555

0 commit comments

Comments
 (0)