Instructions to use JoshELambert/marginalization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JoshELambert/marginalization with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JoshELambert/marginalization") 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] - setfit
How to use JoshELambert/marginalization with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JoshELambert/marginalization") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download model_head.pkl from JoshELambert/marginalization: direct link, hf CLI and curl.
- Browser
- Download file 7.12 kB
-
https://huggingface.co/JoshELambert/marginalization/resolve/main/model_head.pkl
- Command line
-
hf download hf://JoshELambert/marginalization/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/JoshELambert/marginalization/resolve/main/model_head.pkl
7.12 kB
- Xet hash:
- b3fa7a54a4d30ba02de2b1bdeef31c71733216ae2cdd3c52fa9abd68e9ddf38b
- Size of remote file:
- 7.12 kB
- SHA256:
- cc8cf3e6118dc29d2cb8427ecfcf8a363cc8d43944db085dc86c44a9a5de15dd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.