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