Instructions to use LoyalAI/Underdog-Bark-3.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LoyalAI/Underdog-Bark-3.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="LoyalAI/Underdog-Bark-3.0")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LoyalAI/Underdog-Bark-3.0", device_map="auto") - MLX
How to use LoyalAI/Underdog-Bark-3.0 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download LoyalAI/Underdog-Bark-3.0 --local-dir Underdog-Bark-3.0
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Core ML encoder takes 1-5 minutes to load the first time (never finished on an iPhone 16 Pro)
The Core ML encoder in coreml/ane/BarkEncoder.mlpackage takes minutes to load the first time, as the card notes for the Mac. On an iPhone 16 Pro (iOS 26.5.2) it never finished loading.
Timed with MLModel(contentsOf:configuration:), functionName = "w8", after compiling the package with xcrun coremlcompiler compile (M4 Pro, macOS 26.7):
| compute units | first load | next load (cached) |
|---|---|---|
| cpuAndNeuralEngine | 114 s | 0.3 s |
| cpuAndGPU | 275 s | 1.7 s |
| cpuOnly | 53 s | 0.4 s |
On the iPhone, loading w8 had not returned after 16 minutes on cpuAndNeuralEngine or cpuAndGPU, with no crash log (I didn't time w15). The compiled model's metadata lists mixed 13- and 15-bit palettisation plus sparse and 1-3-bit storage, which may be what Core ML is unpacking at load.
Would you consider a Core ML build with plain int8 or 6-bit palettised weights for iOS, where the card marks this package as untested? Once loaded, it ran fine on the Mac (0.095 s median per clip on 450 short clips).
Follow-up with a workaround. We re-saved the ANE encoder with coremltools, decompressing the palettised weights and re-quantising them to symmetric per-channel int8 (linear_quantize_weights), with the same graph and both functions (573 MB). On the iPhone 16 Pro its first load on cpuAndNeuralEngine takes 25 s for both windows (12.1 s for w8, 13.2 s for w15), against 253 to 288 s for the shipped palettised package. Word error is unchanged on the Mac: 2.58 / 5.90% against 2.55 / 5.82% on our LibriSpeech clean / other clips.
Two more things we saw on the phone:
- The palettised package on
cpuAndGPUdoesn't hang. Its memory grows by about 25 MB/s during the load until iOS kills the app at the 3.5 GB per-app limit, after about 3.5 minutes. - The compiled ANE model is cached across launches (253 s, then 0.8 s), but every app install or update pays the full compile again.
So a plain int8 Core ML build would make the iOS path practical. Separately, the Bark 3.0 Pro encoder (fp16, two functions) failed to compile for the ANE on the same phone after about 90 s, while loading fine on the CPU. Our own fp16 re-save of this encoder failed the same way, so it looks like a size limit of the on-device ANE compiler rather than anything specific to Pro.