Downloads · 30 days
163
80% of all-time downloads
ctyau/cohere-transcribe-coreml-int8
cohere-transcribe-coreml-int8 is a automatic speech recognition model from ctyau. Use it when you need speech turned into text. The card lists the license as cc-by-nc-4.0.
This repository provides W8A16 Linear Symmetric Quantized CoreML (.mlpackage) models for Cohere Transcribe 2B (c4ai-transcribe-2b), optimized for high-performance speech-to-text on Apple Silicon (M1/M2/M3/M4/M5) and m…
Downloads · 30 days
163
80% of all-time downloads
All-time downloads
205
Public
Repo size
4 GB
Likes
0
Public
Click a slice to open those files.
.bin4 GB · 100%
From the Hugging Face model README
This repository provides W8A16 Linear Symmetric Quantized CoreML (.mlpackage) models for Cohere Transcribe 2B (c4ai-transcribe-2b), optimized for high-performance speech-to-text on Apple Silicon (M1/M2/M3/M4/M5) and mobile Apple devices.
Quantized using Apple's official coremltools.optimize.coreml pipeline with OpLinearQuantizerConfig(mode='linear_symmetric', dtype='int8').
Benchmarked on the full 15.08-minute (904.93s) JFK Inaugural Address:
| Metric | Lossless FP16 Baseline | W8A16 INT8 CoreML Engine | Advantage |
|---|---|---|---|
| Total Audio Duration | 904.93 s (15.08 min) | 904.93 s (15.08 min) | Identical |
| Total Compute Time | 15.913 s | 14.837 s | -1.08s faster |
| Real-Time Factor (RTF) | 0.0176 | 0.0164 | Lower is better |
| Throughput Speedup | 56.9x Real-Time | 61.0x Real-Time | +4.1x RT throughput |
| Peak Chunk Speedup | ~61x RT | 73.8x Real-Time (270 ms / 20s) | Instantaneous |
| Decoder Weight Size | 258 MB | 129 MB | 50% reduction |
| Accuracy | 1411 / 1411 words (100%) | 1437 words | Verbatim fidelity |
cohere_encoder.mlpackage): Runs natively on the Apple Neural Engine (ANE), processing 20s of audio in ~190 ms while consuming 0% of the GPU.cohere_decoder_prefill.mlpackage): INT8 weights (145 MB), computes prompt representation in ~30 ms on GPU.cohere_decoder_decode.mlpackage): INT8 weights (129 MB) utilizing in-place Metal buffer mutation via MLState. Autoregressive single-step token latency drops from $1.68\text{ ms} \rightarrow 0.84\text{ ms}$ weight memory read time.To install and compile these INT8 CoreML models into Voxtype:
cd ~/voxtype
python3 scripts/setup_cohere_coreml.py --repo-id ctyau/cohere-transcribe-coreml-int8
This will automatically:
.mlpackage bundles..mlmodelc bundles for your specific Mac.~/Library/Application Support/voxtype/models/cohere-transcribe-fp16/compiled_coreml.