Instructions to use TheMrguiller/ToxDialogDefender with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheMrguiller/ToxDialogDefender with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TheMrguiller/ToxDialogDefender")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TheMrguiller/ToxDialogDefender") model = AutoModelForSequenceClassification.from_pretrained("TheMrguiller/ToxDialogDefender", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload 3 files
Files that were used in the training. There were concanated and then split using the following command: \np.split(df.sample(frac=1, random_state=42), [int(.8*len(df)), int(.9*len(df))])bcbd707