# Can I use sentence-transformers with tensorflow?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-use-sentence-transformers-with-tensorflow%2F9921%3E%5C
**Category:** 🤗Transformers\
**Created:** [September 13, 2021, 2:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-use-sentence-transformers-with-tensorflow%2F9921 "2021-09-13T02:01:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaffson](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/olaffson/32/2416_2.png) [@olaffson](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Folaffson)%5C
**Post date:** [September 13, 2021, 2:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-use-sentence-transformers-with-tensorflow%2F9921%2F1 "2021-09-13T02:01:45Z")

</div>

Hello,

I see that the (famous) `sentence-transformer` models in hosted in the hub [sentence-transformers (Sentence Transformers)](https://huggingface.co/sentence-transformers).

However, unless I am mistaken they all seem to by in `pytorch`. Is there any way to use them using `tensorflow` and `huggingface`?

Thanks!

---

<div class="post-metadata">

**Author:** ![alexanderlavelle](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@alexanderlavelle](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Falexanderlavelle)%5C
**Post date:** [October 8, 2023, 10:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-use-sentence-transformers-with-tensorflow%2F9921%2F2 "2023-10-08T10:56:09Z")

</div>

@olaffson Some of the models do have ONNX weights, and some models may have TF weights as well. If the models are in ONNX that makes it relatively easy to convert to TF.
