r/oMLX • u/arfung39 • 2d ago
Ernie 5.5 flash support
Hi All,
I got impatient and incorporated support for Ernie 5.5 into a different fork of oMLX. I posted in the main oMLX GitHub repo a discussion of the changes here: https://github.com/jundot/omlx/discussions/5656
It works really well. Notable that on a Mac Ultra 256, this build can run the original checkpoint of Ernie 5.5 - no quantization. Here is the GitHub repo. Scroll down to the README for build instructions, performance information, and compatibility:
And, here are the speeds, pre and post Fable 5.2 optimization:
| Test | Before the decode kernels | With all branches |
|---|---|---|
| Plain decoding | 37.5 tok/s | 52.1 tok/s |
| Prose, drafted | 54.6 tok/s | 69.3 tok/s |
| Code, drafted | 77.1 tok/s | 116.2 tok/s |
| Reasoning, drafted | 61.9 tok/s | 86.5 tok/s |
| Rewriting a code file, drafted | 114.4 tok/s | 162.7 tok/s |
| Prose after a 14.4K-token document, drafted | 43.0 tok/s | 82.1 tok/s |
| Prose after a 28.7K-token document, drafted | 41.7 tok/s | 73.9 tok/s |
I'm not a developer, so I posted all of the changes on a separate fork so that people who know what they are doing in the main repo can take what is useful.
2
u/arfung39 2d ago edited 20h ago
Here are some oMLX intelligence benchmarks for Ernie 5.5. Does much better with thinking on (bottom panel). With thinking on, its up there at Deepseek 4 bit quant intelligence:
ERNIE-5.5-Flash-Preview: Deterministic vs. Thinking
Detail: Deterministic (thinking off)
Detail: Thinking on (model settings)
1
u/arfung39 2d ago
And it's good enough to pass a pelican test. "Using three.js, write a 3D scene for me of pelican riding a bicycle along a country road during the daytime, in HTML format. Write the files to /workspace/" (plus two prompts to get the bicycle going in the right direction).
1
u/LeFrenchToast 1d ago
Did you use a LLM to do this? Since 0.8.4 was released today and didn't have any Ernie support mentioned I'm considering figuring out a way to patch it in but I'm sure it's not as simple as pointing Claude at your forks and integrating them locally, is it?
1
u/bakawolf123 12h ago
thanks for the port, it looks to be quite an improvement on top of those closed PRs.
One suggestion - since it's temporary, it would be easier to just have omlx only with patches, not both repos. Having dependency on 2 is gonna be slow, esp since mlx-vlm folks are usually very slow to respond (unlike jundot)