Skip to content

inference4j

gpt2

inference4j/gpt2

gpt2 is a text generation model from inference4j. Use it when you need the model to write or continue text. It is set up for onnx. The card lists the license as mit.

ONNX export of GPT-2 (124M parameters) with KV cache support for efficient autoregressive generation.

Downloads · 30 days

18

27% of all-time downloads

All-time downloads

67

Public

Repo size

653 MB

Likes

0

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.onnx653 MB · 100%

At a glance

Task
Text Generation
Library
onnx
License
mit
Model type
gpt2
Access
Public
Created
Feb 20, 2026
Updated
Feb 20, 2026
SHA
48fa9592

Try a prompt

Task
Text Generation
Library
onnx
Type
gpt2
License
mit
Created
Feb 20, 2026
Updated
Feb 20, 2026
gpt2 — AI Model — AIMarketly