OVOS | ILENIA - model2vec intent models
Collection
intent classifiers trained under the ILENIA project โข 8 items โข Updated
Run OpenVoiceOS/ovos-model2vec-intents-LaBSE on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/OpenVoiceOS/ovos-model2vec-intents-LaBSE. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/OpenVoiceOS/ovos-model2vec-intents-LaBSE on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use OpenVoiceOS/ovos-model2vec-intents-LaBSE with Model2Vec:
from model2vec import StaticModel
model = StaticModel.from_pretrained("OpenVoiceOS/ovos-model2vec-intents-LaBSE")
embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."])
print(embeddings.shape)How to use OpenVoiceOS/ovos-model2vec-intents-LaBSE with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("OpenVoiceOS/ovos-model2vec-intents-LaBSE")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]This Model2Vec model is a fine-tuned version of the unknown Model2Vec model. It also includes a classifier head on top.
Install model2vec using pip:
pip install model2vec[inference]
Load this model using the from_pretrained method:
from model2vec.inference import StaticModelPipeline
# Load a pretrained Model2Vec model
model = StaticModelPipeline.from_pretrained("model_mul_m2v-256-LaBSE")
# Predict labels
predicted = model.predict(["Example sentence"])
Model2Vec was developed by the Minish Lab team consisting of Stephan Tulkens and Thomas van Dongen.
Please cite the Model2Vec repository if you use this model in your work.
@article{minishlab2024model2vec,
author = {Tulkens, Stephan and {van Dongen}, Thomas},
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
year = {2024},
url = {https://github.com/MinishLab/model2vec}
}