Instructions to use porcu-pine/bart-detox-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use porcu-pine/bart-detox-model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("porcu-pine/bart-detox-model") model = AutoModelForSeq2SeqLM.from_pretrained("porcu-pine/bart-detox-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download final_model/tokenizer.json from porcu-pine/bart-detox-model: direct link, hf CLI and curl.
- Browser
- Download file 3.56 MB
-
https://huggingface.co/porcu-pine/bart-detox-model/resolve/main/final_model/tokenizer.json
- Command line
-
hf download hf://porcu-pine/bart-detox-model/final_model/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/porcu-pine/bart-detox-model/resolve/main/final_model/tokenizer.json
3.56 MB
File too large to display, you can check the raw version instead.