ONNX Model Zoo

bnicenboim/gpt2-spanish-onnx

By bnicenboim · ↓ 14 · ♥ 0 · Updated 2026-03-13

What's in this repo

This page lists the files in bnicenboim/gpt2-spanish-onnx, including model.onnx, model_quantized.onnx.

  • 2 ONNX models (.onnx files)
  • 12 files, including 7 .json, 2 .onnx, 1 .md, 1 .txt
  • Last updated 2026-03-13

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_quantized.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

gpt2-spanish (ONNX)

ONNX export of DeepESP/gpt2-spanish for use in the browser with Transformers.js.

Usage with Transformers.js

import { pipeline } from '@huggingface/transformers';

const generator = await pipeline(
  'text-generation',
  'bnicenboim/gpt2-spanish-onnx'
);

const result = await generator('El gato estaba en', { max_new_tokens: 50 });
console.log(result[0].generated_text);

Model details

  • Base model: DeepESP/gpt2-spanish
  • Architecture: GPT-2 (~117M parameters)
  • Language: Spanish (es)
  • Format: ONNX (fp32) + quantized int8
  • Exported with: 🤗 Optimum
  • Training corpus: 11.5GB of Spanish text including Wikipedia, novels, short stories, theater, poetry, and essays

Intended use

Causal language modelling / text completion in Spanish, running client-side in the browser via Transformers.js. Not an instruction or chat model.

Model info

text-generation transformers.js
transformers.js onnx gpt2 text-generation spanish causal-lm es base_model:DeepESP/gpt2-spanish base_model:quantized:DeepESP/gpt2-spanish license:mit region:us
↓ 14 ♥ 0

Created: 2026-03-13

Updated: 2026-03-13

View on Hugging Face

Files (12)

.gitattributes
README.md
config.json
generation_config.json
merges.txt
onnx/model.onnx ONNX
onnx/model_quantized.onnx ONNX
ort_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models