Install Autosubmit with pip install autosubmit==3.*
. Follow their tutorial to set up the workflow engine (basically
autosubmit configure
and autosubmit install
to create the directories, files, and databases).
Create an experiment with autosubmit expid --HPC local --description "autosubmit-fl..."
, and edit the files
expdef_a000.conf
and jobs_a000.conf
in the ~/autosubmit/a000/
directory. The important entries to add or
modify in expdef_a000.conf
are:
MEMBERS = mnist svhn
NUMCHUNKS = 3
And in jobs_a000.conf
are:
[init]
FILE=_.sh
[train]
FILE=_.sh
RUNNING=chunk
DEPENDENCIES=init
[eval]
FILE=_.sh
RUNNING=member
DEPENDENCIES=train
Then autosubmit create a000
will validate and plot the workflow.
file:///home/kinow/autosubmit/a000/plot/a000_20220901_1623.pdf.png
Install Cylc with pip install cylc-flow==8.*
. Create the directory for the workflow with mkdir -p ~/cylc-src/cylc-fl
.
Paste the contents of flow.cylc
into ~/cylc-src/cylc-fl/flow.cylc
. cd
into that directory and run cylc install .
. That should create the first run for the cylc-fl
workflow.
Now plot and run the workflow with cylc graph cylc-fl
and cylc run cylc-fl --no-detach
.
You can then preview the graph of the workflow, as seen below, or print the job logs (you can also navigate to that directory).
(venv) kinow@ranma:~/cylc-src/cylc-fl$ cylc cat-log --file=o cylc-fl//1/train_round1_mnist
Workflow : cylc-fl/run1
Job : 1/train_round1_mnist/01 (try 1)
User@Host: kinow@ranma
Training the model... round 1
2022-09-01T16:03:00+12:00 INFO - started
2022-09-01T16:03:01+12:00 INFO - succeeded