-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 784 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 784 Bytes
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
setup:
-sudo apt-get -y virtualenv
virtualenv -p python3 venv
. venv/bin/activate && pip install -r requirements.txt && pip install .
install:
pip install .
graph:
python example/graph.py
mv train_time.png test_time.png docs
first:
python example/main.py --rank 1 --world-size 3
second:
python example/main.py --rank 2 --world-size 3
server:
python example/main.py --rank 0 --world-size 3 --server
single:
python example/main.py --no-distributed
gpu:
python example/main.py --no-distributed --cuda
dist:
python3 setup.py sdist bdist_wheel
upload: dist
twine upload dist/*
upload-test: dist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
install-test:
python3 -m pip install --index-url https://test.pypi.org/simple/ pytorch-distbelief