Closed r-wheeler closed 4 years ago
Ah, sorry for the confusion. The update in the readme was for users of TF1.15. We haven't really tested ALBERT in TF2.0 and don't have plans to release a TF2.0-compatible version of ALBERT modules (yet).
Cool -- thanks for the prompt response. Huge request to be able to fine tune in tensorflow 2.
This was a bit confusing as I thought this issue would be fixed from the update in the readme
With a very minimal example, the weights of albert and other modules do not show as trainable as there are 0 trainable variables.
Produces the following summary:
Expected Behavior: Trainable variables of Albert or bert models to be shown as trainable parameters
Observed Behavior: There are 0 trainable parameters shown in the model summary when setting trainable to True.
After discussing this issue with tensorflow hub developers, the issue is that the model is in the TF1
hub.Module
format and not the SavedModelV2. Here is the linked issue in tensorflow hubs github.Can you provide a version on tensorflow hub that allows the models to be fine tuned?