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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
s3_output_path=S3_OUTPUT_PATH,
sagemaker_session=sagemaker_session,
#accept_eula=ACCEPT_EULA, # Uncomment for Meta models
role=ROLE_ARN
role=ROLE_ARN,
tags=[{"Key": "aws-sagemaker:model-customization-client-origin", "Value": "sherpa-plugin"}]
)
print("Here are the recommended hyperparameters for the current training job:")
print(f"Batch size: {trainer.hyperparameters.global_batch_size}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
sagemaker_session=sagemaker_session,
#accept_eula=ACCEPT_EULA, # Uncomment for Meta models
role=ROLE_ARN,
tags=[{"Key": "aws-sagemaker:model-customization-client-origin", "Value": "sherpa-plugin"}],
)

print("Here are the recommended hyperparameters for the current training job:")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
sagemaker_session=sagemaker_session,
#accept_eula=ACCEPT_EULA, # Uncomment for Meta models
role=ROLE_ARN,
tags=[{"Key": "aws-sagemaker:model-customization-client-origin", "Value": "sherpa-plugin"}],
)

print("Here are the recommended hyperparameters for the current training job:")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
sagemaker_session=sagemaker_session,
#accept_eula=ACCEPT_EULA, # Uncomment for Meta models
role=ROLE_ARN,
custom_reward_function=CUSTOM_REWARD_FUNCTION
custom_reward_function=CUSTOM_REWARD_FUNCTION,
tags=[{"Key": "aws-sagemaker:model-customization-client-origin", "Value": "sherpa-plugin"}]
)
print("Here are the recommended hyperparameters for the current training job:")
print(f"Batch size: {trainer.hyperparameters.global_batch_size}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
s3_output_path=S3_OUTPUT_PATH,
sagemaker_session=sagemaker_session,
#accept_eula=ACCEPT_EULA, # Uncomment for Meta models
role=ROLE_ARN
role=ROLE_ARN,
tags=[{"Key": "aws-sagemaker:model-customization-client-origin", "Value": "sherpa-plugin"}]
)

print("Here are the recommended hyperparameters for the current training job:")
Expand Down
Loading