This model is a conversion of
valurank/distilroberta-bias
to ONNX
format. It is designed to detect biases in text using the distilled version of the RoBERTa model. The model was converted to ONNX using the
🤗 Optimum
library.
Model Architecture
Base Model
: DistilRoBERTa, a distilled version of the RoBERTa model that is optimized for faster performance while maintaining similar accuracy.
Modifications
: The model is converted to ONNX format with no additional changes.
Usage
Optimum
Loading the model requires the
🤗 Optimum
library installed.
from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("laiyer/distilroberta-bias-onnx")
model = ORTModelForSequenceClassification.from_pretrained("laiyer/distilroberta-bias-onnx")
classifier = pipeline(
task="text-classification",
model=model,
tokenizer=tokenizer,
)
classifier_output = classifier("Your text to analyze for bias.")
score = (classifier_output[0]["score"] if classifier_output[0]["label"] == "BIASED"else1 - classifier_output[0]["score"])
Join our Slack to give us feedback, connect with the maintainers and fellow users, ask questions,
or engage in discussions about LLM security!
Runs of protectai distilroberta-bias-onnx on huggingface.co
20.0K
Total runs
3.5K
24-hour runs
4.5K
3-day runs
6.4K
7-day runs
14.2K
30-day runs
More Information About distilroberta-bias-onnx huggingface.co Model
distilroberta-bias-onnx huggingface.co
distilroberta-bias-onnx huggingface.co is an AI model on huggingface.co that provides distilroberta-bias-onnx's model effect (), which can be used instantly with this protectai distilroberta-bias-onnx model. huggingface.co supports a free trial of the distilroberta-bias-onnx model, and also provides paid use of the distilroberta-bias-onnx. Support call distilroberta-bias-onnx model through api, including Node.js, Python, http.
distilroberta-bias-onnx huggingface.co is an online trial and call api platform, which integrates distilroberta-bias-onnx's modeling effects, including api services, and provides a free online trial of distilroberta-bias-onnx, you can try distilroberta-bias-onnx online for free by clicking the link below.
protectai distilroberta-bias-onnx online free url in huggingface.co:
distilroberta-bias-onnx is an open source model from GitHub that offers a free installation service, and any user can find distilroberta-bias-onnx on GitHub to install. At the same time, huggingface.co provides the effect of distilroberta-bias-onnx install, users can directly use distilroberta-bias-onnx installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
distilroberta-bias-onnx install url in huggingface.co: