# Embedding layer or last hidden\_hidden\_state

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-layer-or-last-hidden-hidden-state%2F60665%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 1, 2023, 6:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-layer-or-last-hidden-hidden-state%2F60665 "2023-11-01T06:22:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vo1ceBeer](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/vo1cebeer/32/20415_2.png) [@vo1ceBeer](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fvo1ceBeer)%5C
**Post date:** [November 1, 2023, 6:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-layer-or-last-hidden-hidden-state%2F60665%2F1 "2023-11-01T06:22:07Z")

</div>

Hey guys, I’m wondering which way is better to get the word embedding, embedding layer from the model used, or last\_hidden\_states after calling the forward() function of the model?
