Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions nemo/NeMo-Safe-Synthesizer/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# NeMo Safe Synthesizer Example Notebooks

# NeMo Safe Synthesizer Example Notebooks

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

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


Be sure to select this virtual environment as your kernel when running the notebooks.

## 🚀 Deploying the NeMo Safe Synthesizer Microservice

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


### 🐳 Deploy the NeMo Safe Synthesizer Microservice Locally

Follow our quickstart guide to deploy the NeMo safe synthesizer microservice locally via Docker Compose.
Expand Down
24 changes: 14 additions & 10 deletions nemo/NeMo-Safe-Synthesizer/advanced/advanced_privacy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
"- **Access an evaluation report** on the quality and privacy of the synthetic data"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a538526a",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "8be84f5d",
Expand All @@ -37,6 +29,18 @@
"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."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a538526a",
"metadata": {},
"outputs": [],
"source": [
"# Update as appropriate to your installation URLs\n",
"base_url = \"http://localhost:8080\"\n",
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -74,7 +78,7 @@
"outputs": [],
"source": [
"client = NeMoMicroservices(\n",
" base_url=\"http://localhost:8080\",\n",
" base_url=base_url\n",
")"
]
},
Expand All @@ -94,7 +98,7 @@
"outputs": [],
"source": [
"datastore_config = {\n",
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
" \"endpoint\": datastore_endpoint\n",
"}"
]
},
Expand Down
16 changes: 14 additions & 2 deletions nemo/NeMo-Safe-Synthesizer/advanced/replace_pii_only.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"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."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a0e23975",
"metadata": {},
"outputs": [],
"source": [
"# Update as appropriate to your installation URLs\n",
"base_url = \"http://localhost:8080\"\n",
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -63,7 +75,7 @@
"outputs": [],
"source": [
"client = NeMoMicroservices(\n",
" base_url=\"http://localhost:8080\",\n",
" base_url=base_url\n",
")"
]
},
Expand All @@ -83,7 +95,7 @@
"outputs": [],
"source": [
"datastore_config = {\n",
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
" \"endpoint\": datastore_endpoint\n",
"}"
]
},
Expand Down
16 changes: 14 additions & 2 deletions nemo/NeMo-Safe-Synthesizer/intro/safe_synthesizer_101.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@
"**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"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8e0327d4",
"metadata": {},
"outputs": [],
"source": [
"# Update as appropriate to your installation URLs\n",
"base_url = \"http://localhost:8080\"\n",
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -65,7 +77,7 @@
"outputs": [],
"source": [
"client = NeMoMicroservices(\n",
" base_url=\"http://localhost:8080\",\n",
" base_url=base_url,\n",
")"
]
},
Expand All @@ -85,7 +97,7 @@
"outputs": [],
"source": [
"datastore_config = {\n",
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
" \"endpoint\": datastore_endpoint\n",
"}"
]
},
Expand Down