Downloads · 30 days
0
bennysee/gpt2-amharic-onnx-q8
gpt2-amharic-onnx-q8 is a machine learning model from bennysee. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is a quantized version of rasyosef/gpt2-small-amharic converted to ONNX with 8-bit quantization.
Downloads · 30 days
0
Access
Public
Updated Jun 6, 2026
Repo size
34.9 MB
Likes
0
Public
Click a slice to open those files.
.onnx34.9 MB · 96%
From the Hugging Face model README
This is a quantized version of rasyosef/gpt2-small-amharic converted to ONNX with 8-bit quantization.
import onnxruntime as ort
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('bennysee/gpt2-amharic-onnx-q8')
session = ort.InferenceSession('bennysee/gpt2-amharic-onnx-q8/model_q8.onnx')
text = 'ሰላም'
inputs = tokenizer(text, return_tensors='np')
outputs = session.run(None, {'input_ids': inputs['input_ids']})