<commit_before># Start with CUDA Torch base image
FROM kaixhin/cuda-torch
MAINTAINER <NAME> <<EMAIL>>

# Move cuDNN over and extract
ADD cudnn*.tgz root/
# Install cuDNN
RUN cd root/cudnn* && \
  cp *.h /usr/local/cuda/include/ && \
  cp *.so* /usr/local/cuda/lib64/ && \
  cp *.a /usr/local/cuda/lib64/

# Install Folly dependencies
RUN apt-get update && apt-get install -y \
  g++ \
  automake \
  autoconf \
  autoconf-archive \
  libtool \
  libboost-all-dev \
  libevent-dev \
  libdouble-conversion-dev \
  libgoogle-glog-dev \
  libgflags-dev \
  liblz4-dev \
  liblzma-dev \
  libsnappy-dev \
  make \
  zlib1g-dev \
  binutils-dev \
  libjemalloc-dev \
  libssl-dev \
  libiberty-dev

# Clone Folly repo and move into it
RUN cd root && git clone https://github.com/facebook/folly.git && cd folly/folly && \
# Set up build
  autoreconf -ivf && \
  ./configure && \
# Make
  make && \
# Make install
  make install

# Install FBThrift dependencies
RUN apt-get install -y \
  flex \
  bison \
  libkrb5-dev \
  libsasl2-dev \
  libnuma-dev \
  pkg-config \
  libssl-dev

# Clone FBThrift repo and move into it
RUN cd root && git clone https://github.com/facebook/fbthrift.git && cd fbthrift/thrift && \
# Build
  ./deps.sh

# Clone TH++ repo and move into it
RUN cd root && git clone https://github.com/facebook/thpp.git && cd thpp/thpp && \
# Add Torch to CMake path<commit_msg>Remove Folly (included in FBThrift build script)<commit_after># Start with CUDA Torch base image
FROM kaixhin/cuda-torch
MAINTAINER <NAME> <<EMAIL>>

# Move cuDNN over and extract
ADD cudnn*.tgz root/
# Install cuDNN
#RUN cd root/cudnn* && \
  cp *.h /usr/local/cuda/include/ && \
  cp *.so* /usr/local/cuda/lib64/ && \
  cp *.a /usr/local/cuda/lib64/

# Clone FBThrift repo and move into it
RUN cd root && git clone https://github.com/facebook/fbthrift.git && cd fbthrift/thrift && \
# Install dependencies and build
  ./deps.sh

# Clone TH++ repo and move into it
RUN cd root && git clone https://github.com/facebook/thpp.git && cd thpp/thpp && \
# Add Torch to CMake path
{'fraction_non_alphanumeric': 0.131617289946576, 'fraction_numerical': 0.005828071879553181, 'mean_word_length': 2.786764705882353, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3364792', 'n_tokens_mistral': 794, 'n_tokens_neox': 774, 'n_words': 219}