# Embedding layer or last hidden\_hidden\_state

**URL:** <https://discuss.huggingface.co/t/embedding-layer-or-last-hidden-hidden-state/60665>\
**Category:** 🤗Transformers\
**Created:** [November 1, 2023, 6:22am UTC](https://discuss.huggingface.co/t/embedding-layer-or-last-hidden-hidden-state/60665 "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](https://discuss.huggingface.co/u/vo1ceBeer)\
**Post date:** [November 1, 2023, 6:22am UTC](https://discuss.huggingface.co/t/embedding-layer-or-last-hidden-hidden-state/60665/1 "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?
