Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
decentralizepy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SaCS
decentralizepy
Commits
10a6c713
Commit
10a6c713
authored
2 years ago
by
Rafael Pires
Browse files
Options
Downloads
Patches
Plain Diff
run.sh with comments
parent
4691c3d2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
README.rst
+5
-1
5 additions, 1 deletion
README.rst
eval/run.sh
+23
-7
23 additions, 7 deletions
eval/run.sh
with
30 additions
and
9 deletions
.gitignore
+
2
−
1
View file @
10a6c713
...
...
@@ -9,4 +9,5 @@
**.egg-info
2021**
2022**
**/massif.out*
\ No newline at end of file
**/massif.out*
*swp
This diff is collapsed.
Click to expand it.
README.rst
+
5
−
1
View file @
10a6c713
...
...
@@ -26,10 +26,14 @@ Setting up decentralizepy
pip install --upgrade pip
* On Mac M1, installing ``pyzmq`` fails with `pip`. Use `conda <https://conda.io>`_.
* Install decentralizepy for development. ::
* Install decentralizepy for development.
(zsh)
::
pip3 install --editable .\[dev\]
* Install decentralizepy for development. (bash) ::
pip3 install --editable .[dev]
----------------
Running the code
----------------
...
...
This diff is collapsed.
Click to expand it.
eval/run.sh
+
23
−
7
View file @
10a6c713
#!/bin/bash
script_path
=
$(
realpath
$(
dirname
$0
))
decpy_path
=
/mnt/nfs/kirsten/Gitlab/jac_decentralizepy/decentralizepy/eval
# Working directory, where config files are read from and logs are written.
decpy_path
=
/mnt/nfs/
$(
whoami
)
/decpy_workingdir
cd
$decpy_path
env_python
=
~/miniconda3/envs/decpy/bin/python3
graph
=
/mnt/nfs/kirsten/Gitlab/tutorial/regular_16.txt
original_config
=
/mnt/nfs/kirsten/Gitlab/tutorial/config_celeba_sharing.ini
config_file
=
~/tmp/config_celeba_sharing.ini
# Python interpreter
env_python
=
python3
# File regular_16.txt is available in /tutorial
graph
=
$decpy_path
/regular_16.txt
# File config_celeba_sharing.ini is available in /tutorial
# In this config file, change addresses_filepath to correspond to your list of machines (example in /tutorial/ip.json)
original_config
=
$decpy_path
/config_celeba_sharing.ini
# Local config file
config_file
=
/tmp/
$(
basename
$original_config
)
# Python script to be executed
eval_file
=
$script_path
/testingPeerSampler.py
# General parameters
procs_per_machine
=
8
machines
=
2
iterations
=
5
test_after
=
2
eval_file
=
testingPeerSampler.py
log_level
=
INFO
m
=
`
cat
$(
grep
addresses_filepath
$original_config
|
awk
'{print $3}'
)
|
grep
$(
/sbin/ifconfig ens785 |
grep
'inet '
|
awk
'{print $2}'
)
|
cut
-d
'"'
-f2
`
...
...
@@ -19,6 +33,8 @@ echo M is $m
log_dir
=
$(
date
'+%Y-%m-%dT%H:%M'
)
/machine
$m
mkdir
-p
$log_dir
# Copy and manipulate the local config file
cp
$original_config
$config_file
# echo "alpha = 0.10" >> $config_file
$env_python
$eval_file
-ro
0
-tea
$test_after
-ld
$log_dir
-mid
$m
-ps
$procs_per_machine
-ms
$machines
-is
$iterations
-gf
$graph
-ta
$test_after
-cf
$config_file
-ll
$log_level
-ctr
0
-cte
0
-wsd
$log_dir
\ No newline at end of file
$env_python
$eval_file
-ro
0
-tea
$test_after
-ld
$log_dir
-mid
$m
-ps
$procs_per_machine
-ms
$machines
-is
$iterations
-gf
$graph
-ta
$test_after
-cf
$config_file
-ll
$log_level
-wsd
$log_dir
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment