Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@
"benchmark_owner.peers"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Fail on a wrong email, or if the peer has not approved yet. Warn if the peer\n",
"# was already there before this notebook logged in.\n",
"# attest_peer() below checks the enclave.\n",
"benchmark_owner.validate_peer(MODEL_OWNER_EMAIL)\n",
"print(f\" Connected to {MODEL_OWNER_EMAIL}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,19 @@
"print(\" Benchmark owner approved\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Fail on a wrong email, or if the peer has not approved yet. Warn if the peer\n",
"# was already there before this notebook logged in.\n",
"# attest_peer() below checks the enclave.\n",
"model_owner.validate_peer(BENCHMARK_OWNER_EMAIL)\n",
"print(f\" Connected to {BENCHMARK_OWNER_EMAIL}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,23 @@
]
},
{
"cell_type": "markdown",
"cell_type": "code",
"execution_count": null,
"id": "15",
"metadata": {},
"outputs": [],
"source": [
"# Fail on a wrong email, or if the peer has not approved yet. Warn if the peer\n",
"# was already there before this notebook logged in.\n",
"# attest_peer() below checks the enclave.\n",
"model_owner.validate_peer(RESEARCHER_EMAIL)\n",
"print(f\" Connected to {RESEARCHER_EMAIL}\")"
]
},
{
"cell_type": "markdown",
"id": "16",
"metadata": {},
"source": [
"### Step 1.2 — Attest the enclave's identity\n",
"\n",
Expand All @@ -204,7 +218,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "16",
"id": "17",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -214,7 +228,7 @@
},
{
"cell_type": "markdown",
"id": "17",
"id": "18",
"metadata": {},
"source": [
"## Step 2 — Get the Gemma 3 model\n",
Expand All @@ -225,7 +239,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "18",
"id": "19",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -236,7 +250,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "19",
"id": "20",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -252,7 +266,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "20",
"id": "21",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -261,7 +275,7 @@
},
{
"cell_type": "markdown",
"id": "21",
"id": "22",
"metadata": {},
"source": [
"## Step 3 — Prepare the files for upload\n",
Expand All @@ -272,7 +286,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "22",
"id": "23",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -322,7 +336,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "23",
"id": "24",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -338,7 +352,7 @@
},
{
"cell_type": "markdown",
"id": "24",
"id": "25",
"metadata": {},
"source": [
"## Step 4 — Upload the private model\n",
Expand All @@ -349,7 +363,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "25",
"id": "26",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -368,7 +382,7 @@
},
{
"cell_type": "markdown",
"id": "26",
"id": "27",
"metadata": {},
"source": [
"## Step 5 — Run `syft-restrict` on the inference code\n",
Expand All @@ -382,7 +396,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "27",
"id": "28",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -442,7 +456,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "28",
"id": "29",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -463,7 +477,7 @@
},
{
"cell_type": "markdown",
"id": "29",
"id": "30",
"metadata": {},
"source": [
"### Step 5.1 — Approve the job\n",
Expand All @@ -474,7 +488,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "30",
"id": "31",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -486,7 +500,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "31",
"id": "32",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -496,7 +510,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "32",
"id": "33",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -507,7 +521,7 @@
},
{
"cell_type": "markdown",
"id": "33",
"id": "34",
"metadata": {},
"source": [
"## Step 6 — Approve the final inference job\n",
Expand All @@ -518,7 +532,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "34",
"id": "35",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -531,7 +545,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "35",
"id": "36",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -541,7 +555,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "36",
"id": "37",
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading
Loading