# Modify bert embeddings

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-bert-embeddings%2F13831%3E%5C
**Category:** 🤗Transformers\
**Created:** [January 18, 2022, 6:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-bert-embeddings%2F13831 "2022-01-18T06:43:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShivaniSri](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@ShivaniSri](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FShivaniSri)%5C
**Post date:** [January 18, 2022, 6:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-bert-embeddings%2F13831%2F1 "2022-01-18T06:43:29Z")

</div>

I want to modify bert embeddings (multiply bert embeddings with a vector) and forward it to bert encoder layer

bert = AutoModel.from\_pretrained(‘bert-base-uncased’)

How to modify embeddings
