keisuke-miyako/h2o-danube3.1-4b-chat-onnx-int4-NG
By keisuke-miyako · ↓ 0 · ♥ 0 · Updated 2026-01-06
What's in this repo
This page lists the files in keisuke-miyako/h2o-danube3.1-4b-chat-onnx-int4-NG, including model.onnx.
- 1 ONNX models (.onnx files)
- 10 files, including 4 .json, 1 .md, 1 .jinja, 1 .onnx, 1 .data, 1 .model
- Last updated 2026-01-06
ONNX files
| File | Size | Download |
|---|---|---|
| model.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
⚠️ Do not use with onnxruntime-genai; model architecture has a non-standard head size of 120 which is not divisible by 16.
from google.colab import drive
drive.mount('/content/drive')
!pip install "optimum[onnxruntime-gpu]" transformers
!pip install numpy onnxruntime-genai
from huggingface_hub import snapshot_download
import os
# --- STEP 1: Download the model locally ---
print("Downloading model snapshot to local disk...")
# We use Python here so we don't need the flag in the command line later
local_model_path = snapshot_download(
repo_id="h2oai/h2o-danube3.1-4b-chat",
ignore_patterns=["*.msgpack", "*.h5", "*.ot"] # Skip useless files to save speed
)
print(f"Model downloaded to: {local_model_path}")
# --- STEP 2: Run the Builder on the local files ---
# We pass the local path variable to the command using '$'
print("Starting INT4 Conversion...")
!python -m onnxruntime_genai.models.builder \
-m "$local_model_path" \
-o "/content/drive/My Drive/Danube_3_1_INT4_CPU" \
-p int4 \
-e cpu
print("REAL SUCCESS! Check your Drive folder: Danube_INT4_CPU")
Model info
onnx
base_model:h2oai/h2o-danube3.1-4b-chat
base_model:quantized:h2oai/h2o-danube3.1-4b-chat
region:us
↓ 0
♥ 0
Created: 2026-01-06
Updated: 2026-01-06
View on Hugging FaceFiles (10)
.gitattributes
README.md
chat_template.jinja
genai_config.json
model.onnx
ONNX
model.onnx.data
special_tokens_map.json
tokenizer.json
tokenizer.model
tokenizer_config.json
Related models
More from keisuke-miyako
More models
No task type declared.