Downloads · 30 days
0
apoapps/apochat-gemma4-e2b-litert-conversion
apochat-gemma4-e2b-litert-conversion is a machine learning model from apoapps. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This folder contains a script that converts the public Apochat-tuned MLX model into a .litertlm package that the iOS/macOS app can run with the LiteRT backend.
Downloads · 30 days
0
Access
Public
Updated Jun 26, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py12.6 KB · 80%
From the Hugging Face model README
This folder contains a script that converts the public Apochat-tuned MLX model into a
.litertlm package that the iOS/macOS app can run with the LiteRT backend.
Do not run this on the 16 GB local Mac — the conversion peaks at more than 16 GB of memory. Run it on a machine with at least:
git clone https://huggingface.co/apoapps/apochat-gemma4-e2b-litert-conversion
cd apochat-gemma4-e2b-litert-conversion
pip install -r requirements.txt
python export_apochat_litert.py \
--mlx-repo apoapps/apochat-gemma4-e2b-apochat-tuned-v1 \
--upload-repo apoapps/apochat-gemma4-e2b-apochat-tuned-v1-litert
The script will:
litert convert with weight-only int4 quantization,.litertlm to the --upload-repo.When it finishes, the artifact will be available at:
https://huggingface.co/apoapps/apochat-gemma4-e2b-apochat-tuned-v1-litert
Use that URL/revision/SHA to add the entry to Apochat/Sources/LocalAI/Catalog/BundledCatalog.swift.