# Use sentence transformers with different embeddings size

**URL:** <https://discuss.huggingface.co/t/use-sentence-transformers-with-different-embeddings-size/42245>\
**Category:** 🤗Transformers\
**Created:** [June 6, 2023, 10:12am UTC](https://discuss.huggingface.co/t/use-sentence-transformers-with-different-embeddings-size/42245 "2023-06-06T10:12:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickprock](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nickprock/32/15532_2.png) [@nickprock](https://discuss.huggingface.co/u/nickprock)\
**Post date:** [June 6, 2023, 10:12am UTC](https://discuss.huggingface.co/t/use-sentence-transformers-with-different-embeddings-size/42245/1 "2023-06-06T10:12:33Z")

</div>

Hi,

2 questions:

- if I use several sentence transformers can I use a dimensionality reduction model like [dimensionality\_reduction.py](https://github.com/UKPLab/sentence-transformers/issues/examples/training/distillation/dimensionality_reduction.py)?
- must I encode the same sentence with different embedder before `pca.fit()`?

Thanks in advance
