MeMo is a notebook application published on Microsoft Store https://apps.microsoft.com/detail/9N8BJ58F1Q24?hl=en-us&gl=US&ocid=pdpshare. here is a quantitative bert model inside for keywords extractions and the transform python script
1
stars
26
commits
Python
primary language
Sep 30, 2025
updated
📘 Quantitative-BERT Model for Memo
Scripts and converted models to run a compact ERNIE / BERT-style keyword-classification model on desktop and mobile. Includes reproducible conversion pipeline: PyTorch → ONNX → TensorFlow SavedModel → TFLite (post-training quantization). It includes both ONNX (PC client) and TFLite (mobile client) versions with fully built-in BERT support. MeMo (note app) — published on Microsoft Store and Xiaomi App Store.
✨ Overview
Highlights / Features
model_quint8_avx2.onnx).We recommend Python 3.10 on Linux/CPU for reproducibility.
git clone https://github.com/Joyhaotian/Quantitative-bert-model-for-memo.git
git lfs pull # necessary to download large model files tracked by LFS
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip setuptools wheel
pip install transformers==4.41.1 torch>=2.1,<3 onnx==1.14.0 onnxruntime==1.15.1 onnx-simplifier onnx-tf==1.10.0 tensorflow==2.13.0
pip install --no-deps "typing-extensions==4.12.2"
python export_onnx.py \
--model nghuyong/ernie-3.0-nano-zh \
--output model_quint8_avx2.onnx \
--seq_len 128
python onnx_fix_indices.py --input model_quint8_avx2.onnx --output model_fixed.onnx
python onnx_to_tf.py --input model_fixed.onnx --output saved_model_dir
python tf_to_tflite.py --saved_model_dir saved_model_dir --output ernie3_nano_select.tflite --quantize
26 commits
Python
100.0%
MeMo is a notebook application published on Microsoft Store https://apps.microsoft.com/detail/9N8BJ58F1Q24?hl=en-us&gl=US&ocid=pdpshare. here is a quantitative bert model inside for keywords extractions and the transform python script
1
stars
26
commits
Python
primary language
Sep 30, 2025
updated
📘 Quantitative-BERT Model for Memo
Scripts and converted models to run a compact ERNIE / BERT-style keyword-classification model on desktop and mobile. Includes reproducible conversion pipeline: PyTorch → ONNX → TensorFlow SavedModel → TFLite (post-training quantization). It includes both ONNX (PC client) and TFLite (mobile client) versions with fully built-in BERT support. MeMo (note app) — published on Microsoft Store and Xiaomi App Store.
✨ Overview
Highlights / Features
model_quint8_avx2.onnx).We recommend Python 3.10 on Linux/CPU for reproducibility.
git clone https://github.com/Joyhaotian/Quantitative-bert-model-for-memo.git
git lfs pull # necessary to download large model files tracked by LFS
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip setuptools wheel
pip install transformers==4.41.1 torch>=2.1,<3 onnx==1.14.0 onnxruntime==1.15.1 onnx-simplifier onnx-tf==1.10.0 tensorflow==2.13.0
pip install --no-deps "typing-extensions==4.12.2"
python export_onnx.py \
--model nghuyong/ernie-3.0-nano-zh \
--output model_quint8_avx2.onnx \
--seq_len 128
python onnx_fix_indices.py --input model_quint8_avx2.onnx --output model_fixed.onnx
python onnx_to_tf.py --input model_fixed.onnx --output saved_model_dir
python tf_to_tflite.py --saved_model_dir saved_model_dir --output ernie3_nano_select.tflite --quantize
26 commits
Python
100.0%