Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 9, 2024
1 parent e1cac26 commit ec1131a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 3 additions & 6 deletions benchmarks/lightning/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,14 @@ def main():
observer, monitor = prepare_voir()
loader = observer.loader(imagenet_dataloader(args, model, rank, world_size))

# alueError: The `HPUAccelerator` can only be used with a `SingleHPUStrategy` or `HPUParallelStrategy`, found DDPStrategy.

# from pytorch_lightning.strategies import HPUParallelStrategy
from lightning_habana import HPUParallelStrategy
# ValueError: The `HPUAccelerator` can only be used with a `SingleHPUStrategy` or `HPUParallelStrategy`, found DDPStrategy.

# train model
trainer = L.Trainer(
accelerator="hpu",
accelerator="auto",
devices=n,
num_nodes=nnodes,
strategy=HPUParallelStrategy(),
strategy="auto",
max_epochs=args.epochs,
precision="bf16-mixed",
enable_checkpointing=False,
Expand Down
3 changes: 2 additions & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@



bench = rlhf-single
# bench = rlhf-single
bench = lightning

hpu:
git add --all
Expand Down

0 comments on commit ec1131a

Please sign in to comment.