-
Notifications
You must be signed in to change notification settings - Fork 36
docs: describe workflow artifact downloads #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,36 @@ INFO:root:steps iter-000001--prep-run-explore--------------------- finished | |
| The artifacts can be downloaded on-the-fly with `-d` flag. Note that the existing files are automatically skipped if one sets `dflow_config["archive_mode"] = None`. | ||
|
|
||
|
|
||
| ## Download workflow results | ||
|
|
||
| The `download` command retrieves training, exploration, and labeling artifacts without requiring direct access to the workflow storage backend. List the supported artifact names first: | ||
|
|
||
| ```bash | ||
| dpgen2 download input.json WFID --list-supported | ||
| ``` | ||
|
|
||
| Running without filters downloads every supported artifact from every successful iteration. Use iteration and artifact filters for a smaller result set: | ||
|
|
||
| ```bash | ||
| dpgen2 download input.json WFID \ | ||
| --iterations 0-2 \ | ||
| --step-definitions \ | ||
| prep-run-train/output/models \ | ||
| prep-run-train/output/lcurves \ | ||
| prep-run-train/output/logs \ | ||
| prep-run-explore/output/trajs \ | ||
| prep-run-explore/output/model_devis \ | ||
| prep-run-fp/output/labeled_data \ | ||
| --prefix results | ||
| ``` | ||
|
|
||
| Files are organized below `results/iter-000000/<step>/<input-or-output>/<artifact>`. Existing completed downloads are skipped by default; pass `--no-check-point` to request them again. The corresponding result groups are: | ||
|
|
||
| - training: models, learning curves, logs, and generated scripts; | ||
| - exploration: trajectories, model deviations, logs, and extra outputs; | ||
| - labeling: input configurations, labeled data, logs, and extra outputs. | ||
|
Comment on lines
+65
to
+69
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This hand-written list does not match
The section already tells the reader to run |
||
|
|
||
|
|
||
| ## Show the keys of steps | ||
|
|
||
| Each dpgen2 step is assigned a unique key. The keys of the finished steps can be checked with `showkey` command | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0-2is a half-open range: it expands to iterations 0 and 1, not 0, 1 and 2.expand_idxindpgen2/entrypoint/common.pydoesret += range(int(range_str[0]), int(range_str[1]), step), and Python'srangeexcludes the upper bound. This is also why the help text has to write the awkward-i 0-8 8 9to cover iterations 0 through 9.This page already knows how to say it - the resubmit section reads "0<=id<41, note that 41 is not included". The new section is the only range example on the page without that caveat, and a reader copying this command will believe they downloaded the last iteration when they did not.