ONNX Model Zoo

Geraldine/Gemini-Distill-Qwen2.5-0.5B-ead-ONNX

By Geraldine · ↓ 4 · ♥ 0 · Updated 2025-03-05

What's in this repo

This page lists the files in Geraldine/Gemini-Distill-Qwen2.5-0.5B-ead-ONNX, including model.onnx, model_bnb4.onnx, model_fp16.onnx and more.

  • 8 ONNX models (.onnx files)
  • 19 files, including 8 .json, 8 .onnx, 1 .md, 1 .txt
  • Last updated 2025-03-05

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_bnb4.onnx — Download
onnx/model_fp16.onnx — Download
onnx/model_int8.onnx — Download
onnx/model_q4.onnx — Download
onnx/model_q4f16.onnx — Download
onnx/model_quantized.onnx — Download
onnx/model_uint8.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

Gemini-Distill-Qwen2.5-0.5B-ead-ONNX

Model Description

This repository contains ONNX-optimized versions of the Geraldine/Gemini-Distill-Qwen2.5-0.5B-ead model, distilled from Gemini-2.0-Flash-Thinking-Exp. This fine-tuned model is specifically designed for structured Encoded Archival Description (EAD/XML) reasoning and generation.

ONNX conversion enables faster inference on a variety of hardware, including CPUs, GPUs, and specialized inference accelerators.


Available ONNX Model Versions

The following ONNX quantized versions are provided for different inference needs:

File Name Description
model.onnx Full precision (fp32) version
model_fp16.onnx Half precision (fp16) for optimized GPU inference
model_bnb4.onnx Bitsandbytes 4-bit quantization
model_int8.onnx 8-bit integer quantization for efficient CPU inference
model_q4.onnx 4-bit quantization (for low-memory scenarios)
model_q4f16.onnx 4-bit quantization with fp16 fallback
model_uint8.onnx Unsigned 8-bit quantization
model_quantized.onnx General quantized model for mixed precision

How to Use the ONNX Model

1. Install Dependencies

Ensure you have the required dependencies for ONNX inference:

pip install onnxruntime

For GPU acceleration, install:

pip install onnxruntime-gpu

2. Load and Run Inference

You can use onnxruntime to load and run inference with the model:

import onnxruntime as ort
import numpy as np

# Load the ONNX model
session = ort.InferenceSession("model_fp16.onnx", providers=["CUDAExecutionProvider"])

# Prepare input data (example)
input_data = {"input_ids": np.array([[...]])}  # Replace with tokenized input

# Run inference
outputs = session.run(None, input_data)

# Print output
print(outputs)

Why ONNX?

  • Faster Inference: Optimized execution across different hardware.
  • Cross-Platform Compatibility: Run on CPUs, GPUs, and specialized accelerators.
  • Reduced Memory Usage: Quantized versions provide significant efficiency gains.

Citation & Acknowledgments

If you use this model in research or production, please cite:

@misc{your-citation,
  author = {Géraldine Geoffroy},
  title = {Gemini-Distill-Qwen2.5-0.5B-ead-ONNX},
  year = {2025},
  publisher = {Hugging Face},
  url = {https://huggingface.co/Geraldine/Gemini-Distill-Qwen2.5-0.5B-ead-ONNX}
}

Model info

text-generation transformers.js
transformers.js onnx qwen2 text-generation conversational fr en base_model:Geraldine/Gemini-Distill-Qwen2.5-0.5B-ead base_model:quantized:Geraldine/Gemini-Distill-Qwen2.5-0.5B-ead license:mit region:us
↓ 4 ♥ 0

Created: 2025-03-05

Updated: 2025-03-05

View on Hugging Face

Files (19)

.gitattributes
README.md
added_tokens.json
config.json
generation_config.json
merges.txt
onnx/model.onnx ONNX
onnx/model_bnb4.onnx ONNX
onnx/model_fp16.onnx ONNX
onnx/model_int8.onnx ONNX
onnx/model_q4.onnx ONNX
onnx/model_q4f16.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/model_uint8.onnx ONNX
quantize_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models