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