Question: Use the pretrained BERT based sentiment classification from huging face. a ) Measure train speed when running in CPU and GPU. Measure how long does
Use the pretrained BERT based sentiment classification from huging face.
a Measure train speed when running in CPU and GPU. Measure how long does it take to train one iteration?
b Change the classification head by using a linear transformation that transforms features to use RELU, use a linear transformation that transforms features to numlabels, use Softmax, run training for epochs with two different learning rates and measure the accuracy for each.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
