Skip to content

Commit 135307d

Browse files
committed
chore(safe-synthesizer): move URLs to top for reference notebooks
1 parent f962f60 commit 135307d

File tree

4 files changed

+43
-18
lines changed

4 files changed

+43
-18
lines changed

nemo/NeMo-Safe-Synthesizer/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# NeMo Safe Synthesizer Example Notebooks
2-
1+
# NeMo Safe Synthesizer Example Notebooks
32

43
This directory contains the tutorial notebooks for getting started with NeMo Safe Synthesizer.
54

@@ -15,14 +14,12 @@ source .venv/bin/activate
1514
uv pip install nemo-microservices[safe-synthesizer]
1615
```
1716

18-
1917
Be sure to select this virtual environment as your kernel when running the notebooks.
2018

2119
## 🚀 Deploying the NeMo Safe Synthesizer Microservice
2220

2321
To run these notebooks, you'll need access to a deployment of the NeMo Safe Synthesizer microservice. You have two deployment options:
2422

25-
2623
### 🐳 Deploy the NeMo Safe Synthesizer Microservice Locally
2724

2825
Follow our quickstart guide to deploy the NeMo safe synthesizer microservice locally via Docker Compose.

nemo/NeMo-Safe-Synthesizer/advanced/advanced_privacy.ipynb

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
"- **Access an evaluation report** on the quality and privacy of the synthetic data"
2020
]
2121
},
22-
{
23-
"cell_type": "code",
24-
"execution_count": null,
25-
"id": "a538526a",
26-
"metadata": {},
27-
"outputs": [],
28-
"source": []
29-
},
3022
{
3123
"cell_type": "markdown",
3224
"id": "8be84f5d",
@@ -37,6 +29,18 @@
3729
"Ensure you have a NeMo Microservices Platform deployment available. If you're using a managed or remote deployment, have the correct base URLs and tokens ready."
3830
]
3931
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"id": "a538526a",
36+
"metadata": {},
37+
"outputs": [],
38+
"source": [
39+
"# Update as appropriate to your installation URLs\n",
40+
"base_url = \"http://localhost:8080\"\n",
41+
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
42+
]
43+
},
4044
{
4145
"cell_type": "code",
4246
"execution_count": null,
@@ -74,7 +78,7 @@
7478
"outputs": [],
7579
"source": [
7680
"client = NeMoMicroservices(\n",
77-
" base_url=\"http://localhost:8080\",\n",
81+
" base_url=base_url\n",
7882
")"
7983
]
8084
},
@@ -94,7 +98,7 @@
9498
"outputs": [],
9599
"source": [
96100
"datastore_config = {\n",
97-
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
101+
" \"endpoint\": datastore_endpoint\n",
98102
"}"
99103
]
100104
},

nemo/NeMo-Safe-Synthesizer/advanced/replace_pii_only.ipynb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
"Ensure you have a NeMo Microservices Platform deployment available. If you're using a managed or remote deployment, have the correct base URLs and tokens ready."
2929
]
3030
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"id": "a0e23975",
35+
"metadata": {},
36+
"outputs": [],
37+
"source": [
38+
"# Update as appropriate to your installation URLs\n",
39+
"base_url = \"http://localhost:8080\"\n",
40+
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
41+
]
42+
},
3143
{
3244
"cell_type": "code",
3345
"execution_count": null,
@@ -63,7 +75,7 @@
6375
"outputs": [],
6476
"source": [
6577
"client = NeMoMicroservices(\n",
66-
" base_url=\"http://localhost:8080\",\n",
78+
" base_url=base_url\n",
6779
")"
6880
]
6981
},
@@ -83,7 +95,7 @@
8395
"outputs": [],
8496
"source": [
8597
"datastore_config = {\n",
86-
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
98+
" \"endpoint\": datastore_endpoint\n",
8799
"}"
88100
]
89101
},

nemo/NeMo-Safe-Synthesizer/intro/safe_synthesizer_101.ipynb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
"**IMPORTANT** 👉 Ensure you have a NeMo Microservices Platform deployment available. Follow the quickstart or Helm chart instructions in your environment's setup guide. You may need to restart your kernel after installing dependencies.\n"
3030
]
3131
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"id": "8e0327d4",
36+
"metadata": {},
37+
"outputs": [],
38+
"source": [
39+
"# Update as appropriate to your installation URLs\n",
40+
"base_url = \"http://localhost:8080\"\n",
41+
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
42+
]
43+
},
3244
{
3345
"cell_type": "code",
3446
"execution_count": null,
@@ -65,7 +77,7 @@
6577
"outputs": [],
6678
"source": [
6779
"client = NeMoMicroservices(\n",
68-
" base_url=\"http://localhost:8080\",\n",
80+
" base_url=base_url,\n",
6981
")"
7082
]
7183
},
@@ -85,7 +97,7 @@
8597
"outputs": [],
8698
"source": [
8799
"datastore_config = {\n",
88-
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
100+
" \"endpoint\": datastore_endpoint\n",
89101
"}"
90102
]
91103
},

0 commit comments

Comments
 (0)