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