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
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
Created: 2026-03-13
Updated: 2026-03-13
View on Hugging Face