# Nx vs. Python performance for sentence-transformer encoding

**URL:** <https://forum.elixirforum.com/t/nx-vs-python-performance-for-sentence-transformer-encoding/56502>\
**Category:** Questions\
**Tags:** benchmark, nx\
**Created:** [June 14, 2023, 3:53pm UTC](https://forum.elixirforum.com/t/nx-vs-python-performance-for-sentence-transformer-encoding/56502 "2023-06-14T15:53:14Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![josevalim](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/josevalim/32/1787_2.png) [@josevalim](https://forum.elixirforum.com/u/josevalim)\
**Post date:** [June 30, 2023, 10:30am UTC](https://forum.elixirforum.com/t/nx-vs-python-performance-for-sentence-transformer-encoding/56502/30 "2023-06-30T10:30:18Z")

</div>

Btw, folks can also try running [ONNX versions of the models](https://github.com/elixir-nx/ortex) if the lack of dynamic shapes is being a hindrance.

---

_[View the full topic](https://forum.elixirforum.com/t/nx-vs-python-performance-for-sentence-transformer-encoding/56502)._
