Instructions to use SummerSigh/Safety-Policy-MiniLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SummerSigh/Safety-Policy-MiniLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SummerSigh/Safety-Policy-MiniLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SummerSigh/Safety-Policy-MiniLM") model = AutoModelForSequenceClassification.from_pretrained("SummerSigh/Safety-Policy-MiniLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
a55b637 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:fa919170495afbc86481b2ba28b16bfef241790e322601b4edc6bdc1f913d71f
size 17098179
|