diff --git a/docker/Makefile b/docker/Makefile index 11642bf0..fda69fe6 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -1,8 +1,8 @@ -bench = rlhf-single -# bench = lightning +# bench = rlhf-single +bench = lightning hpu: git add --all @@ -12,5 +12,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 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 --select $(bench)'