Downloads · 30 days
0
kamalkraj/medasr-onnx
medasr-onnx is a machine learning model from kamalkraj. 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 other.
This repository contains the google/medasr model converted to ONNX format for on-device inference using sherpa-onnx in the Android application.
Downloads · 30 days
0
Access
Public
Updated Feb 24, 2026
Repo size
154 MB
Likes
0
Public
Click a slice to open those files.
.onnx154 MB · 100%
From the Hugging Face model README
This repository contains the google/medasr model converted to ONNX format for on-device inference using sherpa-onnx in the Android application.
The model was exported to ONNX format using the k2-fsa/sherpa-onnx project scripts.
google/medasr model (you must accept the license agreement on the model card).# 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.