Skip to content

Instantly share code, notes, and snippets.

View marctemp's full-sized avatar

Marc Templeton marctemp

View GitHub Profile
@marctemp
marctemp / estimator.py
Last active March 5, 2021 16:17
Applied Innovation BERT Fine-Tuning Project
from sagemaker.estimator import Estimator
estimator = Estimator(image_uri='<ECR REPO URL>:latest',
role='<SAGEMAKER ROLE ARN>',
base_job_name='bert-training-job',
instance_count=1,
instance_type='ml.m5.2xlarge',
source_dir='/var/bert/model_pkg/',
entry_point='model_train.py'
)