Instructions to use unitary/toxic-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unitary/toxic-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="unitary/toxic-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("unitary/toxic-bert") model = AutoModelForSequenceClassification.from_pretrained("unitary/toxic-bert", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download flax_model.msgpack from unitary/toxic-bert: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/unitary/toxic-bert/resolve/main/flax_model.msgpack
- Command line
-
hf download hf://unitary/toxic-bert/flax_model.msgpack
-
curl -L -o flax_model.msgpack https://huggingface.co/unitary/toxic-bert/resolve/main/flax_model.msgpack
438 MB
- Xet hash:
- c66f8d14210dfeea371c17c91e1ff954955d3401a8414d5c1f42140c65deb776
- Size of remote file:
- 438 MB
- SHA256:
- 0d0f2f0f91fba48e031aa7afa281c4b57fea20bbff32cef6d01d3e8ac74ba1d6
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.