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 13e8c6c commit bd8b473
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@


# bench = rlhf-single
bench = lightning -- exclude lightning-gpus
bench = "lightning"
args = "--exclude lightning-gpus"

hpu:
git add --all
Expand All @@ -12,5 +13,5 @@ hpu:
# docker system prune -a -f
# docker image prune -a -f
docker build --build-arg BENCH=$(bench) --build-arg CACHEBUST=`git rev-parse hpu` -f Dockerfile-hpu -t dockerfile-hpu .
docker run -it --runtime=habana -e PT_HPU_LAZY_MODE=0 -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --shm-size 50G --cap-add=sys_nice --net=host dockerfile-hpu:latest bash -c '. $$MILABENCH_VENV/bin/activate && milabench install --use-current-env --select $(bench) && pip uninstall torch torchvision torchaudio -y && milabench prepare --use-current-env --select $(bench) && milabench run --use-current-env --select $(bench)'
docker run -it --runtime=habana -e PT_HPU_LAZY_MODE=0 -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --shm-size 50G --cap-add=sys_nice --net=host dockerfile-hpu:latest bash -c '. $$MILABENCH_VENV/bin/activate && milabench install --use-current-env --select $(bench) && pip uninstall torch torchvision torchaudio -y && milabench prepare --use-current-env --select $(bench) && milabench run --use-current-env $(args) --select $(bench)'

0 comments on commit bd8b473

Please sign in to comment.