Skip to content

Xenova

gpt2

Xenova/gpt2

gpt2 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/gpt2 with ONNX weights to be compatible with Transformers.js.

Downloads · 30 days

5.7K

5% of all-time downloads

All-time downloads

109K

Public

Repo size

10.1 GB

Likes

12

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.onnx4.4 GB · 100%

At a glance

Task
Text Generation
Library
transformers.js
Model type
gpt2
Access
Public
Created
May 2, 2023
Updated
Aug 18, 2025
SHA
bf2c7f02

Try a prompt

Base models

Task
Text Generation
Library
transformers.js
Type
gpt2
Created
May 2, 2023
Updated
Aug 18, 2025
gpt2 — AI Model — AIMarketly