Skip to content

dbernsohn

distilgpt2-onnx

dbernsohn/distilgpt2-onnx

distilgpt2-onnx is a text generation model from dbernsohn. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as apache-2.0.

A custom ONNX export of distilbert/distilgpt2 that includes attention weights as graph outputs, quantized to int8 for efficient in-browser inference via Transformers.js.

Downloads · 30 days

71

11% of all-time downloads

All-time downloads

618

Public

Repo size

210 MB

Likes

0

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.onnx88.5 MB · 95%

At a glance

Task
Text Generation
Library
transformers.js
License
apache-2.0
Model type
gpt2
Access
Public
Created
Apr 7, 2026
Updated
Apr 10, 2026
SHA
8a9a22af

Try a prompt

Base models

Task
Text Generation
Library
transformers.js
Type
gpt2
License
apache-2.0
Created
Apr 7, 2026
Updated
Apr 10, 2026