Text Classification
Transformers
Safetensors
PyTorch
English
gpt2
news-topic-classification
distilgpt2
ag-news
causal-lm
Eval Results (legacy)
Instructions to use ZyroGod/distilgpt2-news-topic-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZyroGod/distilgpt2-news-topic-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ZyroGod/distilgpt2-news-topic-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ZyroGod/distilgpt2-news-topic-classification") model = AutoModelForSequenceClassification.from_pretrained("ZyroGod/distilgpt2-news-topic-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_curves.png from ZyroGod/distilgpt2-news-topic-classification: direct link, hf CLI and curl.
- Browser
- Download file 130 kB
-
https://huggingface.co/ZyroGod/distilgpt2-news-topic-classification/resolve/main/training_curves.png
- Command line
-
hf download hf://ZyroGod/distilgpt2-news-topic-classification/training_curves.png
-
curl -L -o training_curves.png https://huggingface.co/ZyroGod/distilgpt2-news-topic-classification/resolve/main/training_curves.png
130 kB

- Xet hash:
- 94c019bac17ddce328ba1cb5335cfda6127f2bc7c244e1964737743c30af63fc
- Size of remote file:
- 130 kB
- SHA256:
- d0ba3842c88a4e244e8bff8d63cd17b871ff7fdbd76c5eb0aa8b51b3da886be9
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.