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