Instructions to use Likang/OSS-Governance-Update with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Likang/OSS-Governance-Update with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Likang/OSS-Governance-Update") 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 Likang/OSS-Governance-Update with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("Likang/OSS-Governance-Update") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Likang/OSS-Governance-Update: direct link, hf CLI and curl.
- Browser
- Download file 994 Bytes
-
https://huggingface.co/Likang/OSS-Governance-Update/resolve/main/README.md
- Command line
-
hf download hf://Likang/OSS-Governance-Update/README.md
-
curl -L -o README.md https://huggingface.co/Likang/OSS-Governance-Update/resolve/main/README.md
994 Bytes
metadata
license: apache-2.0
tags:
- setfit
- sentence-transformers
- text-classification
pipeline_tag: text-classification
Likang/OSS-Governance
This is a SetFit model that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:
- Fine-tuning a Sentence Transformer with contrastive learning.
- Training a classification head with features from the fine-tuned Sentence Transformer.
Usage
To use this model for inference, first install the SetFit library:
python -m pip install setfit
You can then run inference as follows:
from setfit import SetFitModel
# Download from Hub and run inference
model = SetFitModel.from_pretrained("Likang/OSS-Governance-Update")
# Run inference
preds = model(["Let's schedule a meeting to discuss how to onboard new committers!"])
BibTeX entry and citation info
TBA