Skip to content

Commit b9c92c2

Browse files
committed
Okay should be good now
1 parent 777c96f commit b9c92c2

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

workshops/fine-tuning-with-sagemakerai-and-bedrock/task_05_fmops/05.01_fine-tuning-pipeline.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@
692692
" try:\n",
693693
" print(f\"Attempting to delete endpoint {endpoint_name} (attempt {attempt + 1}/{max_retries})\")\n",
694694
" sm_client.delete_endpoint(EndpointName=endpoint_name)\n",
695+
" sm_client.delete_endpoint_config(EndpointConfigName=endpoint_name)\n",
695696
" print(f\"Endpoint {endpoint_name} deletion initiated successfully\")\n",
696697
" \n",
697698
" # Wait for endpoint to be fully deleted\n",

workshops/fine-tuning-with-sagemakerai-and-bedrock/task_05_fmops/steps/qualitative_eval_step.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def create_bedrock_judge_metrics():
145145
),
146146
examples=medical_accuracy_examples,
147147
version="v1",
148-
# model="bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0",
149-
model="bedrock:/anthropic.claude-3-haiku-20240307-v1:0",
148+
model="bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0",
149+
# model="bedrock:/anthropic.claude-3-haiku-20240307-v1:0",
150150
parameters={
151151
"anthropic_version": "bedrock-2023-05-31",
152152
"temperature": 0.0,
@@ -194,8 +194,8 @@ def create_bedrock_judge_metrics():
194194
),
195195
examples=clinical_reasoning_examples,
196196
version="v1",
197-
# model="bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0",
198-
model="bedrock:/anthropic.claude-3-haiku-20240307-v1:0",
197+
model="bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0",
198+
# model="bedrock:/anthropic.claude-3-haiku-20240307-v1:0",
199199
parameters={
200200
"anthropic_version": "bedrock-2023-05-31",
201201
"temperature": 0.0,
@@ -241,8 +241,8 @@ def create_bedrock_judge_metrics():
241241
),
242242
examples=patient_safety_examples,
243243
version="v1",
244-
# model="bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0",
245-
model="bedrock:/anthropic.claude-3-haiku-20240307-v1:0",
244+
model="bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0",
245+
# model="bedrock:/anthropic.claude-3-haiku-20240307-v1:0",
246246
parameters={
247247
"anthropic_version": "bedrock-2023-05-31",
248248
"temperature": 0.0,
@@ -481,7 +481,7 @@ def evaluate_model_qualitatively(model_config, dataset):
481481
mlflow.log_param("qualitative_evaluation_endpoint", endpoint_name)
482482
mlflow.log_param("qualitative_evaluation_num_samples", num_samples)
483483
mlflow.log_param("qualitative_evaluation_timestamp", datetime.now().isoformat())
484-
mlflow.log_param("llm_judge_model", "bedrock:/anthropic.claude-3-haiku-20240307-v1:0")
484+
mlflow.log_param("llm_judge_model", "bedrock:/us.anthropic.claude-3-haiku-20240307-v1:0")
485485

486486
# Load the test dataset
487487
try:

0 commit comments

Comments
 (0)