~/talk

Converting sentence-transformers models to a single tensorflow graph

Talkat PyData Global 2022 · 2022-12-01..12-03· [machine-learning]
links:none on file
slides:none on file

Converts sentence-transformers (example all-miniLM-L6-v2) into a single TensorFlow SavedModel that accepts raw strings, folding tokenizer, padding, model and postprocessing into one graph. Uses tensorflow-text, Hugging Face sentence-transformers/Transformers APIs and Keras/AutoModel to reproduce embeddings (transcript shows 368‑dim for that model). Code publishes as notebooks and a GitHub package (tensorflow_exporter); unit tests compare Python outputs to the exported graph and saved models serve identical predictions.

AI-written summary · about

  1. 0:00Introduction
  2. 2:15Motivation for TF exporter
  3. 7:13Sentence Transformers architecture
  4. 12:57Implementing TF exporter
  5. 18:42Demonstrating TF exporter
  6. 20:27Testing and validation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.