This is an ONNX export of the
minishlab/potion-base-32m
Model2Vec
model, produced with the
ONNX
runtime.
Model2Vec
models use static embeddings, allowing text embeddings to be computed orders of magnitude faster on both GPU and CPU. This ONNX export lets you run the model with
onnxruntime
or
transformers.js
, without depending on the
model2vec
package.
Usage
Using ONNX Runtime
import onnxruntime as ort
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("potion-base-32m_onnx")
session = ort.InferenceSession("model.onnx")
encodings = tokenizer(["Example sentence"], padding=True, return_tensors="np")
embeddings = session.run(None, dict(encodings))[0]
Using the original Model2Vec model
If you don't need the ONNX runtime, you can load the original model with the
Model2Vec library
instead:
from model2vec import StaticModel
model = StaticModel.from_pretrained("minishlab/potion-base-32m")
embeddings = model.encode(["Example sentence"])
potion-base-32m-onnx huggingface.co is an AI model on huggingface.co that provides potion-base-32m-onnx's model effect (), which can be used instantly with this minishlab potion-base-32m-onnx model. huggingface.co supports a free trial of the potion-base-32m-onnx model, and also provides paid use of the potion-base-32m-onnx. Support call potion-base-32m-onnx model through api, including Node.js, Python, http.
potion-base-32m-onnx huggingface.co is an online trial and call api platform, which integrates potion-base-32m-onnx's modeling effects, including api services, and provides a free online trial of potion-base-32m-onnx, you can try potion-base-32m-onnx online for free by clicking the link below.
minishlab potion-base-32m-onnx online free url in huggingface.co:
potion-base-32m-onnx is an open source model from GitHub that offers a free installation service, and any user can find potion-base-32m-onnx on GitHub to install. At the same time, huggingface.co provides the effect of potion-base-32m-onnx install, users can directly use potion-base-32m-onnx installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
potion-base-32m-onnx install url in huggingface.co: