forked from cybertronai/imagenet18_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
30 lines (26 loc) · 1.14 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# ImageNet training setup script for pytorch.imagenet.source.v7 AMI
# That image is a fork of Ubuntu DLAMI v12 with "pytorch_source" conda env added which is a clone of pytorch_p36 with
# the following modifications:
# - pip install tqdm
# - pip install tensorboardX
# - version of PyTorch built from master around August
source activate pytorch_source
# index file used to speed up evaluation
pushd ~/data/imagenet
wget --no-clobber https://s3.amazonaws.com/yaroslavvb/sorted_idxar.p
popd
pip uninstall pillow -y
CC="cc -mavx2" pip install -U pillow-simd
# setting network settings -
# https://github.com/aws-samples/deep-learning-models/blob/5f00600ebd126410ee5a85ddc30ff2c4119681e4/hpc-cluster/prep_client.sh
sudo sysctl -w net.core.rmem_max=16777216
sudo sysctl -w net.core.wmem_max=16777216
sudo sysctl -w net.ipv4.tcp_rmem='4096 87380 16777216'
sudo sysctl -w net.ipv4.tcp_wmem='4096 65536 16777216'
sudo sysctl -w net.core.netdev_max_backlog=30000
sudo sysctl -w net.core.rmem_default=16777216
sudo sysctl -w net.core.wmem_default=16777216
sudo sysctl -w net.ipv4.tcp_mem='16777216 16777216 16777216'
sudo sysctl -w net.ipv4.route.flush=1