ippon 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ippon-0.1.0/.gitignore +22 -0
- ippon-0.1.0/CHANGELOG.md +325 -0
- ippon-0.1.0/LICENSE +202 -0
- ippon-0.1.0/NOTICE +143 -0
- ippon-0.1.0/PKG-INFO +701 -0
- ippon-0.1.0/README.md +663 -0
- ippon-0.1.0/hatch_build.py +85 -0
- ippon-0.1.0/native/Cargo.lock +343 -0
- ippon-0.1.0/native/Cargo.toml +19 -0
- ippon-0.1.0/native/src/audio.rs +280 -0
- ippon-0.1.0/native/src/gguf.rs +221 -0
- ippon-0.1.0/native/src/lib.rs +392 -0
- ippon-0.1.0/pyproject.toml +153 -0
- ippon-0.1.0/references/attention/d3-lite-4k-expanded.json.gz +0 -0
- ippon-0.1.0/references/attention/d3-lite-4k.json.gz +0 -0
- ippon-0.1.0/references/attention/d3-lite-long-expanded.json.gz +0 -0
- ippon-0.1.0/references/attention/d3-lite-long.json.gz +0 -0
- ippon-0.1.0/references/attention/nimble-9b-within-4k.json.gz +0 -0
- ippon-0.1.0/references/attention/pplx-flash-4k-expanded.json.gz +0 -0
- ippon-0.1.0/references/attention/pplx-flash-4k.json.gz +0 -0
- ippon-0.1.0/references/attention/pplx-flash-long-expanded.json.gz +0 -0
- ippon-0.1.0/references/attention/pplx-flash-long.json.gz +0 -0
- ippon-0.1.0/references/autotrust/decider-mini-9b.json.gz +0 -0
- ippon-0.1.0/references/batching/d3-mini-mxfp8-dequantized.json.gz +0 -0
- ippon-0.1.0/references/byo/ModernBERT-base-zeroshot-v2.0.json.gz +0 -0
- ippon-0.1.0/references/byo/Qwen3-Reranker-0.6B.json.gz +0 -0
- ippon-0.1.0/references/byo/Skywork-Reward-V2-Qwen3-0.6B.json.gz +0 -0
- ippon-0.1.0/references/byo/bge-reranker-base.json.gz +0 -0
- ippon-0.1.0/references/byo/deberta-v3-base-prompt-injection-v2.json.gz +0 -0
- ippon-0.1.0/references/byo/distilbert-base-uncased-finetuned-sst-2-english.json.gz +0 -0
- ippon-0.1.0/references/byo/finbert.json.gz +0 -0
- ippon-0.1.0/references/byo/gemma-3-270m-it.json.gz +0 -0
- ippon-0.1.0/references/byo/ms-marco-MiniLM-L6-v2.json.gz +0 -0
- ippon-0.1.0/references/byo/ncii-light-guard-v01.json.gz +0 -0
- ippon-0.1.0/references/byo/roberta-base-go_emotions.json.gz +0 -0
- ippon-0.1.0/references/clef/9b-mxfp8.dequantized.json.gz +0 -0
- ippon-0.1.0/references/clef/9b-mxfp8.ollama.json.gz +0 -0
- ippon-0.1.0/references/clef/clef-flash-media.tokens.json.gz +0 -0
- ippon-0.1.0/references/clef/clef-flash.tokens.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-2B-json.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-2B-media.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-2B-video.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-2B.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-omni-2B-audio.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-omni-2B-media.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-omni-2B-video.json.gz +0 -0
- ippon-0.1.0/references/d1/d1-omni-2B.json.gz +0 -0
- ippon-0.1.0/references/d3/d3-flash-media.json.gz +0 -0
- ippon-0.1.0/references/d3/d3-flash-video.json.gz +0 -0
- ippon-0.1.0/references/d3/d3-flash.json.gz +0 -0
- ippon-0.1.0/references/d3/d3-mini-media.json.gz +0 -0
- ippon-0.1.0/references/d3/d3-mini-video.json.gz +0 -0
- ippon-0.1.0/references/d3/d3-mini.json.gz +0 -0
- ippon-0.1.0/references/elephant/elephant-1-media.json.gz +0 -0
- ippon-0.1.0/references/elephant/elephant-1.json.gz +0 -0
- ippon-0.1.0/references/glide/glide-2b.json.gz +0 -0
- ippon-0.1.0/references/glide/glide-9b.json.gz +0 -0
- ippon-0.1.0/references/h2o/h2o-lightning-4b-media.causal.json.gz +0 -0
- ippon-0.1.0/references/h2o/h2o-lightning-4b-media.json.gz +0 -0
- ippon-0.1.0/references/h2o/h2o-lightning-4b.causal.json.gz +0 -0
- ippon-0.1.0/references/h2o/h2o-lightning-4b.json.gz +0 -0
- ippon-0.1.0/references/h2o/h2o-lightning-4b.tokens.json.gz +0 -0
- ippon-0.1.0/references/jeff/jeff-1.1-medium.json.gz +0 -0
- ippon-0.1.0/references/jeff/jeff-1.1-qwen-4b.json.gz +0 -0
- ippon-0.1.0/references/kernel-audit/coverage-after.json.gz +0 -0
- ippon-0.1.0/references/kernel-audit/coverage-before.json.gz +0 -0
- ippon-0.1.0/references/kettei/kettei-core-decide.json.gz +0 -0
- ippon-0.1.0/references/kettei/kettei-core.json.gz +0 -0
- ippon-0.1.0/references/kettei/kettei-dot-decide.json.gz +0 -0
- ippon-0.1.0/references/kettei/kettei-dot.json.gz +0 -0
- ippon-0.1.0/references/kev/kev-0.8b.json.gz +0 -0
- ippon-0.1.0/references/kev/kev-4b.json.gz +0 -0
- ippon-0.1.0/references/kev/kev-9b.json.gz +0 -0
- ippon-0.1.0/references/perplexity/overlength-default.tokens.json.gz +0 -0
- ippon-0.1.0/references/perplexity/overlength.json.gz +0 -0
- ippon-0.1.0/references/perplexity/pplx-decider-flash-v1.3-media.json.gz +0 -0
- ippon-0.1.0/references/perplexity/pplx-decider-flash-v1.3.json.gz +0 -0
- ippon-0.1.0/references/torchcast/torchcast-decision-4b-media.json.gz +0 -0
- ippon-0.1.0/references/torchcast/torchcast-decision-4b.json.gz +0 -0
- ippon-0.1.0/references/torchcast/torchcast-decision-4b.tokens.json.gz +0 -0
- ippon-0.1.0/src/ippon/__init__.py +83 -0
- ippon-0.1.0/src/ippon/__main__.py +29 -0
- ippon-0.1.0/src/ippon/_emulate.py +55 -0
- ippon-0.1.0/src/ippon/_portable.py +72 -0
- ippon-0.1.0/src/ippon/ab.py +173 -0
- ippon-0.1.0/src/ippon/adapter.py +383 -0
- ippon-0.1.0/src/ippon/adapters/__init__.py +1 -0
- ippon-0.1.0/src/ippon/adapters/autotrust.py +162 -0
- ippon-0.1.0/src/ippon/adapters/classifier.py +353 -0
- ippon-0.1.0/src/ippon/adapters/clef.py +458 -0
- ippon-0.1.0/src/ippon/adapters/d1.py +515 -0
- ippon-0.1.0/src/ippon/adapters/d3.py +257 -0
- ippon-0.1.0/src/ippon/adapters/elephant.py +267 -0
- ippon-0.1.0/src/ippon/adapters/glide.py +214 -0
- ippon-0.1.0/src/ippon/adapters/h2o.py +422 -0
- ippon-0.1.0/src/ippon/adapters/h2o_select.py +398 -0
- ippon-0.1.0/src/ippon/adapters/jeff.py +270 -0
- ippon-0.1.0/src/ippon/adapters/kettei.py +198 -0
- ippon-0.1.0/src/ippon/adapters/kettei_labels.json +516 -0
- ippon-0.1.0/src/ippon/adapters/kev.py +206 -0
- ippon-0.1.0/src/ippon/adapters/label_tokens.py +221 -0
- ippon-0.1.0/src/ippon/adapters/perplexity.py +245 -0
- ippon-0.1.0/src/ippon/adapters/qwen.py +80 -0
- ippon-0.1.0/src/ippon/adapters/strands.py +284 -0
- ippon-0.1.0/src/ippon/adapters/torchcast.py +271 -0
- ippon-0.1.0/src/ippon/admission.py +104 -0
- ippon-0.1.0/src/ippon/agents.py +390 -0
- ippon-0.1.0/src/ippon/answers.py +79 -0
- ippon-0.1.0/src/ippon/arch/__init__.py +29 -0
- ippon-0.1.0/src/ippon/arch/base.py +174 -0
- ippon-0.1.0/src/ippon/arch/bert.py +242 -0
- ippon-0.1.0/src/ippon/arch/cache.py +198 -0
- ippon-0.1.0/src/ippon/arch/common.py +1053 -0
- ippon-0.1.0/src/ippon/arch/deberta.py +253 -0
- ippon-0.1.0/src/ippon/arch/dense.py +215 -0
- ippon-0.1.0/src/ippon/arch/gemma3.py +209 -0
- ippon-0.1.0/src/ippon/arch/gemma4.py +437 -0
- ippon-0.1.0/src/ippon/arch/lfm2.py +251 -0
- ippon-0.1.0/src/ippon/arch/lfm3.py +230 -0
- ippon-0.1.0/src/ippon/arch/modernbert.py +203 -0
- ippon-0.1.0/src/ippon/arch/ops.py +505 -0
- ippon-0.1.0/src/ippon/arch/qwen35.py +505 -0
- ippon-0.1.0/src/ippon/arch/rope.py +128 -0
- ippon-0.1.0/src/ippon/asks.py +95 -0
- ippon-0.1.0/src/ippon/batches.py +81 -0
- ippon-0.1.0/src/ippon/bench.py +397 -0
- ippon-0.1.0/src/ippon/brand.py +183 -0
- ippon-0.1.0/src/ippon/check.py +145 -0
- ippon-0.1.0/src/ippon/checkpoint.py +49 -0
- ippon-0.1.0/src/ippon/choices.py +285 -0
- ippon-0.1.0/src/ippon/cli.py +2194 -0
- ippon-0.1.0/src/ippon/compare.py +182 -0
- ippon-0.1.0/src/ippon/compare_arms/__init__.py +88 -0
- ippon-0.1.0/src/ippon/compare_arms/community_clef.py +63 -0
- ippon-0.1.0/src/ippon/compare_arms/glide_package.py +60 -0
- ippon-0.1.0/src/ippon/compare_arms/harness.py +74 -0
- ippon-0.1.0/src/ippon/compare_arms/lookup.py +36 -0
- ippon-0.1.0/src/ippon/compare_arms/mlx_embeddings_model.py +95 -0
- ippon-0.1.0/src/ippon/compare_arms/mlx_lm_model.py +76 -0
- ippon-0.1.0/src/ippon/compare_arms/mlx_vlm_model.py +108 -0
- ippon-0.1.0/src/ippon/compare_arms/ours.py +31 -0
- ippon-0.1.0/src/ippon/compare_arms/transformers_byo.py +131 -0
- ippon-0.1.0/src/ippon/daemon.py +719 -0
- ippon-0.1.0/src/ippon/decide_api.py +391 -0
- ippon-0.1.0/src/ippon/decider.py +806 -0
- ippon-0.1.0/src/ippon/device.py +153 -0
- ippon-0.1.0/src/ippon/doctor.py +139 -0
- ippon-0.1.0/src/ippon/downloads.py +414 -0
- ippon-0.1.0/src/ippon/drift.py +121 -0
- ippon-0.1.0/src/ippon/errors.py +262 -0
- ippon-0.1.0/src/ippon/evaluate.py +559 -0
- ippon-0.1.0/src/ippon/formulas.py +71 -0
- ippon-0.1.0/src/ippon/gguf/__init__.py +11 -0
- ippon-0.1.0/src/ippon/gguf/builds.py +100 -0
- ippon-0.1.0/src/ippon/gguf/header.py +136 -0
- ippon-0.1.0/src/ippon/gguf/names.py +409 -0
- ippon-0.1.0/src/ippon/gguf/reader.py +175 -0
- ippon-0.1.0/src/ippon/gguf/source.py +207 -0
- ippon-0.1.0/src/ippon/gguf/tensors.py +60 -0
- ippon-0.1.0/src/ippon/hashes.py +52 -0
- ippon-0.1.0/src/ippon/host_rows.py +77 -0
- ippon-0.1.0/src/ippon/hub.py +371 -0
- ippon-0.1.0/src/ippon/invariance.py +173 -0
- ippon-0.1.0/src/ippon/kernels/__init__.py +5 -0
- ippon-0.1.0/src/ippon/kernels/_source.py +10 -0
- ippon-0.1.0/src/ippon/kernels/attention.py +93 -0
- ippon-0.1.0/src/ippon/kernels/conv.py +108 -0
- ippon-0.1.0/src/ippon/kernels/delta.py +86 -0
- ippon-0.1.0/src/ippon/kernels/gemm.py +383 -0
- ippon-0.1.0/src/ippon/kernels/glu.py +70 -0
- ippon-0.1.0/src/ippon/kernels/launches.py +17 -0
- ippon-0.1.0/src/ippon/kernels/metal/README.md +35 -0
- ippon-0.1.0/src/ippon/kernels/metal/activation_gelu.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/activation_gelu_tanh.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/activation_identity.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/activation_silu.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/conv_causal.metal +16 -0
- ippon-0.1.0/src/ippon/kernels/metal/conv_gated.metal +23 -0
- ippon-0.1.0/src/ippon/kernels/metal/delta.metal +35 -0
- ippon-0.1.0/src/ippon/kernels/metal/erf.metal +8 -0
- ippon-0.1.0/src/ippon/kernels/metal/gemm.metal +27 -0
- ippon-0.1.0/src/ippon/kernels/metal/gemm_glu.metal +48 -0
- ippon-0.1.0/src/ippon/kernels/metal/gemm_glu_simd.metal +49 -0
- ippon-0.1.0/src/ippon/kernels/metal/gemm_simd.metal +31 -0
- ippon-0.1.0/src/ippon/kernels/metal/gemm_thin.metal +98 -0
- ippon-0.1.0/src/ippon/kernels/metal/gemm_tile_loop.metal +71 -0
- ippon-0.1.0/src/ippon/kernels/metal/glu.metal +10 -0
- ippon-0.1.0/src/ippon/kernels/metal/norm.metal +36 -0
- ippon-0.1.0/src/ippon/kernels/metal/norm_add_store.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/norm_add_sum.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/norm_gated.metal +30 -0
- ippon-0.1.0/src/ippon/kernels/metal/norm_rope.metal +37 -0
- ippon-0.1.0/src/ippon/kernels/metal/norm_weight_at.metal +1 -0
- ippon-0.1.0/src/ippon/kernels/metal/qgemm.metal +36 -0
- ippon-0.1.0/src/ippon/kernels/metal/qgemm_affine.metal +115 -0
- ippon-0.1.0/src/ippon/kernels/metal/qgemm_affine_loader.metal +5 -0
- ippon-0.1.0/src/ippon/kernels/metal/qgemm_fp.metal +78 -0
- ippon-0.1.0/src/ippon/kernels/metal/qgemm_fp_loader.metal +3 -0
- ippon-0.1.0/src/ippon/kernels/metal/qgemm_staged.metal +97 -0
- ippon-0.1.0/src/ippon/kernels/norm.py +217 -0
- ippon-0.1.0/src/ippon/kernels/qgemm.py +202 -0
- ippon-0.1.0/src/ippon/licences.py +193 -0
- ippon-0.1.0/src/ippon/lint.py +240 -0
- ippon-0.1.0/src/ippon/locate.py +396 -0
- ippon-0.1.0/src/ippon/machine.py +100 -0
- ippon-0.1.0/src/ippon/mcp.py +457 -0
- ippon-0.1.0/src/ippon/media/__init__.py +40 -0
- ippon-0.1.0/src/ippon/media/d3_video.py +104 -0
- ippon-0.1.0/src/ippon/media/decode.py +425 -0
- ippon-0.1.0/src/ippon/media/lfm3.py +239 -0
- ippon-0.1.0/src/ippon/media/lfm3_audio.py +396 -0
- ippon-0.1.0/src/ippon/media/lfm3_video.py +114 -0
- ippon-0.1.0/src/ippon/media/paths.py +104 -0
- ippon-0.1.0/src/ippon/media/qwen.py +953 -0
- ippon-0.1.0/src/ippon/media/resize.py +28 -0
- ippon-0.1.0/src/ippon/media/video.py +45 -0
- ippon-0.1.0/src/ippon/model_dir.py +256 -0
- ippon-0.1.0/src/ippon/names.py +477 -0
- ippon-0.1.0/src/ippon/native.py +167 -0
- ippon-0.1.0/src/ippon/ollama.py +287 -0
- ippon-0.1.0/src/ippon/onboarding.py +618 -0
- ippon-0.1.0/src/ippon/options.py +86 -0
- ippon-0.1.0/src/ippon/pi/ippon.ts +100 -0
- ippon-0.1.0/src/ippon/plan.py +171 -0
- ippon-0.1.0/src/ippon/policy.py +44 -0
- ippon-0.1.0/src/ippon/precision.py +66 -0
- ippon-0.1.0/src/ippon/prefixes.py +281 -0
- ippon-0.1.0/src/ippon/pressure.py +315 -0
- ippon-0.1.0/src/ippon/processes.py +34 -0
- ippon-0.1.0/src/ippon/profile.py +364 -0
- ippon-0.1.0/src/ippon/profiles.py +176 -0
- ippon-0.1.0/src/ippon/provenance.py +60 -0
- ippon-0.1.0/src/ippon/ptfile.py +72 -0
- ippon-0.1.0/src/ippon/pull.py +157 -0
- ippon-0.1.0/src/ippon/py.typed +0 -0
- ippon-0.1.0/src/ippon/quant.py +466 -0
- ippon-0.1.0/src/ippon/quantization.py +271 -0
- ippon-0.1.0/src/ippon/questions.py +119 -0
- ippon-0.1.0/src/ippon/readout.py +158 -0
- ippon-0.1.0/src/ippon/recommend.py +229 -0
- ippon-0.1.0/src/ippon/registry.py +94 -0
- ippon-0.1.0/src/ippon/residency.py +179 -0
- ippon-0.1.0/src/ippon/rounds.py +185 -0
- ippon-0.1.0/src/ippon/runtime.py +433 -0
- ippon-0.1.0/src/ippon/safetensors.py +112 -0
- ippon-0.1.0/src/ippon/scaffold.py +233 -0
- ippon-0.1.0/src/ippon/schema.py +692 -0
- ippon-0.1.0/src/ippon/serve.py +1444 -0
- ippon-0.1.0/src/ippon/served.py +123 -0
- ippon-0.1.0/src/ippon/sglang.py +245 -0
- ippon-0.1.0/src/ippon/skills/ippon/SKILL.md +72 -0
- ippon-0.1.0/src/ippon/skills/ippon/references/requests.md +52 -0
- ippon-0.1.0/src/ippon/skills/ippon/references/serving.md +46 -0
- ippon-0.1.0/src/ippon/skills/ippon/references/thresholds.md +17 -0
- ippon-0.1.0/src/ippon/stats.py +34 -0
- ippon-0.1.0/src/ippon/storage.py +77 -0
- ippon-0.1.0/src/ippon/suite.py +253 -0
- ippon-0.1.0/src/ippon/templates.py +67 -0
- ippon-0.1.0/src/ippon/terminal.py +451 -0
- ippon-0.1.0/src/ippon/tokenizer.py +250 -0
- ippon-0.1.0/src/ippon/verified.py +675 -0
- ippon-0.1.0/src/ippon/verify.py +376 -0
- ippon-0.1.0/src/ippon/weights.py +257 -0
ippon-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.mypy_cache/
|
|
5
|
+
.ruff_cache/
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
dist/
|
|
8
|
+
native/target/
|
|
9
|
+
src/ippon/libippon_native.dylib
|
|
10
|
+
build/
|
|
11
|
+
*.egg-info/
|
|
12
|
+
.DS_Store
|
|
13
|
+
references/*/.maker/
|
|
14
|
+
benchmarks/envs/
|
|
15
|
+
benchmarks/makers/
|
|
16
|
+
benchmarks/bin/
|
|
17
|
+
benchmarks/rivals/
|
|
18
|
+
benchmarks/results/**/*.log
|
|
19
|
+
benchmarks/results/**/smoke/
|
|
20
|
+
|
|
21
|
+
# The published guide is not a local AGENTS.md instruction file.
|
|
22
|
+
!/docs/agents.md
|
ippon-0.1.0/CHANGELOG.md
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 (25 November 2026)
|
|
4
|
+
|
|
5
|
+
This is the first release of ippon. ippon runs decision models on Macs with Apple silicon, as their creators published
|
|
6
|
+
them. It records how each build was checked against the creator's own code (its prompts,
|
|
7
|
+
and its answers in fp32 where a reference exists). It also keeps what an agent's requests have already read, so a
|
|
8
|
+
context sent again or grown by a message is answered from where it was left.
|
|
9
|
+
|
|
10
|
+
**Before you upgrade** - nothing, since this is the first release. ippon needs macOS on Apple silicon, Python 3.11 or
|
|
11
|
+
newer and MLX 0.32, which installs with it.
|
|
12
|
+
|
|
13
|
+
### Measured
|
|
14
|
+
|
|
15
|
+
Averaged over every model and workload, Ollama 0.40.13 takes 34% longer than ippon, oMLX 0.7.2 55% longer, llama.cpp
|
|
16
|
+
b11960 3.4x as long and the creators' own code 4x as long. These numbers come from an Apple M5 Pro with 48 GB,
|
|
17
|
+
macOS 27.0.1 and MLX 0.32.4, from 28 October to 24 November 2026. Each runtime ran in its own server over local HTTP,
|
|
18
|
+
on the same requests and the same model builds. Each number is a median of up to 32 timed requests after 2 warm-ups, as each round stops once its median settles
|
|
19
|
+
([benchmarks](docs/benchmarks.md)).
|
|
20
|
+
|
|
21
|
+
| Model | Typical call (~500 tokens, 3 questions) | Same context again | Context grown | 16 clients at once |
|
|
22
|
+
|---|---:|---:|---:|---:|
|
|
23
|
+
| Kettei Core | 183 ms | 44 ms | 48 ms | 12.0 req/s |
|
|
24
|
+
| Kettei Dot | 51 ms | 14 ms | 16 ms | 46.4 req/s |
|
|
25
|
+
|
|
26
|
+
With 16 agents asking at once, ippon answers 44% more requests a second than Ollama. At its peak, ippon needs 45% less
|
|
27
|
+
memory than Ollama and 9% less than oMLX. A support agent that asks a 9B decision model about a refund after each of
|
|
28
|
+
41 customer messages gets all 41 answers in 8.1 s on ippon, 14.2 s on Ollama, 148 s on oMLX and 207 s on llama.cpp.
|
|
29
|
+
|
|
30
|
+
On each model's reference requests, ippon's answers differ from its creator's code in fp32 by at most these amounts.
|
|
31
|
+
ippon ran at its default precision, which is fp16 where it fits and bf16 otherwise (see [accuracy](docs/accuracy.md)).
|
|
32
|
+
|
|
33
|
+
| Model, build | Largest difference | Bound |
|
|
34
|
+
|---|---:|---:|
|
|
35
|
+
| d1-2B, BF16 | 0.0012 | 0.016 |
|
|
36
|
+
| d1-2B, Q8_0 file | 0.010 | 0.016 |
|
|
37
|
+
| d1-Omni-2B, BF16 | 0.0018 | 0.017 |
|
|
38
|
+
| d3-mini | 0.0085 | 0.029 |
|
|
39
|
+
| d3-flash | 0.0017 | 0.016 |
|
|
40
|
+
| pplx-decider flash v1.3 | 0.0023 | 0.017 |
|
|
41
|
+
| Torchcast Decision 4B | 0.0024 | 0.043 |
|
|
42
|
+
| H2O-Lightning-4B | 0.0040 | 0.019 |
|
|
43
|
+
| elephant-1 | 0.0024 | 0.025 |
|
|
44
|
+
| AutoTrust-Decider-Mini-9B | 0.0019 | 0.014 |
|
|
45
|
+
| Kettei Core | 0.0067 | 0.037 |
|
|
46
|
+
| Kettei Dot | 0.0026 | 0.032 |
|
|
47
|
+
|
|
48
|
+
On Ollama's own default builds, Ollama 0.40.13 lands 0.0125 (d1-2B) and 0.029 (d1-Omni-2B) from Liquid's fp32 on the
|
|
49
|
+
same reference requests, where ippon lands 0.0012 and 0.0018. On Clef-Flash's MXFP8 build, compared with the same
|
|
50
|
+
weights computed in fp32, Ollama moves up to 0.378 at 4,096 tokens and ippon moves 0.0011.
|
|
51
|
+
|
|
52
|
+
### What's in it
|
|
53
|
+
|
|
54
|
+
- **Python & Decide API** - `ippon.Decider.load("kettei-core:q8", accept_license=True)` runs any supported model in
|
|
55
|
+
Python with typed `YesNo`, `Choice`, and `Score` questions (`model.decide(...)`), System One requests
|
|
56
|
+
(`model.systemone(...)`), or Sqwish's decide API shape (`model.sqwish(...)`). `ippon serve` answers the same decide
|
|
57
|
+
request over HTTP at `POST /v1/decide` for another process or language. Images, videos, and audio clips can be passed
|
|
58
|
+
directly by file path in Python, via `--image`/`--video`/`--audio` on the CLI, or in base64 over HTTP.
|
|
59
|
+
- **Models** - These models load by short name (`ippon pull kettei-core`). They are Sqwish's Kettei Core and Dot,
|
|
60
|
+
Cloudflare's Clef-Flash 9B, vllm-sr's d3-mini and d3-flash, Liquid AI's d1-2B and d1-Omni-2B, Perplexity's
|
|
61
|
+
pplx-decider flash v1.3, Torchcast Decision 4B, H2O-Lightning-4B, Base Labs' elephant-1, Fastino's GLiDE 2B and
|
|
62
|
+
GLiDE 9B, Jonathan Geuter's Jeff-1.1-Medium and Jeff-1.1-Qwen-4B, Jared Palmer's Kev 0.8B, Kev 4B and Kev 9B,
|
|
63
|
+
AutoTrust's AutoTrust-Decider-Mini-9B, and StrandsAgents' Strands-Decider-E2B, Strands-Decider-E4B and
|
|
64
|
+
Strands-Decider-12B. Clef-Flash, d1, d3, pplx-decider, Torchcast, H2O and elephant-1 read images. Their image answers
|
|
65
|
+
are checked for d1, d3, pplx-decider, Torchcast, H2O and elephant-1, and their image prompts for Clef-Flash.
|
|
66
|
+
d1-Omni-2B reads audio, and d1 and d3 read video. d1's questions also take instructions and option descriptions that
|
|
67
|
+
are JSON other than text, written as Liquid's prompt code of 29 October writes them.
|
|
68
|
+
- **Strands Decider v2** - Native Apple Silicon MLX support for Gemma 4 `Strands-Decider-E2B`, `Strands-Decider-E4B`
|
|
69
|
+
and `Strands-Decider-12B` (`ippon pull strands-e2b`), including per-layer embeddings kept on host so E2B uses 3.8 GB
|
|
70
|
+
and E4B uses 8.0 GB GPU memory, shared KV layers, prefix-bidirectional attention and the 255-code readout head. All
|
|
71
|
+
three sizes are verified against the creator's CUDA BF16 golden vectors (0.0031 to 0.0039 mean TV) and run 2.9x to
|
|
72
|
+
5.0x faster than the creator's PyTorch MPS server on typical calls (13x to 17x faster on repeated context).
|
|
73
|
+
- **Names** - A short name loads a model's recommended build (`kettei-core`), and a tag picks one build
|
|
74
|
+
(`d1-2b:q8_0`). A precision in place of the tag runs the recommended full-precision build at that precision
|
|
75
|
+
(`kettei-core:q8`, as `--precision q8` does). `FAMILY:q8` first takes the family's own verified 8-bit build where
|
|
76
|
+
it has one (`d1-2b:q8` loads the creator's Q8_0 file).
|
|
77
|
+
- **GLiDE** - Fastino's GLiDE 2B and 9B run by short name (`ippon pull glide-2b`) and read text only. The 9B reads 2
|
|
78
|
+
blocks of its middle layers twice in one pass, as Fastino's own code does. Both sizes land within their bounds of
|
|
79
|
+
that code in fp32.
|
|
80
|
+
- **pplx-decider flash v1.3** - `ippon pull pplx-flash` loads Perplexity's flash v1.3, with its chunked prompt
|
|
81
|
+
(protocol 4). Each question is its own sequence after the request's context, as Perplexity's package
|
|
82
|
+
reads it by default, so an answer never depends on the other questions. The sequence limit is the package's 32,768
|
|
83
|
+
tokens. On an Apple M5 Pro, its answers land 0.0023 from Perplexity's fp32 (bound 0.017), and 0.0030 on images
|
|
84
|
+
(bound 0.033). It has no GGUF build, because Perplexity publishes no GGUF of v1.3.
|
|
85
|
+
- **Less GPU memory** - ippon reads the rows of a model's vocabulary tables from the checkpoint's file on the CPU,
|
|
86
|
+
and does not hold the tables on the GPU. The answers are the same either way. A decision model reads a few hundred
|
|
87
|
+
rows of these tables for each prompt. At bf16 on an M5 Pro, this saves 4.1 GB on Clef-Flash 9B and elephant-1,
|
|
88
|
+
2.6 GB on Kettei Core, 2.5 GB on Torchcast Decision 4B and 2.0 GB on d3-flash and Jeff-1.1-Medium. It saves 1.3 GB
|
|
89
|
+
on d3-mini, H2O-Lightning-4B and pplx-decider flash, and 0.5 and 0.4 GB on d1-2B and Kettei Dot. MLX 8-bit, Ollama
|
|
90
|
+
and GGUF Q8_0 builds read their tables packed. Clef-Flash 9B's Ollama MXFP8 build takes 7.6 GB, against 11.7 with
|
|
91
|
+
the tables on the GPU, its MLX 8-bit build 7.8 against 10.0 and its Q8_0 file 8.3 against 10.6. d3-mini's MXFP8
|
|
92
|
+
build takes 3.7 against 5.0, and d1-2B's 1.5 against 2.0. The memory estimate that admits a model leaves the tables
|
|
93
|
+
out too, so Kettei Core at 8-bit is estimated at 3.74 GiB (3.7 GiB measured on an M5 Pro). That is within an 8 GB
|
|
94
|
+
Mac's 4.3 GiB, where an estimate with the tables in it is 6.1.
|
|
95
|
+
- **A request sent again, answered at once** - By default, the decider keeps the answers to its last 1,024 requests
|
|
96
|
+
(`--answer-cache`, `Decider.load(..., answer_cache=1024)`). It answers an identical request without reading it, with the
|
|
97
|
+
same answers. On Kettei Dot through `ippon serve`, the README's Quick start request takes 0.5 ms, against 15 ms to read it
|
|
98
|
+
again (M5 Pro). `--answer-cache 0` turns it off, so every request is read.
|
|
99
|
+
- **Ready between an agent's calls** - A decider loaded in your own program (`Decider.load`) keeps its model's
|
|
100
|
+
memory wired for 5 minutes after each answer, then lets the Mac rest, as `ippon serve` does. The option is
|
|
101
|
+
`keep_awake`, which is on by default, and None turns it off. An agent calls its decision model seconds apart.
|
|
102
|
+
Without this option, a short call on Kettei Dot after a 5 to 15 s pause took 109 to 115 ms instead of 30 ms (M5
|
|
103
|
+
Pro). MLX's buffer cache is capped at 1 GiB (about 0.5 GiB on an 8 GB Mac). With the cap, the speed is the same and
|
|
104
|
+
d3-mini's server footprint is 5.3 GB, against 8.2 GB without it.
|
|
105
|
+
- **Set up in one step** - The installer ends in `ippon setup`. Setup shows the Mac's chip and memory and lists every
|
|
106
|
+
model with what it reads and whether it fits, with the one for this Mac first. The ← and → keys turn a model through
|
|
107
|
+
full precision, 8, 6 and 4 bits. A row turned below full precision is tagged with how far its answers move, as
|
|
108
|
+
measured (✓ answers hold, ⚠ check thresholds, ⚠ answers may change). Enter takes the model. Setup then downloads
|
|
109
|
+
it, answers a first question, and asks what to use it with and how the server runs. The server either starts when
|
|
110
|
+
something needs it or runs from login. `curl ... | sh -s -- kettei-dot` names the model instead. Without a
|
|
111
|
+
terminal, setup asks nothing and writes nothing to an agent's settings.
|
|
112
|
+
- **An agent in one command** - `ippon claude`, `ippon codex` and `ippon opencode` start the shared server, or reuse
|
|
113
|
+
the one that runs. Then they start the agent for that session with the model that setup chose beside it, through
|
|
114
|
+
ippon's MCP tools (and, in Claude Code, ippon's skill). Nothing is written to the agent's own configuration.
|
|
115
|
+
Arguments after `--` go to the agent, and the server keeps running for other clients.
|
|
116
|
+
- **Serving your own code** - `ippon start` serves the chosen model in the background on port 8000. If another program
|
|
117
|
+
holds 8000, it uses a free port and names it. `ippon status` shows the server (`ippon ps` does the same),
|
|
118
|
+
`ippon logs` follows it and `ippon stop` stops it. In a terminal, `ippon serve` prints a line for each
|
|
119
|
+
answer, and more lines when its answers outgrow the terminal, with each answer whole. A line gives the client's name
|
|
120
|
+
(the `X-Ippon-Client` header), the model's time per decision, the tokens read and how many of them were kept from an
|
|
121
|
+
earlier reading. `ippon status` watches a server live. It shows the model's time per decision and the questions it
|
|
122
|
+
answers a second (a request of 10 questions counts 10). It also shows how many clients are connected and asking, and
|
|
123
|
+
a bar of each client's decisions. A result's `diagnostics` gives the kept tokens as `kept_tokens`. `ippon remove
|
|
124
|
+
AGENT` takes ippon out of an agent's settings, and `ippon remove login` stops serving from login. `ippon remove all
|
|
125
|
+
--models` takes out everything ippon added (agents' settings, the login job, its servers, settings and caches, and
|
|
126
|
+
the models it downloaded). It keeps a revision that also holds files another app downloaded, such as another
|
|
127
|
+
quantization of the same model. Run it before `uv tool uninstall ippon`.
|
|
128
|
+
- **Safe to leave running** - A server that listens beyond this Mac (`--host 0.0.0.0`) needs an API key, and every
|
|
129
|
+
request must carry it. If Python can't read a request's JSON (nested too deep, an integer too long), the request gets
|
|
130
|
+
an error. A request that expands past 1,000 times its compressed size also gets an error. In both cases, the server
|
|
131
|
+
and an MCP session go on. ippon refuses a crafted GGUF file and gives the reason. It clears a server record whose
|
|
132
|
+
process is gone, or whose process now belongs to another user.
|
|
133
|
+
- **Checked on your Mac** - `ippon verify MODEL` checks a named build against the reference that its creator's code
|
|
134
|
+
made. The package carries that reference, so the check needs no clone and no `--reference`.
|
|
135
|
+
- **Builds** - ippon loads creators' safetensors checkpoints, MLX 8-bit builds, GGUF Q8_0 files and the MLX builds
|
|
136
|
+
that Ollama has already pulled (`ollama://d3:4b`). By default, it loads them as published, at full precision or
|
|
137
|
+
8-bit. `ippon pull --list` marks the 8-bit files that move past their bound. A GGUF build reads images and audio from
|
|
138
|
+
its mmproj file, as llama.cpp's `--mmproj` does. ippon finds that file beside a local file, or downloads it with a
|
|
139
|
+
`repo:Q8_0` build (d1-2B, d1-Omni-2B, H2O-Lightning-4B), and reads it on the first image or clip. On the creators'
|
|
140
|
+
reference requests on an Apple M5 Pro, d1-Omni-2B's Q8_0 files land 0.0085 from its fp32 on images and 0.0075 on
|
|
141
|
+
audio. H2O-Lightning-4B's land 0.0071 on images (one-way). d1-2B's land 0.0138 on images, against 0.0016 for the
|
|
142
|
+
checkpoint, with one three-question request past the full-precision bound of 0.01. Where llama.cpp b11960 reads the
|
|
143
|
+
same request, ippon and llama.cpp land equally close to fp32 (0.0071 and 0.0072 on audio).
|
|
144
|
+
- **Fewer bits, only when you ask** - 4-, 5- and 6-bit MLX builds, NVFP4 and MXFP4 (Ollama's NVFP4 tags among them),
|
|
145
|
+
GGUF Q4_K_M and Q5_K_M files, and `--precision q4` or `q6` (`kettei-core:q4`) load only by their own name, tag,
|
|
146
|
+
file or precision. A bare name, `ippon pull`, `ippon recommend` and `ippon setup` never choose one.
|
|
147
|
+
Every such load warns how far the model drifts from its creator's answers. The warning comes as a `LowBitWarning`,
|
|
148
|
+
once on the command line, in `details["drift"]` and in each response's `warnings`. ippon's accuracy claims and speed
|
|
149
|
+
charts stay at full precision and 8-bit. ippon refuses 2- and 3-bit builds and W8A8
|
|
150
|
+
([formats](docs/formats.md)).
|
|
151
|
+
- **Interfaces** - The command line has `setup`, `claude`, `codex`, `opencode`, `pi`, `start`, `decide`, `status`,
|
|
152
|
+
`stop`, `logs`, `pull`, `recommend`, `serve`, `lint`, `eval`, `verify`, `bench`, `doctor`, `remove`, `mcp` and
|
|
153
|
+
`skills`. It also has the maintenance commands `check`, `prompt`, `info`,
|
|
154
|
+
`profile`, `suite` and `new-adapter`, which `ippon --help` leaves out. Python has `Decider.load`, `decide` and
|
|
155
|
+
`decide_many`. HTTP has `POST /v1/systemone` in TypeSafe's System One format and `POST /v1/decisions` in
|
|
156
|
+
Perplexity's and SGLang's format. `ippon mcp` is an MCP server for Claude Code, Cursor and other hosts. `ippon
|
|
157
|
+
skills` gives agents skills to read on when a decision model fits, how to ask it and how to act on its
|
|
158
|
+
probabilities.
|
|
159
|
+
- **Serving** - One shared server serves many clients and several models. It loads a model on first use and unloads
|
|
160
|
+
the least recently used model under memory pressure. Requests that arrive together are answered in shared passes.
|
|
161
|
+
Readings are kept in memory, images included. A request that sends the same images again, or one more after them,
|
|
162
|
+
reads only what is new, and an image inside a kept reading is not encoded again. On H2O-Lightning-4B's GGUF build on
|
|
163
|
+
an Apple M5 Pro, adding a painting to a wall of 39 took 344 ms instead of 695 ms. A model that reads both ways (d1,
|
|
164
|
+
d3) reads its attention scores in blocks of queries, so it takes prompts longer than those scores fit in one GPU
|
|
165
|
+
buffer. Read in one buffer, d3-mini stops at about 30,800 tokens a read on an Apple M5 Pro (48 GB), where those
|
|
166
|
+
scores pass its 30.15 GB buffer limit.
|
|
167
|
+
- **Limits are the model's** - A question takes as many options and levels as the model has labels for, and ippon
|
|
168
|
+
sets no limits of its own. d1-2B and d1-Omni-2B take 702 options (A to ZZ) and 10 score levels, since their prompt
|
|
169
|
+
asks for one digit. elephant-1 takes 256 options, and d3, pplx-decider, H2O-Lightning-4B and Kettei take 255.
|
|
170
|
+
Torchcast takes any number, asked in its creator's rounds (groups of 25, then their finalists). Jeff-1.1-Medium
|
|
171
|
+
takes 256, asked as its server asks a choice past 16 options (groups of up to 16, then their winners). Clef-Flash
|
|
172
|
+
and label-token models have no fixed count. `ippon prompt` reports the model's `max_options`. A request holds as
|
|
173
|
+
many images and audio clips as the model's window does. ippon reads a video of any length and frame size from its
|
|
174
|
+
sampled frames. A local file passed from Python or the command line has no size cap. Over HTTP and MCP, a request
|
|
175
|
+
may hold up to `ippon serve --max-body-mb`, and a medium up to 1 GiB. By default, that limit is a 32nd of the Mac's
|
|
176
|
+
memory, from 64 MiB to 1.5 GiB (256 MiB on an 8 GB Mac, 1 GiB on 32 GB). A served request has no deadline and waits
|
|
177
|
+
for the model however long it reads, unless `ippon serve --timeout-s` sets one. For example, d3 took more than 120 s
|
|
178
|
+
on a 1,000-token record with 50 questions on an M2 Pro with 16 GB.
|
|
179
|
+
- **Longer prompts than a creator's window, by choice** - `--window TOKENS` (`Decider.load(window=...)`) replaces the
|
|
180
|
+
window that a creator's code sets below what the model reads. Examples are H2O-Lightning's 40,944 tokens (its
|
|
181
|
+
server's 40,960-token context less 16 tokens of slack) and the 16,384 tokens of Clef-Flash and Torchcast. Past the creator's window the answers are
|
|
182
|
+
unverified, and the load warns and records it in `details["window"]`. Without the option, every model keeps its
|
|
183
|
+
creator's window.
|
|
184
|
+
- **Long records for H2O-Lightning-4B** - ippon fits a record past the server's 40,960-token context as that server
|
|
185
|
+
fits it, and never refuses it. It cuts the record to the passages that the creator's own BM25 selection finds most
|
|
186
|
+
relevant to the question (its selector_v2.py, reimplemented). Otherwise it keeps the record's head and tail.
|
|
187
|
+
`truncated` says how much was left out. The server's cap of 4 images a request is not the model's, and ippon reads
|
|
188
|
+
more.
|
|
189
|
+
- **Audio files as they come** - ippon decodes these formats in its native library. They are WAV at any rate, depth
|
|
190
|
+
and channel count, MP3, M4A or AAC, FLAC, Ogg Vorbis, AIFF and CAF. It trims the encoder's priming and padding as
|
|
191
|
+
FFmpeg trims them, from an edit list, Apple's iTunSMPB tag or an MP3's header. ippon reads a 16-bit or float WAV as
|
|
192
|
+
Liquid's code reads it. The other formats go through Liquid's resampler, where Liquid's own code hands them to
|
|
193
|
+
FFmpeg or librosa. Opus (a voice note, or a browser's WebM recording) is decoded by FFmpeg through PyAV.
|
|
194
|
+
- **New questions about media already sent** - A video's frames and a recording's encoded audio are kept by size
|
|
195
|
+
(256 MB), so a new question about a 66-second video does not read the video again. On an M5 Pro, d1-Omni-2B answers
|
|
196
|
+
that question about a low-resolution clip in 75 ms, against 242 ms when it reads the clip again, and one about a
|
|
197
|
+
1080p 20-second clip takes about 1.1 s. A new question about a 30-second AAC recording takes 48 ms, against 69 ms
|
|
198
|
+
when it reads the recording again. Both give the same answers. ippon reads a chained Ogg file whole, and reads a WAV
|
|
199
|
+
that FFmpeg streamed without its size to its end. Resampling from an odd rate such as 47,999 Hz peaks at 0.48 GB,
|
|
200
|
+
where its whole filter at once would take 3 GB. A clip longer than about 43 minutes is refused with a request to send
|
|
201
|
+
it in parts. `decide --states` keeps `unsure_below` and the request's other options on every line.
|
|
202
|
+
- **Questions in several prompts, batched by cost** - ippon puts prompts read whole into the batches that cost least.
|
|
203
|
+
It weighs a pass's padding against reading the weights again, so a short prompt does not pad to a long one's
|
|
204
|
+
length. On an M5 Pro, d1-2B's 50 questions (4 prompts of up to 16) take 4.7% less time at 1,000 words than with that
|
|
205
|
+
padding (590.7 ms against 619.7). With the padding, ippon was 10% behind Ollama's same build on an M4 Pro (2.95 s
|
|
206
|
+
against 2.65 s).
|
|
207
|
+
- **A shorter command list** - `ippon --help` lists the 21 commands a user reaches for. The starter requests are in
|
|
208
|
+
docs/evaluating.md, where a test lints and answers them. `ippon pull MODEL --dry-run` says what a build needs,
|
|
209
|
+
whether it fits and its licence, without downloading (as `ippon check` does). `ippon lint --model MODEL --prompt`
|
|
210
|
+
shows the text the model reads (as `ippon prompt` does). `ippon doctor` starts with this Mac and how ippon runs on
|
|
211
|
+
it (as `ippon info` does). `check`, `prompt`, `info` and the maintainers' tools (`profile`, `suite`, `new-adapter`)
|
|
212
|
+
run unlisted, and so do the tuning flags (`--switch`, `--chunk`, `--profile`, `--keep-awake`, `--settings`).
|
|
213
|
+
- **From a first-time user's run** (a clean home, the installer, the docs as written) - `ippon eval` shows a
|
|
214
|
+
chosen threshold that flags exactly the rows that the exact threshold flags. Printed as 0.799, a threshold of 0.7985
|
|
215
|
+
would leave its row out. `ippon eval` also says how many rows a held-out check covered when folds had no threshold,
|
|
216
|
+
and exits 1 when a compared model didn't load. `ippon decide` checks a request before it downloads or loads anything.
|
|
217
|
+
Ctrl-C while waiting stops with exit 130 and no traceback. `ippon ps` lists each model as loaded or not (`--json` has
|
|
218
|
+
the rest), and `pull` points to the docs' starter requests. The docs say what a score's `score` is. It is the
|
|
219
|
+
creator's score, which for d1 is its median level, while Python's `expected_level` is the mean. The docs also say that
|
|
220
|
+
the Q8_0 files read images through the encoder beside them, with their image answers recorded in docs/accuracy.md. The
|
|
221
|
+
README runs the server in the background.
|
|
222
|
+
- **Every failure names its kind** - A mistyped `--reference` or `--requests` file, a bad `--sizes`, or an `--n` below
|
|
223
|
+
`--rounds` exits 3 with `invalid_request` instead of a traceback. A download that fails exits 13 with
|
|
224
|
+
`download_failed`, and a second pull resumes it. A server answers a `Content-Length` that isn't a number with a 400.
|
|
225
|
+
The MCP `decide` tool takes `videos` as HTTP does. A model whose warm-up answers nothing runs in bf16, so ippon never
|
|
226
|
+
chooses fp16 without a measurement. A missing dependency or an MLX that doesn't load exits 14 with
|
|
227
|
+
`runtime_unavailable` and the fix. The error for a damaged checkpoint or tokenizer names the file to repair. A full
|
|
228
|
+
cache disk reports `insufficient_disk`. ippon refuses a bad question builder, batch request or load option before
|
|
229
|
+
anything loads.
|
|
230
|
+
- **Send the unsure ones on** - A request's `unsure_below` lists the questions whose most likely option is under that
|
|
231
|
+
value. It works in Python (`result.unsure(0.8)`), the CLI, HTTP and the MCP `decide` tool. Pass those questions to a
|
|
232
|
+
person or a larger model, and settle the rest locally. `Answer.confidence` is the probability of the most likely
|
|
233
|
+
option. Kettei Core, with its least sure third sent to Claude Opus, matched Opus alone at 90.8% on 600 questions.
|
|
234
|
+
- **Judges' thresholds in `ippon eval`** - For a yes/no question, `ippon eval` gives the precision, recall and F1 of
|
|
235
|
+
flagging at P(true) >= t, across values of t. It picks the t with the highest F1 that meets `--min-precision` and
|
|
236
|
+
`--min-recall`, and checks that choice on stratified held-out folds (`--folds`). It also gives the Brier score and a
|
|
237
|
+
calibration table of P(true). The probabilities stay the model's own.
|
|
238
|
+
- **One-line install** - `curl -fsSL https://sqwish.ai/ippon/install.sh | sh` gets uv if
|
|
239
|
+
it is missing and installs ippon as a tool with its own Python, so a Mac needs no Python first. `IPPON_PACKAGE`
|
|
240
|
+
installs another package spec or a wheel. ippon works in the same terminal, because the installer links it into a
|
|
241
|
+
folder that is already on the PATH and that you can write to, such as `~/.local/bin`. The installer does not replace
|
|
242
|
+
a file to do this.
|
|
243
|
+
- **MXFP8 on M1 and M2** - From 224 rows, ippon unpacks an MXFP8 matrix to full precision and multiplies it with
|
|
244
|
+
MLX's matmul. On an M1, d1-2B's MXFP8 build then answers in 17 to 25% less time from 500 words, with the same answers
|
|
245
|
+
to the last digit. Without the unpacking, MLX's MXFP8 matmul took 34% (M1) and 28% (M2 Pro) longer on d1-2B's
|
|
246
|
+
prompts than the same model in fp16, though its 8-bit weights read as many bytes as Q8_0's. `--switch gemm=mlx`
|
|
247
|
+
turns the unpacking off.
|
|
248
|
+
- **MXFP8 on M4** - The M4 unpacks MXFP8 matrices from 1,024 rows, instead of the 224 rows of M1 and M2. On a 48 GB M4
|
|
249
|
+
Pro, unpacking took 18 to 28% longer than MLX's matmul at 256 rows and 10 to 14% less time at 4,096 rows.
|
|
250
|
+
- **Matmul tiles only where they were measured** - Full-precision matrices use ippon's tiles only on an M5 with the M5
|
|
251
|
+
Pro's 20 GPU cores, and every other M5 runs MLX's matmul for them. On the base M5, the tiles made d3-mini,
|
|
252
|
+
H2O-Lightning-4B, pplx-decider flash and Torchcast take 10 to 24% longer at 1,000 words and more. Quantized builds
|
|
253
|
+
keep ippon's kernels on every M5, and d1-2B's Q8_0 build is up to 28% faster with them on the base M5. With an MLX
|
|
254
|
+
minor version other than 0.32, which the tiles were fitted on, ippon also runs MLX's own matmuls, and `ippon doctor`
|
|
255
|
+
says why.
|
|
256
|
+
- **`ippon recommend` on M1 to M4** points an 8-bit build to its family's verified full-precision build when that
|
|
257
|
+
build fits in half the GPU working set, and starts with it (`d1-2b:bf16` on an M4 Pro). On these Macs, 8-bit builds
|
|
258
|
+
take 11% to 34% longer to read prompts (M1, M2 Pro, M4 Pro). This does not apply on an 8 GB M1, where bf16 swaps, or
|
|
259
|
+
on an M5.
|
|
260
|
+
- **`ippon decide` reads for people** - In a terminal, it prints a line per question (`refund yes 99.8%`, `team
|
|
261
|
+
billing 98.8% (technical 1.2%)`, `urgency Needs help today (1) 94.1%`). Piped, or with `--json`, it prints the
|
|
262
|
+
full System One response, for scripts and agents.
|
|
263
|
+
- **A clearer command line** - `ippon --help` lists the commands in the order a first run meets them, and ends with 3
|
|
264
|
+
lines to start. Each command's own options come before the model-loading options and the server's tuning options,
|
|
265
|
+
and each group has a heading. `ippon COMMAND --help` opens with what the command does and ends with examples, and
|
|
266
|
+
`ippon decide --help` shows a request. If a command doesn't take an option, the error names that option. At a
|
|
267
|
+
terminal, `ippon decide` and `ippon doctor` use the colours of `ippon serve`, and `ippon pull` gives sizes in GB.
|
|
268
|
+
`ippon pull --list` and `ippon recommend` cut a row at the terminal's width, so no row wraps. `ippon
|
|
269
|
+
stop` says how many clients were connected to the server it stopped. `ippon serve` with no model named serves the
|
|
270
|
+
one that setup chose. At a terminal, `ippon serve` and the live `ippon status` open with a small lucky cat beside the
|
|
271
|
+
model's name (Kettei Core) and its address. For status, the cat also sits beside the traffic in 3 short lines, with
|
|
272
|
+
each client's answers as a thin bar under it. The cat has every pixel of the banner's cat where the terminal draws
|
|
273
|
+
Unicode's sextants, and nothing is wider than the terminal from 50 columns up. A licence hint repeats the model as
|
|
274
|
+
it was typed (`ippon pull d1-2b --accept-license`).
|
|
275
|
+
- **One reading of a model card** - A loaded model reads its licence from its card's front matter as YAML, as the
|
|
276
|
+
Hub's metadata does for its download. So a comment after the licence, a folded value or a quoted key never names a
|
|
277
|
+
different licence, or asks for an acceptance that the download did not need.
|
|
278
|
+
- **An option given is an option asked** - `--truncation creator`, given outright, does not reuse a running server
|
|
279
|
+
that started with `--truncation error`. That server would refuse the long inputs that the client asked to have cut.
|
|
280
|
+
Options left out take the running server's values.
|
|
281
|
+
- **A GGUF repository named alone** (`ippon pull LiquidAI/d1-Omni-2B-GGUF`) answers with the build to name
|
|
282
|
+
(`LiquidAI/d1-Omni-2B-GGUF:Q8_0`).
|
|
283
|
+
- **One answer to whether a model fits** - Setup, `ippon pull` and a load judge a model by this Mac's memory, the
|
|
284
|
+
same way every time. They never judge by what other apps hold at that moment, so a model that setup says fits always
|
|
285
|
+
loads. ippon refuses a model too big for this Mac and names the precisions that fit. For a named model, it also names
|
|
286
|
+
a smaller published build (`ippon pull d1-2b:q8_0` after d1-2B's bf16 checkpoint), and for a folder it names `ippon
|
|
287
|
+
recommend`.
|
|
288
|
+
- **Wiring follows the Mac as it is** - ippon reads what to wire from this Mac's memory when a model loads. It wires
|
|
289
|
+
nothing while macOS reports memory pressure or little memory is available. Otherwise it wires the model and room for
|
|
290
|
+
its passes out of what is free, at most half the Mac. Without these rules, a 9.7 GB model on a 16 GB M5 wired 10.8 GB.
|
|
291
|
+
Wiring and unwiring that every round of a kernel A/B while the Mac swapped ended in a kernel panic in Apple's GPU
|
|
292
|
+
driver (macOS 26.2). A server lets go of what is wired while memory is short, and wires again once there is plenty.
|
|
293
|
+
`Decider.details` records the `wired_limit`.
|
|
294
|
+
- **Small Macs** - If a batched pass of several prompts runs out of GPU memory, ippon reads it in halves.
|
|
295
|
+
Torchcast-4B's 3 prompts of 4,335 tokens peak at 13.2 GB, past a 16 GB M2 Pro's 12 GB working set, where `bench`
|
|
296
|
+
failed on the whole pass.
|
|
297
|
+
- **Ollama builds load in a third of the time after the first** - ippon checks each blob's sha256 the first time it
|
|
298
|
+
sees that version of the file and remembers the result, as it does for Hub files. With this, d3:4b-mxfp8's weights
|
|
299
|
+
load in 860 ms on an M5 Pro, against 2.59 s when every blob is hashed. If a blob changes after its check (another
|
|
300
|
+
write, size or inode), ippon hashes it again, and a mismatch refuses the load.
|
|
301
|
+
- **d1 videos decode in a fifth of the time** - PyAV decodes with FFmpeg's threads, and the frames are the same bit
|
|
302
|
+
for bit as without them. On an M5 Pro, the frames of a 20 s 1280x720 clip decode in 60 ms, against 315 ms without
|
|
303
|
+
them.
|
|
304
|
+
- **Videos in `files`** - ippon reads a `data:video/...` entry of llama.cpp's `files` list as a video.
|
|
305
|
+
- **Batch size on small Macs** - `ippon bench --scenario concurrent --max-batch N` times the burst with serve's
|
|
306
|
+
`--max-batch` set to N. Use it to choose that value for a Mac with few GPU cores.
|
|
307
|
+
- **Your own models** - Classifiers and label-token models run without an adapter (docs/bring-your-own.md). An
|
|
308
|
+
adapter API covers other creators' models (`ippon new-adapter`, docs/adding-a-model.md).
|
|
309
|
+
- **Native work around the model** - A small Rust library resizes and lays out images and video as the creators'
|
|
310
|
+
processors do, bit for bit, on every core. That step takes 1.4 ms for a page scan, where numpy took 29.8 ms. It
|
|
311
|
+
takes 15.9 ms for a 20-second 720p clip for d3, where numpy took 638 ms. Whole requests were no faster in a
|
|
312
|
+
fresh-process A/B, with the same answers (d1-2B took 175.2 against 175.0 ms a page and 1,490 against 1,498 ms a
|
|
313
|
+
video). ippon reads a GGUF file's header natively. Against reading it in Python, load time is 30% lower for d1-2B's
|
|
314
|
+
Q8_0 file (620 ms against 880) and 21% lower for H2O-Lightning-4B's (1.33 s against 1.68). These numbers are from an
|
|
315
|
+
Apple M5 Pro.
|
|
316
|
+
- **Kernels** - On M5 Macs, matrix multiplies use kernels chosen at load from the chip and the matrix, with no tuning
|
|
317
|
+
step. M1 to M4 Macs run MLX's own kernels. On an M1, M2 or M4, ippon first unpacks an MXFP8 matrix to full
|
|
318
|
+
precision (from 224 rows, 1,024 on the M4), and `ippon suite` A/Bs that there. The M3 has nothing to A/B yet. The M5 kernel choices were
|
|
319
|
+
measured on an M5 Pro, and `ippon suite` collects the same checks on any other Mac (docs/suite.md).
|
|
320
|
+
|
|
321
|
+
### Install
|
|
322
|
+
|
|
323
|
+
`pip install ippon` (or `uv add ippon`) gets a wheel for Apple silicon and macOS 11 or later, for every supported
|
|
324
|
+
Python. A build from source also needs Rust's cargo. Model weights keep their creators' licences and download from their
|
|
325
|
+
repositories. Jeff's weights do not allow commercial use.
|
ippon-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|