how to fine tune an existing model in sagemaker?

0

I am planning to fine tune a BERT based model (DistilBERT base model (uncased). the fine tuning process, as i understand , would involve loading the weights for the DistilBERT model. examples i have seen use hugging face library to download model and fine tune it, but can i do this in sagemaker with pytorch library without using hugging face?

已提问 2 个月前472 查看次数
1 回答
0

You can fine tune BERT models on SageMaker. Although huggingface provides an easy integration with their Huggingface estimator something like this. You are free to use sagemaker pytorch estimators to fine tune models. You can refer the below example for fine tuning bert using pytorch estimator.

https://github.com/aws/amazon-sagemaker-examples/blob/main/training/smart_sifting/Text_Classification_BERT/Train_text_classification.ipynb

AWS
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则