Instructions to use mrin/SetFit_on_Disaster_tweets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mrin/SetFit_on_Disaster_tweets with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mrin/SetFit_on_Disaster_tweets") 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 mrin/SetFit_on_Disaster_tweets with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mrin/SetFit_on_Disaster_tweets") 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 mrin/SetFit_on_Disaster_tweets: direct link, hf CLI and curl.
- Browser
- Download file 6.99 kB
-
https://huggingface.co/mrin/SetFit_on_Disaster_tweets/resolve/main/model_head.pkl
- Command line
-
hf download hf://mrin/SetFit_on_Disaster_tweets/model_head.pkl
-
curl -L -o model_head.pkl https://huggingface.co/mrin/SetFit_on_Disaster_tweets/resolve/main/model_head.pkl
6.99 kB
- Xet hash:
- c2c1ac446b71a444ed5b30f3fa17be49597e7b6bd9ff7c679461dc7492129103
- Size of remote file:
- 6.99 kB
- SHA256:
- 9044631533cf44c034288fa61a1be878ebf0029ded338bab46f23e0fa419b6e6
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.