ONNX Model Zoo

kamalkraj/medasr-onnx

By kamalkraj · ↓ 0 · ♥ 0 · Updated 2026-02-24

What's in this repo

This page lists the files in kamalkraj/medasr-onnx, including model.int8.onnx.

  • 1 ONNX models (.onnx files)
  • 4 files, including 1 .md, 1 .onnx, 1 .txt
  • Last updated 2026-02-24

ONNX files

File Size Download
model.int8.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

MedASR ONNX

This repository contains the google/medasr model converted to ONNX format for on-device inference using sherpa-onnx in the Android application.

Conversion Details

The model was exported to ONNX format using the k2-fsa/sherpa-onnx project scripts.

Prerequisites

  • You must have a Hugging Face account and an access token with access to the google/medasr model (you must accept the license agreement on the model card).

Export Instructions

# Clone sherpa-onnx
git clone https://github.com/k2-fsa/sherpa-onnx.git
cd sherpa-onnx
# Checkout the specific commit that was used for the conversion
git checkout bb49014c4e5dfbd60a58d1a0a7ad351883eebf40
cd scripts/medasr

# Setup environment & Convert
uv venv --python 3.12
source .venv/bin/activate
uv pip install accelerate bitsandbytes librosa onnx==1.17.0 onnxruntime==1.17.1 onnxscript "numpy<2" kaldi-native-fbank "git+https://github.com/huggingface/transformers.git@65dc261512cbdb1ee72b88ae5b222f2605aad8e5"

# Export the model
python export_onnx.py

This procedure generates the model.int8.onnx and tokens.txt files, which are used directly for on-device Automatic Speech Recognition in MedGem.

Model info

onnx base_model:google/medasr base_model:quantized:google/medasr license:other region:us
↓ 0 ♥ 0

Created: 2026-02-15

Updated: 2026-02-24

View on Hugging Face

Files (4)

.gitattributes
README.md
model.int8.onnx ONNX
tokens.txt

Related models