Skip to content

Commit 935ed6e

Browse files
authored
Merge pull request #253 from iArpanPatel/master
Community contributed examples movement
2 parents c830e89 + b65c49c commit 935ed6e

File tree

20 files changed

+55
-51
lines changed

20 files changed

+55
-51
lines changed

docs/User/Frequently_asked_questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ SWOP profile supports mounts with private data. If the installation path or any
280280
No. The program and parameters should be the same across all the Swarm Learning nodes.
281281

282282
### How to resolve "ERROR: Invalid requirement: 'swarmlearning==client': Expected end or semicolon" error while building user container?
283-
Latest version of pip has become stricter, especially in handling package names and version specifiers. You can resolve this error by downgrading pip to 24.0 in dockerfile or build task yaml file. You can check dockerfile of any of the 'example/contrib/' examples for reference.
283+
Latest version of pip has become stricter, especially in handling package names and version specifiers. You can resolve this error by downgrading pip to 24.0 in dockerfile or build task yaml file. You can check dockerfile of any of the 'breakhis', 'cancer-pred', 'cataract-detection' or 'nail-disease' examples for reference.
284284

285285
## Swarm management
286286

examples/README.md

Lines changed: 36 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,6 @@
1-
## Prerequisite for all examples
2-
1. Start license server and install valid license before running any of the examples. Refer [Installing licenses and starting license server](/docs/Install/HPE_Swarm_Learning_installation.md).
3-
4-
2. Install the Swarm Learning product using the Web UI installer. Refer [Web UI installation](/docs/Install/HPE_Swarm_Learning_installation.md)
5-
6-
For more information on starting license server and installing the Swarm Learning, see [HPE Swarm Learning Installation and Configuration Guide](/docs/Install/HPE_Swarm_Learning_installation.md).
7-
8-
9-
In this section, examples use different models, data, ML platforms, and Swarm cluster configurations. All examples require valid X.509 certificates to be used by different Swarm Learning components.
10-
<blockquote>
11-
NOTE: Spire based example is automated and doesn't need any certificates to be generated. Spire agent and server containers will manage the certificates internally.
12-
</blockquote>
13-
14-
A certificate generation utility (`gen-cert`) is provided with each example to enable users to run the examples quickly, using self-signed certificates.
15-
``` {#CODEBLOCK_WLX_CZN_WWB}
16-
./swarm-learning/examples/utils/gen-cert -h
17-
Usage: gen-cert -e EXAMPLE-NAME -i HOST-INDEX
18-
-e Name of the example e.g. mnist, mnist-pyt, cifar10 etc.
19-
-i Host index like 1,2 etc.
20-
-h Show help.
21-
```
22-
23-
<blockquote>
24-
NOTE: HPE recommends that users must use their own certificates in actual production environment.
25-
</blockquote>
26-
27-
## How to resolve "ERROR: Invalid requirement: 'swarmlearning==client': Expected end or semicolon" error while building user container?
28-
Latest version of pip has become stricter, especially in handling package names and version specifiers. You can resolve this error by downgrading pip to 24.0 in dockerfile or build task yaml file. You can check dockerfile of any of the 'example/contrib/' examples for reference.
29-
301
## Swarm Learning Examples
312

32-
Several examples of using Swarm Learning are provided with the package.
3+
Several examples of using Swarm Learning are provided. These examples use different models, datasets, ML platforms, and Swarm cluster configurations.
334

345
For details of running each example, see the below:
356

@@ -40,9 +11,43 @@ For details of running each example, see the below:
4011
- [NIH](/examples/nih/README.md)
4112
- [Reverse Proxy based examples](/examples/reverse-proxy/README.md)
4213
- [Spire based example](/examples/spire/cifar10/README.md)
14+
- Following are the community contributed examples:
15+
- [BREAKHIS](/examples/breakhis/README.md)
16+
- [Cancer prediction](/examples/cancer-pred/README.md)
17+
- [Cataract detection](/examples/cataract-detection/README.md)
18+
- [Nail disease detection](/examples/nail-disease/README.md)
4319

4420

45-
### System setup for the examples
21+
## Prerequisite for all examples
22+
1. Start license server and install valid license before running any of the examples. Refer [Installing licenses and starting license server](/docs/Install/HPE_Swarm_Learning_installation.md).
23+
24+
2. Install the Swarm Learning product using the Web UI installer. Refer [Web UI installation](/docs/Install/HPE_Swarm_Learning_installation.md)
25+
26+
For more information on starting license server and installing the Swarm Learning, see [HPE Swarm Learning Installation and Configuration Guide](/docs/Install/HPE_Swarm_Learning_installation.md).
27+
28+
3. All examples require valid X.509 certificates to be used by different Swarm Learning components.
29+
30+
A certificate generation utility (`gen-cert`) is provided with each example to enable users to run the examples quickly, using self-signed certificates.
31+
``` {#CODEBLOCK_WLX_CZN_WWB}
32+
./swarm-learning/examples/utils/gen-cert -h
33+
Usage: gen-cert -e EXAMPLE-NAME -i HOST-INDEX
34+
-e Name of the example e.g. mnist, mnist-pyt, cifar10 etc.
35+
-i Host index like 1,2 etc.
36+
-h Show help.
37+
```
38+
39+
<blockquote>
40+
NOTE: Spire based example is automated and doesn't need any certificates to be generated. Spire agent and server containers will manage the certificates internally.
41+
</blockquote>
42+
43+
<blockquote>
44+
NOTE: HPE recommends that users must use their own certificates in actual production environment.
45+
</blockquote>
46+
47+
## How to resolve "ERROR: Invalid requirement: 'swarmlearning==client': Expected end or semicolon" error while building user container?
48+
Latest version of pip has become stricter, especially in handling package names and version specifiers. You can resolve this error by downgrading pip to 24.0 in dockerfile or build task yaml file. You can check dockerfile of any of the 'breakhis', 'cancer-pred', 'cataract-detection' or 'nail-disease' examples for reference.
49+
50+
## System setup for the examples
4651
4752
1. The instructions in these examples assume that Swarm Learning runs on 1 to 2 host systems.
4853
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cd swarm-learning
3030

3131
```
3232
mkdir workspace
33-
cp -r examples/contrib/breakhis workspace/
33+
cp -r examples/breakhis workspace/
3434
cp -r examples/utils/gen-cert workspace/breakhis/
3535
```
3636

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cd swarm-learning
3838

3939
```
4040
mkdir workspace
41-
cp -r examples/contrib/cancer-pred workspace/
41+
cp -r examples/cancer-pred workspace/
4242
cp -r examples/utils/gen-cert workspace/cancer-pred/
4343
```
4444

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)