Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
bert
Intel
Eval Results (legacy)
text-embeddings-inference
Instructions to use Intel/polite-guard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/polite-guard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Intel/polite-guard")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Intel/polite-guard") model = AutoModelForSequenceClassification.from_pretrained("Intel/polite-guard", device_map="auto") - Transformers.js
How to use Intel/polite-guard with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Intel/polite-guard'); - Notebooks
- Google Colab
- Kaggle
Download onnx/model_quantized.onnx from Intel/polite-guard: direct link, hf CLI and curl.
- Browser
- Download file 110 MB
-
https://huggingface.co/Intel/polite-guard/resolve/main/onnx/model_quantized.onnx
- Command line
-
hf download hf://Intel/polite-guard/onnx/model_quantized.onnx
-
curl -L -o model_quantized.onnx https://huggingface.co/Intel/polite-guard/resolve/main/onnx/model_quantized.onnx
110 MB
- Xet hash:
- d7f860b9becfddf0d9e3a622b777b55388bbeda0ea8e950c018d3753194db8d6
- Size of remote file:
- 110 MB
- SHA256:
- 2024983d21ea991e4c8df8b5caf8e879a719a90b440bff07ad57875b9eb03016
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.