In the modeling section of the below notebook, a pretrained model is created and the weights attribute is accessed.
transformer_layer = transformers.TFDistilBertM