Skip to content

Xenova

distilgpt2

Xenova/distilgpt2

distilgpt2 is a text generation model from Xenova. Use it when you need the model to write or continue text. It is set up for transformers.js.

https://huggingface.co/distilgpt2 with ONNX weights to be compatible with Transformers.js.

Downloads · 30 days

11.4K

6% of all-time downloads

All-time downloads

176K

Public

Repo size

9.7 GB

Likes

13

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.onnx7.7 GB · 100%

At a glance

Task
Text Generation
Library
transformers.js
Model type
gpt2
Access
Public
Created
May 3, 2023
Updated
Jul 26, 2025
SHA
a41c1048

Try a prompt

Base models

Task
Text Generation
Library
transformers.js
Type
gpt2
Created
May 3, 2023
Updated
Jul 26, 2025