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 e780b1d commit 109d3db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions benchmarks/lightning/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
import lightning as L
import torchvision.models as torchvision_models

# HPU fix
os.environ["RANK"] = os.getenv("RANK","-1")
os.environ["LOCAL_RANK"] = os.getenv("LOCAL_RANK","-1")
os.environ["WORLD_SIZE"] = os.getenv("WORLD_SIZE", "1")
os.environ["LOCAL_WORLD_SIZE"] = os.getenv("LOCAL_WORLD_SIZE", "1")


from benchmate.dataloader import imagenet_dataloader, dataloader_arguments


Expand Down Expand Up @@ -89,8 +82,6 @@ def main():
observer, monitor = prepare_voir()
loader = observer.loader(imagenet_dataloader(args, model, rank, world_size))

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

# train model
trainer = L.Trainer(
accelerator="auto",
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# bench = rlhf-single
bench = "lightning"
lazy = 0
lazy = 1

hpu:
git add --all
Expand Down

0 comments on commit 109d3db

Please sign in to comment.