Skip to content

Instantly share code, notes, and snippets.

@anupambhatnagar
Last active July 27, 2023 20:05
Show Gist options
  • Save anupambhatnagar/10b64cfab72145cbad33696332f5a1c7 to your computer and use it in GitHub Desktop.
Save anupambhatnagar/10b64cfab72145cbad33696332f5a1c7 to your computer and use it in GitHub Desktop.
Dockerfile for Dynolog and HTA demo
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
RUN apt update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y curl tmux wget
# install rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="$HOME/.cargo/env:${PATH}"
# install dynolog
RUN wget https://github.com/facebookincubator/dynolog/releases/download/v0.2.2/dynolog_0.2.2-0-amd64.deb
RUN dpkg -i dynolog_0.2.2-0-amd64.deb
RUN wget https://raw.githubusercontent.com/facebookincubator/dynolog/main/scripts/pytorch/xor.py
# install HTA
RUN pip install HolisticTraceAnalysis
WORKDIR /workspace
ENV KINETO_USE_DAEMON=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment