|
6 | 6 | pip install notebooks-and-scripts
|
7 | 7 | ```
|
8 | 8 |
|
9 |
| -🔷 [scripts](#scripts) 🔷 [workflow](#workflow) 🔷 |
10 |
| - |
11 |
| ---- |
12 |
| - |
13 |
| -## scripts |
14 |
| - |
15 |
| -scripts are maintained as legacy and are replaced with `@docker eval - <command>`. |
16 |
| - |
17 |
| -|  |  |   | |
18 |
| -| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
19 |
| -| [paint-a-sentence](./scripts/paint-a-sentence.sh) | [mission-patch](./scripts/mission-patch.sh) | [roofAI-train](./scripts/roofAI-train.sh) | |
20 |
| -| https://medium.com/@arash-kamangir/a-cat-walking-under-apple-trees-style-by-stable-diffusion-ab60ece43e2a | https://medium.com/@arash-kamangir/private-mission-patch-%EF%B8%8F-1-0c2eddd79762 | https://arash-kamangir.medium.com/roofai-%EF%B8%8F-on-gpu-6-b02f8f67ed3f | |
21 |
| - |
22 |
| -also: [`sagesemseg`](./scripts/sagesemseg/). |
23 |
| - |
24 |
| ---- |
25 |
| - |
26 |
| -## workflow |
27 |
| - |
28 |
| -also home to [`workflow`](./notebooks_and_scripts/workflow/generic.py), an abstraction to run mixed-type (cpu/gpu/...) [DAG](https://networkx.org/documentation/stable/reference/classes/digraph.html)s of bash commands on aws batch. |
29 |
| - |
30 |
| -```bash |
31 |
| - > workflow help |
32 |
| -workflow create \ |
33 |
| - pattern=a-bc-d|hourglass,~upload \ |
34 |
| - -|<job-name> \ |
35 |
| - <command-line> |
36 |
| - . create a <pattern> workflow. |
37 |
| -workflow monitor \ |
38 |
| - ~download,~upload \ |
39 |
| - .|<job-name> |
40 |
| - . monitor workflow. |
41 |
| -workflow submit \ |
42 |
| - ~download,dryrun,to=aws_batch|generic|local|localflow,~upload \ |
43 |
| - .|<job-name> |
44 |
| - . submit workflow. |
45 |
| -``` |
46 |
| - |
47 |
| -```bash |
48 |
| -@select - open |
49 |
| -workflow create pattern=hourglass . |
50 |
| -workflow submit to=aws_batch |
51 |
| -@watch - @download |
52 |
| -``` |
53 |
| - |
54 |
| -from https://arash-kamangir.medium.com/%EF%B8%8F-openai-experiments-54-e49117dc69ef |
55 |
| - |
56 |
| -| [`a-bc-d`](./notebooks_and_scripts/workflow/patterns/a-bc-d.dot) [🔗](https://kamangir-public.s3.ca-central-1.amazonaws.com/a-bc-d/workflow.gif?raw=true) | [`hourglass`](./notebooks_and_scripts/workflow/patterns/hourglass.dot) [🔗](https://kamangir-public.s3.ca-central-1.amazonaws.com/hourglass/workflow.gif?raw=true) | [`map-reduce`](./notebooks_and_scripts/workflow/patterns/map-reduce.dot) [🔗](https://kamangir-public.s3.ca-central-1.amazonaws.com/map-reduce/workflow.gif?raw=true) | |
57 |
| -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
58 |
| -|  |  |  | |
| 9 | +| | | |
| 10 | +| --- | --- | |
| 11 | +| 📜[`workflow`](https://github.com/kamangir/notebooks-and-scripts/tree/main/notebooks_and_scripts/workflow) [](https://github.com/kamangir/notebooks-and-scripts/tree/main/notebooks_and_scripts/workflow) an abstraction to run mixed-type (cpu/gpu/...) [DAG](https://networkx.org/documentation/stable/reference/classes/digraph.html)s of commands on [aws batch](https://aws.amazon.com/batch/). | 📜[`scripts`](https://github.com/kamangir/notebooks-and-scripts/tree/main/scripts) [](https://github.com/kamangir/notebooks-and-scripts/tree/main/scripts) legacy mechanisms replaced with `@docker eval - <command>` and `@batch eval - <command>`. | |
59 | 12 |
|
60 | 13 | ---
|
61 | 14 |
|
62 | 15 | [](https://pypi.org/project/notebooks-and-scripts/)
|
63 | 16 |
|
64 | 17 | To use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-name>` with `nbs` and follow [these instructions](https://github.com/kamangir/notebooks-and-scripts/blob/main/SageMaker.md).
|
| 18 | + |
| 19 | +--- |
| 20 | +built by [`abcli-9.192.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`notebooks_and_scripts-4.642.1`](https://github.com/kamangir/notebooks-and-scripts). |
0 commit comments