-
Notifications
You must be signed in to change notification settings - Fork 5
/
settings.py
54 lines (40 loc) · 961 Bytes
/
settings.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
from __future__ import print_function
import logging
import socket
DEBUG =0
GPU_CONSTRUCTION=True
WARMUP=True
DELAY_COMM=1
PREFIX=''
if WARMUP:
PREFIX=PREFIX+'gwarmup'
PREFIX=PREFIX+'-dc'+str(DELAY_COMM)
EXCHANGE_MODE = 'MODEL'
PREFIX=PREFIX+'-'+EXCHANGE_MODE.lower()
CONNECTION='10GbE'
#CONNECTION='56GbIB'
EXP='-tpds'+CONNECTION
FP16=False
ADAPTIVE_MERGE=True
if FP16:
EXP=EXP+'-fp16'
PREFIX=PREFIX+EXP
if ADAPTIVE_MERGE:
PREFIX=PREFIX+'-ada'
FAKE_DATA=False
ORIGINAL_HOROVOD=False
if ORIGINAL_HOROVOD:
PREFIX=PREFIX+'-hvd'
TENSORBOARD=False
MAX_EPOCHS = 200
hostname = socket.gethostname()
logger = logging.getLogger(hostname)
if DEBUG:
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)
strhdlr = logging.StreamHandler()
logger.addHandler(strhdlr)
formatter = logging.Formatter('%(asctime)s [%(filename)s:%(lineno)d] %(levelname)s %(message)s')
strhdlr.setFormatter(formatter)