Vespa can import TensorFlow models converted to the ONNX format. The tutorial
TensorFlow: Deploy model to Vespa through ONNX
shows an end-to-end example from training a Learning-to-Rank (LTR) model to
deploying it to Vespa. The tutorial can be reproduced by running the
Jupyter Notebook.
Key steps covered in the tutorial above:
Define and train a tf_model.
Save the model to disk: tf_model.save("tf_model_file")
Convert the model to ONNX with the tf2onnx library: