bert icon indicating copy to clipboard operation
bert copied to clipboard

Possible to release the final dense layer in pre training

Open llsguoqing opened this issue 8 years ago • 2 comments

Hi,

Just wondering is it possible to get the last dense layer created during the pre-training phase (variables defined in https://github.com/google-research/bert/blob/master/run_pretraining.py#L245). We are trying to evaluate whether this can be used as a better version of context2vec, which provides viable alternatives for each word in the sentence.

llsguoqing avatar Nov 12 '18 05:11 llsguoqing

Hi I saw them in the checkpoint files. If you list the variables there, you will find them at the end.

thomwolf avatar Nov 12 '18 07:11 thomwolf

Yes they should be there for all of the released models, let me know if they are missing for any of them.

jacobdevlin-google avatar Nov 12 '18 17:11 jacobdevlin-google