# BERT MLM finetuning with custom embeddings

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-mlm-finetuning-with-custom-embeddings%2F21347%3E%5C
**Category:** Models\
**Created:** [August 7, 2022, 7:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-mlm-finetuning-with-custom-embeddings%2F21347 "2022-08-07T19:46:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spnya](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@spnya](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fspnya)%5C
**Post date:** [August 7, 2022, 7:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-mlm-finetuning-with-custom-embeddings%2F21347%2F1 "2022-08-07T19:46:37Z")

</div>

Hi, I have some embeddings that I would like to finetune using BERT mlm script. Its an embedding.pt file. While passing this embedding with --model\_name\_or\_path to run\_mlm.py, it throws an error saying pytorch\_model.bin not found in the folder. Is this only about converting .pt to .bin file or is there some other way? I also tried setting from\_pt=True in the script while loading the model using AutoModelforMaskedLM. Any suggestions?
