Fine-tune a BERT model for context specific embeddigns

Viewed 909

I'm trying to find information on how to train a BERT model, possibly from the Huggingface Transformers library, so that the embedding it outputs are more closely related to the context o the text I'm using.

However, all the examples that I'm able to find, are about fine-tuning the model for another task, such as classification.

Would anyone happen to have an example of a BERT fine-tuning model for masked tokens or next sentence prediction, that outputs another raw BERT model that is fine-tuned to the context?

Thanks!

1 Answers
Related