I want to remove the last layer(s) from MobileBERT from Hub. I know there is a solution for Keras Model in TensorFlow, but this case is different from that one.
I was thinking of something like this, but it doesn't seem user-friendly.
What is the common way of doing this?