Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change sagemaker example to make more sense #231

Merged
merged 3 commits into from
Jun 21, 2023
Merged
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
27 changes: 8 additions & 19 deletions examples/sagemaker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "9f2b0270-1c33-4918-b534-4ec104f90141",
"metadata": {},
Expand All @@ -49,24 +48,24 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 2,
"id": "31f3e6e3-48cf-4e60-96d3-8b8e1dd34bec",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"AI generated code inserted below ⬇️"
"text/markdown": [
"What is the weather like in the US today?"
],
"text/plain": [
"<IPython.core.display.HTML object>"
"<IPython.core.display.Markdown object>"
]
},
"execution_count": 4,
"execution_count": 2,
"metadata": {
"text/html": {
"text/markdown": {
"jupyter_ai": {
"model_id": "jumpstart-dft-hf-text2text-flan-t5-xl",
"provider_id": "sagemaker-endpoint"
Expand All @@ -77,18 +76,8 @@
}
],
"source": [
"%%ai sagemaker-endpoint:jumpstart-dft-hf-text2text-flan-t5-xl --region-name=us-east-1 --request-schema={\"text_inputs\":\"<prompt>\"} --response-path=generated_texts.[0] -f code\n",
"Write some Python code"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "42408ea8-7264-44bc-ac0c-6b5dd03134d6",
"metadata": {},
"outputs": [],
"source": [
"a = [] b = [] c = [] d = ["
"%%ai sagemaker-endpoint:jumpstart-dft-hf-text2text-flan-t5-xl --region-name=us-east-1 --request-schema={\"text_inputs\":\"<prompt>\"} --response-path=generated_texts.[0]\n",
"Generate a question about weather today."
]
},
{
Expand Down