Instructions to use OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4" --prompt "Once upon a time"
- Atomic Chat
Runtime: Osaurus 1.0.14 or newer (
osaurus.json:required_osaurus_version1.0.14,model_version1).
OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4
92.98 GB (86.59 GiB) on disk (84.97 GB target + 8.01 GB bundled dspark/ speculative drafter). This is an Apple Silicon JANGHT quantization of Baidu’s text-only ERNIE 5.5 Flash Preview (279.59B parameters, ~14B active, 43 layers: 37 HCA + 6 sparse MLA/DSA). The target uses calibrated JANGT2 and JANGH2/JANGH3 expert banks alongside the native MXFP8/BF16 target trunk (2.431 bits per source parameter across target shards, DSpark excluded). Baidu’s release · Pinned source checkpoint
Runtime and features
- Osaurus version gate — 1.0.14 (
vmlx-swiftERNIE 5.5 Flash runtime, fused Metal kernels, and native adaptive DSpark). - Inputs and outputs — Text, native reasoning controls (
Off/Low/Medium/High, defaultHigh), and native tool protocol (<ernie:tool_call>/<ernie:tool_output>). - Bundled DSpark speculative drafter (
dspark/) — 3-layer JANGH3 W4A8 + affine 4-bit (g64) feature-projection drafter (8.01 GB, block size 7, adaptive draft ladder 1–14). Automatically discovered by Osaurus with liveOff (AR)/On (Adaptive)toggling in the model selector without unloading target weights. - Measured memory (Apple M5 Ultra, 256 GB) — 82.4 GiB resident footprint in pure AR (4.5k prefill & decode), 86.4–90.8 GiB with DSpark attached. Context length and residency on a physical 128 GiB Mac remain unmeasured.
Measured local speed (Apple M5 Ultra, Release vmlx-swift & Osaurus.app)
| Workload | Speed | Notes |
|---|---|---|
| 4,591-token uncached prefill | 1,564 cold / 1,640 warm tok/s | 2.80 s warm, 82.4 GiB footprint |
Pure autoregressive decode (RunBench) |
38.8–40.6 tok/s | 82.5 GiB footprint |
Adaptive DSpark greedy coding (RunBench) |
63.7–67.7 tok/s | Tail 65.6–71.5 tok/s, commitForwards=0, 90.4 GiB |
Adaptive DSpark sampled coding (temp=1.0, top_p=0.95) |
49.5–55.4 tok/s | Bundle sampling defaults, tail 52.6–59.7 tok/s |
Adaptive DSpark sampled reasoning (thinking=1) |
48.3 tok/s | Bundle sampling defaults |
Live Release Osaurus.app (Medium + DSpark, sampled) |
44.0–56.5 tok/s | 478–933 tok replies, 3,947–4,844 pp/s on SSD cache hit |
Token-distribution fidelity
On a separate authored suite of 22 cases and 1,364 target positions, the target bundle had 86.00% top-1 agreement and 0.1760 mean KL against the native checkpoint. Both models used Baidu’s tokenizer and the same fixed prompt and continuation token IDs. The source reference ran native packed MXFP4 experts with per-group E4M3 activation rounding in MLX. KL uses full-vocabulary FP32 distributions in the native-to-quant direction. Top-1 agreement is the share of positions where both models choose the same highest-logit token. ΔNLL is the change in loss on the authored continuation, in nats per token.
| Slice | Positions | Top-1 agreement | Mean KL | Median KL | P95 KL | P99 KL | ΔNLL |
|---|---|---|---|---|---|---|---|
| All categories | 1,364 | 86.00% | 0.1760 | 0.0368 | 0.7019 | 2.0230 | -0.4018 |
| Reasoning and math | 312 | 90.06% | 0.0749 | 0.0295 | 0.2871 | 0.5468 | -0.0151 |
| Coding | 516 | 88.95% | 0.1654 | 0.0118 | 0.7268 | 2.1655 | -0.5258 |
| Terminal workflows | 109 | 70.64% | 0.2181 | 0.1438 | 0.7497 | 1.1649 | -0.4917 |
| Defensive security | 111 | 86.49% | 0.2301 | 0.1172 | 0.5224 | 1.8803 | -0.4630 |
| Multilingual | 194 | 78.87% | 0.2958 | 0.0439 | 1.4477 | 2.9080 | -0.6645 |
| Structured instructions | 71 | 83.10% | 0.3034 | 0.0756 | 0.8634 | 3.4544 | -0.4715 |
| Tool protocol | 51 | 94.12% | 0.0609 | 0.0007 | 0.3599 | 0.5245 | -0.0899 |
Coding covers Python, Rust, Swift, Go, TypeScript, C++, SQL, and Java. The multilingual fixtures cover Spanish, French, and Japanese. The tool protocol slice includes both tool arguments and a response following a supplied tool result. The high-effort slice uses 3 authored reasoning examples.
| Slice | Positions | Top-1 agreement | Mean KL | Median KL | P95 KL | P99 KL | ΔNLL |
|---|---|---|---|---|---|---|---|
| High effort, whole continuation | 312 | 90.06% | 0.0749 | 0.0295 | 0.2871 | 0.5468 | -0.0151 |
| Thinking off, whole continuation | 1,052 | 84.79% | 0.2060 | 0.0422 | 0.8036 | 2.3708 | -0.5164 |
| High-effort reasoning and close marker | 193 | 90.16% | 0.0794 | 0.0333 | 0.2833 | 0.5556 | +0.0183 |
| High-effort answer and stop | 119 | 89.92% | 0.0677 | 0.0219 | 0.3025 | 0.4566 | -0.0692 |
On the separate 252-position native-trace replay used during variant selection, the final bundle had 94.05% top-1 agreement, 0.0289 mean KL, and +0.0174 ΔNLL. Per-case measurements
한국어 안내
이 모델은 Baidu ERNIE 5.5 Flash Preview의 텍스트 전용 JANGHT 양자화 모델이며, 3레이어 JANGH3 DSpark 투기적 디코딩 드래프터(dspark/)가 함께 포함되어 있습니다. 총 디스크 용량은 92.98 GB(타깃 84.97 GB + DSpark 8.01 GB)이며 Osaurus 버전 게이트는 1.0.14입니다. 위 평가에는 주제별 KL과 원본 모델 대비 top-1 일치율 및 M5 Ultra 기준 실측 속도를 기록했습니다.
License
Apache 2.0. License
- Downloads last month
- 76
Quantized
Model tree for OsaurusAI/ERNIE-5.5-Flash-Preview-JANGHT2.4
Base model
baidu/ERNIE-5.5-Flash-Base