Skip to content

Commit cc8c21e

Browse files
committed
notebooks1
1 parent e6c9ffc commit cc8c21e

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

introduction_to_amazon_algorithms/jumpstart-foundation-models/bloom-z-176b-few-shot-and-zero-shot-learning.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"source": [
179179
"model_id, model_version, = (\n",
180180
" \"huggingface-textgeneration1-bloomz-176b-fp16\",\n",
181-
" \"*\",\n",
181+
" \"1.*\",\n",
182182
")"
183183
]
184184
},
@@ -265,7 +265,7 @@
265265
"outputs": [],
266266
"source": [
267267
"# model_version=\"*\" fetches the latest version of the model\n",
268-
"model_id, model_version = model_dropdown.value, \"*\""
268+
"model_id, model_version = model_dropdown.value, \"1.*\""
269269
]
270270
},
271271
{

introduction_to_amazon_algorithms/jumpstart-foundation-models/domain-adaption-finetuning-gpt-j-6b.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"metadata": {},
121121
"outputs": [],
122122
"source": [
123-
"model_id, model_version = \"huggingface-textgeneration1-gpt-j-6b\", \"*\""
123+
"model_id, model_version = \"huggingface-textgeneration1-gpt-j-6b\", \"1.*\""
124124
]
125125
},
126126
{
@@ -317,24 +317,24 @@
317317
"---\n",
318318
"```\n",
319319
"This report includes estimates, projections, statements relating to our\n",
320-
"business plans, objectives, and expected operating results that are \u201cforward-\n",
321-
"looking statements\u201d within the meaning of the Private Securities Litigation\n",
320+
"business plans, objectives, and expected operating results that are “forward-\n",
321+
"looking statements within the meaning of the Private Securities Litigation\n",
322322
"Reform Act of 1995, Section 27A of the Securities Act of 1933, and Section 21E\n",
323323
"of the Securities Exchange Act of 1934. Forward-looking statements may appear\n",
324-
"throughout this report, including the following sections: \u201cBusiness\u201d (Part I,\n",
325-
"Item 1 of this Form 10-K), \u201cRisk Factors\u201d (Part I, Item 1A of this Form 10-K),\n",
326-
"and \u201cManagement\u2019s Discussion and Analysis of Financial Condition and Results\n",
327-
"of Operations\u201d (Part II, Item 7 of this Form 10-K). These forward-looking\n",
328-
"statements generally are identified by the words \u201cbelieve,\u201d \u201cproject,\u201d\n",
329-
"\u201cexpect,\u201d \u201canticipate,\u201d \u201cestimate,\u201d \u201cintend,\u201d \u201cstrategy,\u201d \u201cfuture,\u201d\n",
330-
"\u201copportunity,\u201d \u201cplan,\u201d \u201cmay,\u201d \u201cshould,\u201d \u201cwill,\u201d \u201cwould,\u201d \u201cwill be,\u201d \u201cwill\n",
331-
"continue,\u201d \u201cwill likely result,\u201d and similar expressions. Forward-looking\n",
324+
"throughout this report, including the following sections: “Business” (Part I,\n",
325+
"Item 1 of this Form 10-K), “Risk Factors (Part I, Item 1A of this Form 10-K),\n",
326+
"and “Management’s Discussion and Analysis of Financial Condition and Results\n",
327+
"of Operations (Part II, Item 7 of this Form 10-K). These forward-looking\n",
328+
"statements generally are identified by the words “believe,” “project,”\n",
329+
"“expect,” “anticipate,” “estimate,” “intend,” “strategy,” “future,”\n",
330+
"“opportunity,” “plan,” “may,” “should,” “will,” “would,” “will be,” “will\n",
331+
"continue,” “will likely result, and similar expressions. Forward-looking\n",
332332
"statements are based on current expectations and assumptions that are subject\n",
333333
"to risks and uncertainties that may cause actual results to differ materially.\n",
334334
"We describe risks and uncertainties that could cause actual results and events\n",
335-
"to differ materially in \u201cRisk Factors,\u201d \u201cManagement\u2019s Discussion and Analysis\n",
336-
"of Financial Condition and Results of Operations,\u201d and \u201cQuantitative and\n",
337-
"Qualitative Disclosures about Market Risk\u201d (Part II, Item 7A of this Form\n",
335+
"to differ materially in “Risk Factors,” “Management’s Discussion and Analysis\n",
336+
"of Financial Condition and Results of Operations, and “Quantitative and\n",
337+
"Qualitative Disclosures about Market Risk (Part II, Item 7A of this Form\n",
338338
"10-K). Readers are cautioned not to place undue reliance on forward-looking\n",
339339
"statements, which speak only as of the date they are made. We undertake no\n",
340340
"obligation to update or revise publicly any forward-looking statements,\n",
@@ -821,4 +821,4 @@
821821
},
822822
"nbformat": 4,
823823
"nbformat_minor": 5
824-
}
824+
}

introduction_to_amazon_algorithms/jumpstart-foundation-models/instruction-fine-tuning-flan-t5.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"from sagemaker.jumpstart.model import JumpStartModel\n",
125125
"\n",
126126
"# Replace with larger model if needed\n",
127-
"model_id, model_version = \"huggingface-text2text-flan-t5-base\", \"*\"\n",
127+
"model_id, model_version = \"huggingface-text2text-flan-t5-base\", \"1.*\"\n",
128128
"pretrained_model = JumpStartModel(model_id=model_id)\n",
129129
"pretrained_predictor = pretrained_model.deploy()"
130130
]

introduction_to_amazon_algorithms/jumpstart-foundation-models/question_answering_retrieval_augmented_generation/question_answering_jumpstart_knn.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"aws_role = sagemaker_session.get_caller_identity_arn()\n",
7878
"aws_region = boto3.Session().region_name\n",
7979
"sess = sagemaker.Session()\n",
80-
"model_version = \"*\""
80+
"model_version = \"1.*\""
8181
]
8282
},
8383
{
@@ -327,7 +327,7 @@
327327
"metadata": {},
328328
"outputs": [],
329329
"source": [
330-
"model_id, model_version = \"huggingface-textembedding-gpt-j-6b\", \"*\"\n",
330+
"model_id, model_version = \"huggingface-textembedding-gpt-j-6b\", \"1.*\"\n",
331331
"\n",
332332
"endpoint_name_embed = name_from_base(f\"jumpstart-example-ragknn-{model_id}\")\n",
333333
"\n",

introduction_to_amazon_algorithms/jumpstart-foundation-models/question_answering_retrieval_augmented_generation/question_answering_langchain_jumpstart.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"aws_role = sagemaker_session.get_caller_identity_arn()\n",
8686
"aws_region = boto3.Session().region_name\n",
8787
"sess = sagemaker.Session()\n",
88-
"model_version = \"*\""
88+
"model_version = \"1.*\""
8989
]
9090
},
9191
{

0 commit comments

Comments
 (0)