Text Classification
setfit
Safetensors
sentence-transformers
generated_from_setfit_trainer
Eval Results (legacy)
Instructions to use cbpuschmann/klimacoder2_v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use cbpuschmann/klimacoder2_v0.1 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("cbpuschmann/klimacoder2_v0.1") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use cbpuschmann/klimacoder2_v0.1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cbpuschmann/klimacoder2_v0.1") 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 config.json from cbpuschmann/klimacoder2_v0.1: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/cbpuschmann/klimacoder2_v0.1/resolve/main/config.json
- Command line
-
hf download hf://cbpuschmann/klimacoder2_v0.1/config.json
-
curl -L -o config.json https://huggingface.co/cbpuschmann/klimacoder2_v0.1/resolve/main/config.json
294 Bytes
| { | |
| "labels": null, | |
| "model_body": null, | |
| "model_card_data": null, | |
| "model_head": null, | |
| "multi_target_strategy": null, | |
| "normalize_embeddings": false, | |
| "sentence_transformers_kwargs": { | |
| "cache_folder": null, | |
| "device": null, | |
| "token": null, | |
| "trust_remote_code": false | |
| } | |
| } |