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