justfit-llm 2.3.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.
- justfit_llm-2.3.0/.gitignore +10 -0
- justfit_llm-2.3.0/ANE_POLICY.md +33 -0
- justfit_llm-2.3.0/CHANGELOG.md +50 -0
- justfit_llm-2.3.0/CITATION.cff +18 -0
- justfit_llm-2.3.0/CONTRIBUTING.md +10 -0
- justfit_llm-2.3.0/LICENSE +202 -0
- justfit_llm-2.3.0/MANIFEST.in +18 -0
- justfit_llm-2.3.0/NOTICE +14 -0
- justfit_llm-2.3.0/ORIGIN.json +14 -0
- justfit_llm-2.3.0/PKG-INFO +201 -0
- justfit_llm-2.3.0/QUICKSTART.md +166 -0
- justfit_llm-2.3.0/README.md +136 -0
- justfit_llm-2.3.0/README.zh-CN.md +135 -0
- justfit_llm-2.3.0/RELEASE_STATUS.json +23 -0
- justfit_llm-2.3.0/SECURITY.md +25 -0
- justfit_llm-2.3.0/build_release.py +27 -0
- justfit_llm-2.3.0/config/nodes/m4.json +78 -0
- justfit_llm-2.3.0/config/nodes/m5.json +77 -0
- justfit_llm-2.3.0/config/nodes/m6.json +76 -0
- justfit_llm-2.3.0/docs/ANE_DOWNLOADS.md +80 -0
- justfit_llm-2.3.0/docs/ANE_PROVISIONING.md +214 -0
- justfit_llm-2.3.0/docs/BRANDING.md +44 -0
- justfit_llm-2.3.0/docs/CONFIGURATION.md +40 -0
- justfit_llm-2.3.0/docs/DEPLOYMENT.md +49 -0
- justfit_llm-2.3.0/docs/IMPLEMENTATION.md +75 -0
- justfit_llm-2.3.0/docs/PREVIEW_VALIDATION.json +59 -0
- justfit_llm-2.3.0/docs/PYPI.md +99 -0
- justfit_llm-2.3.0/docs/RESULTS.md +50 -0
- justfit_llm-2.3.0/docs/RUNTIME_DISTRIBUTION.md +80 -0
- justfit_llm-2.3.0/docs/THINKING_BUDGET.md +76 -0
- justfit_llm-2.3.0/docs/VALIDATION.md +83 -0
- justfit_llm-2.3.0/docs/assets/justfit-banner-mobile.svg +1 -0
- justfit_llm-2.3.0/docs/assets/justfit-banner.svg +15 -0
- justfit_llm-2.3.0/docs/assets/system-comparison.png +0 -0
- justfit_llm-2.3.0/docs/system-comparison.csv +13 -0
- justfit_llm-2.3.0/package-manifest.json +510 -0
- justfit_llm-2.3.0/package_release.py +67 -0
- justfit_llm-2.3.0/paper/2026-10-23/JustFit-v2-2026-10-23-arxiv-source.zip +0 -0
- justfit_llm-2.3.0/paper/2026-10-23/JustFit-v2.pdf +0 -0
- justfit_llm-2.3.0/paper/2026-10-23/SHA256SUMS +2 -0
- justfit_llm-2.3.0/paper/2026-10-23/citation.bib +8 -0
- justfit_llm-2.3.0/paper/README.md +29 -0
- justfit_llm-2.3.0/pyproject.toml +35 -0
- justfit_llm-2.3.0/python/justfit_llm/__init__.py +2 -0
- justfit_llm-2.3.0/python/justfit_llm/ane_bundle.py +321 -0
- justfit_llm-2.3.0/python/justfit_llm/cli.py +347 -0
- justfit_llm-2.3.0/python/justfit_llm/runtime_bundle.py +122 -0
- justfit_llm-2.3.0/python/justfit_llm.egg-info/PKG-INFO +201 -0
- justfit_llm-2.3.0/python/justfit_llm.egg-info/SOURCES.txt +515 -0
- justfit_llm-2.3.0/python/justfit_llm.egg-info/dependency_links.txt +1 -0
- justfit_llm-2.3.0/python/justfit_llm.egg-info/entry_points.txt +3 -0
- justfit_llm-2.3.0/python/justfit_llm.egg-info/requires.txt +47 -0
- justfit_llm-2.3.0/python/justfit_llm.egg-info/top_level.txt +1 -0
- justfit_llm-2.3.0/requirements-runtime.txt +47 -0
- justfit_llm-2.3.0/scripts/check_ane_routes.py +165 -0
- justfit_llm-2.3.0/scripts/check_broker_history.py +48 -0
- justfit_llm-2.3.0/scripts/check_node_budget.py +35 -0
- justfit_llm-2.3.0/scripts/check_thinking_budget.py +125 -0
- justfit_llm-2.3.0/scripts/package_ane.py +73 -0
- justfit_llm-2.3.0/scripts/package_runtime.py +63 -0
- justfit_llm-2.3.0/scripts/qualify_m4_build.py +146 -0
- justfit_llm-2.3.0/scripts/qualify_pip.py +87 -0
- justfit_llm-2.3.0/scripts/run_local.py +65 -0
- justfit_llm-2.3.0/service/broker-integration/BASE_SHA256.json +6 -0
- justfit_llm-2.3.0/service/broker-integration/README.md +55 -0
- justfit_llm-2.3.0/service/broker-integration/history-preservation.patch +17 -0
- justfit_llm-2.3.0/service/broker-integration/pool-probe-lock.patch +13 -0
- justfit_llm-2.3.0/service/broker-integration/test_pool_probe_lock.py +54 -0
- justfit_llm-2.3.0/service/http_guard.py +84 -0
- justfit_llm-2.3.0/service/managed_base.py +253 -0
- justfit_llm-2.3.0/service/requirements.txt +3 -0
- justfit_llm-2.3.0/service/service.py +41 -0
- justfit_llm-2.3.0/service/storage_guard.py +30 -0
- justfit_llm-2.3.0/service/supervisor.py +49 -0
- justfit_llm-2.3.0/service/test_disconnect.py +43 -0
- justfit_llm-2.3.0/service/test_security.py +91 -0
- justfit_llm-2.3.0/service/test_service.py +26 -0
- justfit_llm-2.3.0/service/test_storage.py +13 -0
- justfit_llm-2.3.0/service/test_supervisor_ports.py +22 -0
- justfit_llm-2.3.0/setup.cfg +4 -0
- justfit_llm-2.3.0/setup.py +39 -0
- justfit_llm-2.3.0/source/CONTRIBUTING.md +16 -0
- justfit_llm-2.3.0/source/DEVELOPMENT.md +2242 -0
- justfit_llm-2.3.0/source/LICENSE +202 -0
- justfit_llm-2.3.0/source/Makefile +412 -0
- justfit_llm-2.3.0/source/README.md +32 -0
- justfit_llm-2.3.0/source/SECURITY.md +15 -0
- justfit_llm-2.3.0/source/THIRD_PARTY_NOTICES +36 -0
- justfit_llm-2.3.0/source/dev/Makefile +194 -0
- justfit_llm-2.3.0/source/dev/__init__.py +2 -0
- justfit_llm-2.3.0/source/dev/evo4.env.example +15 -0
- justfit_llm-2.3.0/source/dev/evo4.mk +16 -0
- justfit_llm-2.3.0/source/dev/native.mk +716 -0
- justfit_llm-2.3.0/source/dev/tests/engine/barrier_scheduler_test.cc +29 -0
- justfit_llm-2.3.0/source/dev/tests/engine/cpu_affine_gpu_probe.cc +57 -0
- justfit_llm-2.3.0/source/dev/tests/engine/cpu_affine_reference.cc +44 -0
- justfit_llm-2.3.0/source/dev/tests/engine/cpu_host_probe.cc +35 -0
- justfit_llm-2.3.0/source/dev/tests/engine/cpu_join_test.cc +16 -0
- justfit_llm-2.3.0/source/dev/tests/engine/cpu_linear_reference.cc +43 -0
- justfit_llm-2.3.0/source/dev/tests/engine/evo4_attention_probe.cc +88 -0
- justfit_llm-2.3.0/source/dev/tests/engine/evo4_lookup_test.cc +26 -0
- justfit_llm-2.3.0/source/dev/tests/engine/evo4_sampling_probe.cc +41 -0
- justfit_llm-2.3.0/source/dev/tests/engine/explicit_budget_test.cc +5 -0
- justfit_llm-2.3.0/source/dev/tests/engine/host_embedding_test.cc +32 -0
- justfit_llm-2.3.0/source/dev/tests/engine/host_reserve_probe.cc +31 -0
- justfit_llm-2.3.0/source/dev/tests/engine/prefill_alias_layout_test.cc +29 -0
- justfit_llm-2.3.0/source/dev/tests/engine/qwen_state_storage_test.mm +96 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_attention_probe.cc +83 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_coalesced_bench.cc +60 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_coalesced_warm_bench.cc +60 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_compact_bench.cc +47 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_dense_attention_probe.cc +86 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_extent_layout_test.cc +55 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_extent_storage_probe.cc +26 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_staged_attention_probe.cc +67 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_staged_multitile_probe.cc +67 -0
- justfit_llm-2.3.0/source/dev/tests/engine/tq4_verify_boundary_probe.cc +86 -0
- justfit_llm-2.3.0/source/dev/tests/engine/verify_a8_probe.cc +46 -0
- justfit_llm-2.3.0/source/dev/tests/engine/weight_phase_probe.cc +68 -0
- justfit_llm-2.3.0/source/dev/tools/__init__.py +1 -0
- justfit_llm-2.3.0/source/dev/tools/build_config.py +64 -0
- justfit_llm-2.3.0/source/dev/tools/build_identity.py +226 -0
- justfit_llm-2.3.0/source/dev/tools/check_architecture.py +288 -0
- justfit_llm-2.3.0/source/dev/tools/install.sh +165 -0
- justfit_llm-2.3.0/source/dev/tools/installer_restarts.py +155 -0
- justfit_llm-2.3.0/source/dev/tools/kernel_identity.py +135 -0
- justfit_llm-2.3.0/source/dev/tools/package.py +271 -0
- justfit_llm-2.3.0/source/dev/tools/package_brew.py +143 -0
- justfit_llm-2.3.0/source/dev/tools/publish_test.py +62 -0
- justfit_llm-2.3.0/source/dev/tools/update_model_catalog.py +31 -0
- justfit_llm-2.3.0/source/dev/tools/vision_reference.py +278 -0
- justfit_llm-2.3.0/source/dev/tools/weight_digests.mm +51 -0
- justfit_llm-2.3.0/source/dev/tuning/AttentionFixture.hpp +346 -0
- justfit_llm-2.3.0/source/dev/tuning/HostKvExtents.hpp +189 -0
- justfit_llm-2.3.0/source/dev/tuning/LinearNumerics.hpp +129 -0
- justfit_llm-2.3.0/source/dev/tuning/LinearTuning.cpp +419 -0
- justfit_llm-2.3.0/source/dev/tuning/LinearTuning.hpp +80 -0
- justfit_llm-2.3.0/source/dev/tuning/Measurement.cpp +137 -0
- justfit_llm-2.3.0/source/dev/tuning/Measurement.hpp +118 -0
- justfit_llm-2.3.0/source/dev/tuning/Tuning.cpp +149 -0
- justfit_llm-2.3.0/source/dev/tuning/Tuning.hpp +124 -0
- justfit_llm-2.3.0/source/dev/tuning/TuningWorkloads.cpp +135 -0
- justfit_llm-2.3.0/source/dev/tuning/TuningWorkloads.hpp +36 -0
- justfit_llm-2.3.0/source/dev/tuning/tune_kernels.mm +306 -0
- justfit_llm-2.3.0/source/docs/performance.md +100 -0
- justfit_llm-2.3.0/source/install/__init__.py +0 -0
- justfit_llm-2.3.0/source/install/assembly.py +362 -0
- justfit_llm-2.3.0/source/install/catalog.py +181 -0
- justfit_llm-2.3.0/source/install/clients.py +518 -0
- justfit_llm-2.3.0/source/install/completions/_justfit +36 -0
- justfit_llm-2.3.0/source/install/completions/justfit.bash +76 -0
- justfit_llm-2.3.0/source/install/completions/justfit.fish +21 -0
- justfit_llm-2.3.0/source/install/completions/models +50 -0
- justfit_llm-2.3.0/source/install/completions/official-models.txt +2 -0
- justfit_llm-2.3.0/source/install/completions/suggested-models.txt +4 -0
- justfit_llm-2.3.0/source/install/families.py +33 -0
- justfit_llm-2.3.0/source/install/gguf.py +591 -0
- justfit_llm-2.3.0/source/install/hub.py +413 -0
- justfit_llm-2.3.0/source/install/launcher.py +493 -0
- justfit_llm-2.3.0/source/install/legacy.py +361 -0
- justfit_llm-2.3.0/source/install/models.py +371 -0
- justfit_llm-2.3.0/source/install/paths.py +12 -0
- justfit_llm-2.3.0/source/install/requirements.txt +41 -0
- justfit_llm-2.3.0/source/install/upstream.py +626 -0
- justfit_llm-2.3.0/source/justfit +26 -0
- justfit_llm-2.3.0/source/runtime/AwakeClock.hpp +35 -0
- justfit_llm-2.3.0/source/runtime/Checked.hpp +57 -0
- justfit_llm-2.3.0/source/runtime/StderrLine.hpp +65 -0
- justfit_llm-2.3.0/source/runtime/ane/Handoff.hpp +90 -0
- justfit_llm-2.3.0/source/runtime/ane/Handoff.mm +223 -0
- justfit_llm-2.3.0/source/runtime/ane/Program.hpp +162 -0
- justfit_llm-2.3.0/source/runtime/ane/Program.mm +861 -0
- justfit_llm-2.3.0/source/runtime/ane/ProgramInstrumentation.hpp +56 -0
- justfit_llm-2.3.0/source/runtime/engine/AneFfnStartup.cpp +268 -0
- justfit_llm-2.3.0/source/runtime/engine/AneFfnStartup.hpp +125 -0
- justfit_llm-2.3.0/source/runtime/engine/BenchmarkBarrier.hpp +16 -0
- justfit_llm-2.3.0/source/runtime/engine/Bootstrap.hpp +165 -0
- justfit_llm-2.3.0/source/runtime/engine/Bootstrap.mm +425 -0
- justfit_llm-2.3.0/source/runtime/engine/Cache.cpp +1146 -0
- justfit_llm-2.3.0/source/runtime/engine/Cache.hpp +634 -0
- justfit_llm-2.3.0/source/runtime/engine/CacheDirectory.cpp +221 -0
- justfit_llm-2.3.0/source/runtime/engine/CacheDirectory.hpp +78 -0
- justfit_llm-2.3.0/source/runtime/engine/CacheRecency.hpp +33 -0
- justfit_llm-2.3.0/source/runtime/engine/DiskLabels.hpp +60 -0
- justfit_llm-2.3.0/source/runtime/engine/Engine.cpp +1906 -0
- justfit_llm-2.3.0/source/runtime/engine/Engine.hpp +539 -0
- justfit_llm-2.3.0/source/runtime/engine/FdTransport.cpp +417 -0
- justfit_llm-2.3.0/source/runtime/engine/FdTransport.hpp +92 -0
- justfit_llm-2.3.0/source/runtime/engine/Json.hpp +51 -0
- justfit_llm-2.3.0/source/runtime/engine/KvCache.cpp +603 -0
- justfit_llm-2.3.0/source/runtime/engine/KvCache.hpp +240 -0
- justfit_llm-2.3.0/source/runtime/engine/KvPageTier.cpp +134 -0
- justfit_llm-2.3.0/source/runtime/engine/KvPageTier.hpp +70 -0
- justfit_llm-2.3.0/source/runtime/engine/KvPool.cpp +416 -0
- justfit_llm-2.3.0/source/runtime/engine/KvPool.hpp +188 -0
- justfit_llm-2.3.0/source/runtime/engine/KvTier.hpp +66 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryAudit.cpp +211 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryAudit.hpp +71 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryControl.cpp +57 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryControl.hpp +45 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryGovernor.cpp +354 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryGovernor.hpp +269 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryPlan.cpp +376 -0
- justfit_llm-2.3.0/source/runtime/engine/MemoryPlan.hpp +207 -0
- justfit_llm-2.3.0/source/runtime/engine/NativeArguments.cpp +145 -0
- justfit_llm-2.3.0/source/runtime/engine/NativeArguments.hpp +55 -0
- justfit_llm-2.3.0/source/runtime/engine/NativeRuntime.cpp +586 -0
- justfit_llm-2.3.0/source/runtime/engine/NativeRuntime.hpp +205 -0
- justfit_llm-2.3.0/source/runtime/engine/Protocol.cpp +1141 -0
- justfit_llm-2.3.0/source/runtime/engine/Protocol.hpp +360 -0
- justfit_llm-2.3.0/source/runtime/engine/RecencyOrder.hpp +82 -0
- justfit_llm-2.3.0/source/runtime/engine/ReleasableMemory.hpp +56 -0
- justfit_llm-2.3.0/source/runtime/engine/RuntimeResources.hpp +295 -0
- justfit_llm-2.3.0/source/runtime/engine/RuntimeResources.mm +769 -0
- justfit_llm-2.3.0/source/runtime/engine/Scheduler.cpp +667 -0
- justfit_llm-2.3.0/source/runtime/engine/Scheduler.hpp +190 -0
- justfit_llm-2.3.0/source/runtime/engine/StateCache.cpp +655 -0
- justfit_llm-2.3.0/source/runtime/engine/StateCache.hpp +380 -0
- justfit_llm-2.3.0/source/runtime/engine/Status.cpp +347 -0
- justfit_llm-2.3.0/source/runtime/engine/Status.hpp +288 -0
- justfit_llm-2.3.0/source/runtime/engine/Types.hpp +134 -0
- justfit_llm-2.3.0/source/runtime/engine/WriteBehind.cpp +94 -0
- justfit_llm-2.3.0/source/runtime/engine/WriteBehind.hpp +83 -0
- justfit_llm-2.3.0/source/runtime/main.mm +412 -0
- justfit_llm-2.3.0/source/runtime/metal/BackendInstrumentation.hpp +38 -0
- justfit_llm-2.3.0/source/runtime/metal/CommandGraph.hpp +111 -0
- justfit_llm-2.3.0/source/runtime/metal/CommandWatchdog.hpp +38 -0
- justfit_llm-2.3.0/source/runtime/metal/DeviceCapabilities.cpp +63 -0
- justfit_llm-2.3.0/source/runtime/metal/DeviceCapabilities.hpp +52 -0
- justfit_llm-2.3.0/source/runtime/metal/HostWork.hpp +32 -0
- justfit_llm-2.3.0/source/runtime/metal/MetalBackend.hpp +389 -0
- justfit_llm-2.3.0/source/runtime/metal/MetalBackend.mm +1464 -0
- justfit_llm-2.3.0/source/runtime/metal/Residency.hpp +146 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/AneFfn.h +79 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/DraftAttention.h +83 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/Embedding.h +23 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/ExecutionGeometry.h +68 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/GDN.h +57 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/Gguf.h +126 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/GgufRepack.h +18 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/KernelABI.h +22 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/KvExtent.h +97 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/Linear.h +55 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/MoE.h +95 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/PagedAttention.h +83 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/QuantFormat.h +119 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/QuantTables.h +843 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/RoPE.h +24 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/RowCopy.h +25 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/Sampling.h +150 -0
- justfit_llm-2.3.0/source/runtime/metal/abi/Vision.h +53 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/activation.h +17 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/attention_gate.h +36 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/attention_qkv_prepare.h +69 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/draft_context_kv.h +49 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/gdn_primitives.h +105 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/gguf_embedding_formats.h +152 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/gguf_sgmatrix.h +53 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/gguf_staged.h +48 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/gguf_staged_tile.h +125 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/gguf_tile.h +15 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/kv_extent.h +78 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/kv_paging.h +41 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/lane_bindings.h +13 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/moe_expert_slab.h +78 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/paged_attention_tile.h +336 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/paged_store_row.h +109 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/q4_mpp_tiles.h +351 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/q4_sgmatrix.h +46 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/quant_formats.h +475 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/rms_inverse.h +53 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/sgmatrix.h +44 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/split_reduce.h +45 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/tq4_attention_tile.h +240 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/tq4_paging.h +88 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/common/tq4_store_row.h +77 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/attention_qkv.metal +117 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/draft.metal +597 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/gdn.metal +504 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/linear_gguf_sgmatrix.metal +415 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/linear_q4.metal +125 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/linear_q4_a8.metal +253 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/linear_q4_grid_split.metal +79 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/linear_q4_sgmatrix.metal +357 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/paged_attention.metal +152 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/paged_attention_store.metal +63 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/sampling.metal +1557 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/tq4_attention.metal +76 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/tq4_rotated.metal +386 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/decode/tq4_store.metal +44 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/ane_ffn.metal +315 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/attention_qkv.metal +57 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/cpu_up_silu_sum.metal +13 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/draft_context.metal +23 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/gdn.metal +326 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/linear_q4.metal +287 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/moe.metal +89 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/normalization.metal +46 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/paged_attention.metal +112 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/paged_attention_store.metal +48 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/tq4_attention.metal +48 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/tq4_staged.metal +351 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/prefill/tq4_store.metal +30 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/embedding.metal +100 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/gguf_float.metal +200 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/gguf_linear.metal +219 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/gguf_repack.metal +144 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/gguf_rotation.metal +79 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/moe.metal +722 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/moe_gguf.metal +60 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/normalization.metal +225 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/residency.metal +11 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/rope.metal +36 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/row_copy.metal +15 -0
- justfit_llm-2.3.0/source/runtime/metal/kernels/shared/vision.metal +526 -0
- justfit_llm-2.3.0/source/runtime/model/AffinePlan.hpp +86 -0
- justfit_llm-2.3.0/source/runtime/model/AffinePreparation.cpp +275 -0
- justfit_llm-2.3.0/source/runtime/model/AffinePreparation.hpp +66 -0
- justfit_llm-2.3.0/source/runtime/model/AffineTarget.cpp +172 -0
- justfit_llm-2.3.0/source/runtime/model/AffineTarget.hpp +44 -0
- justfit_llm-2.3.0/source/runtime/model/Bfloat16.hpp +18 -0
- justfit_llm-2.3.0/source/runtime/model/Crc32c.hpp +31 -0
- justfit_llm-2.3.0/source/runtime/model/DFlashDraft.cpp +393 -0
- justfit_llm-2.3.0/source/runtime/model/DFlashDraft.hpp +227 -0
- justfit_llm-2.3.0/source/runtime/model/DraftCheckpoint.cpp +100 -0
- justfit_llm-2.3.0/source/runtime/model/DraftCheckpoint.hpp +41 -0
- justfit_llm-2.3.0/source/runtime/model/DraftContextPlan.cpp +125 -0
- justfit_llm-2.3.0/source/runtime/model/ElasticResidency.hpp +8 -0
- justfit_llm-2.3.0/source/runtime/model/GgufFile.cpp +358 -0
- justfit_llm-2.3.0/source/runtime/model/GgufFile.hpp +136 -0
- justfit_llm-2.3.0/source/runtime/model/GgufImage.cpp +387 -0
- justfit_llm-2.3.0/source/runtime/model/GgufImage.hpp +93 -0
- justfit_llm-2.3.0/source/runtime/model/GgufImageLayout.hpp +78 -0
- justfit_llm-2.3.0/source/runtime/model/GgufPreparation.cpp +284 -0
- justfit_llm-2.3.0/source/runtime/model/GgufPreparation.hpp +21 -0
- justfit_llm-2.3.0/source/runtime/model/GgufTarget.cpp +46 -0
- justfit_llm-2.3.0/source/runtime/model/GgufTarget.hpp +53 -0
- justfit_llm-2.3.0/source/runtime/model/HostEmbedding.hpp +69 -0
- justfit_llm-2.3.0/source/runtime/model/LookupController.hpp +40 -0
- justfit_llm-2.3.0/source/runtime/model/Model.hpp +598 -0
- justfit_llm-2.3.0/source/runtime/model/ModelDescriptor.hpp +91 -0
- justfit_llm-2.3.0/source/runtime/model/ModelDescriptor.mm +674 -0
- justfit_llm-2.3.0/source/runtime/model/ModelFactory.cpp +150 -0
- justfit_llm-2.3.0/source/runtime/model/ModelFactory.hpp +125 -0
- justfit_llm-2.3.0/source/runtime/model/PhaseResidency.hpp +15 -0
- justfit_llm-2.3.0/source/runtime/model/PromptLookup.hpp +45 -0
- justfit_llm-2.3.0/source/runtime/model/Qwen3_6Moe.cpp +55 -0
- justfit_llm-2.3.0/source/runtime/model/Qwen3_6Moe.hpp +83 -0
- justfit_llm-2.3.0/source/runtime/model/Qwen3_8.cpp +69 -0
- justfit_llm-2.3.0/source/runtime/model/Qwen3_8.hpp +83 -0
- justfit_llm-2.3.0/source/runtime/model/QwenHybridLayout.hpp +91 -0
- justfit_llm-2.3.0/source/runtime/model/QwenState.cpp +544 -0
- justfit_llm-2.3.0/source/runtime/model/QwenState.hpp +271 -0
- justfit_llm-2.3.0/source/runtime/model/QwenTarget.cpp +543 -0
- justfit_llm-2.3.0/source/runtime/model/QwenTarget.hpp +345 -0
- justfit_llm-2.3.0/source/runtime/model/QwenTargetFiles.hpp +22 -0
- justfit_llm-2.3.0/source/runtime/model/QwenTargetLoader.cpp +68 -0
- justfit_llm-2.3.0/source/runtime/model/QwenTargetLoader.hpp +218 -0
- justfit_llm-2.3.0/source/runtime/model/QwenVision.cpp +95 -0
- justfit_llm-2.3.0/source/runtime/model/QwenVision.hpp +35 -0
- justfit_llm-2.3.0/source/runtime/model/Runtime.cpp +3114 -0
- justfit_llm-2.3.0/source/runtime/model/Runtime.hpp +87 -0
- justfit_llm-2.3.0/source/runtime/model/RuntimeArenas.cpp +366 -0
- justfit_llm-2.3.0/source/runtime/model/RuntimeArenas.hpp +596 -0
- justfit_llm-2.3.0/source/runtime/model/SafetensorsCheckpoint.hpp +29 -0
- justfit_llm-2.3.0/source/runtime/model/SafetensorsCheckpoint.mm +140 -0
- justfit_llm-2.3.0/source/runtime/model/SlotFile.cpp +815 -0
- justfit_llm-2.3.0/source/runtime/model/SlotFile.hpp +259 -0
- justfit_llm-2.3.0/source/runtime/model/StateLayout.hpp +96 -0
- justfit_llm-2.3.0/source/runtime/model/StateTransfer.hpp +37 -0
- justfit_llm-2.3.0/source/runtime/model/ThinkingBudget.hpp +42 -0
- justfit_llm-2.3.0/source/runtime/model/VisionLoader.cpp +210 -0
- justfit_llm-2.3.0/source/runtime/model/VisionLoader.hpp +42 -0
- justfit_llm-2.3.0/source/runtime/model/VisionPreparation.cpp +112 -0
- justfit_llm-2.3.0/source/runtime/model/VisionPreparation.hpp +47 -0
- justfit_llm-2.3.0/source/runtime/model/VisionRows.hpp +14 -0
- justfit_llm-2.3.0/source/runtime/model/WeightImages.cpp +165 -0
- justfit_llm-2.3.0/source/runtime/model/WeightImages.hpp +120 -0
- justfit_llm-2.3.0/source/runtime/model/WeightLayout.hpp +45 -0
- justfit_llm-2.3.0/source/runtime/model/WeightMemory.hpp +23 -0
- justfit_llm-2.3.0/source/runtime/model/WeightSource.cpp +95 -0
- justfit_llm-2.3.0/source/runtime/model/WeightSource.hpp +55 -0
- justfit_llm-2.3.0/source/runtime/model/WeightStore.cpp +293 -0
- justfit_llm-2.3.0/source/runtime/model/WeightStore.hpp +123 -0
- justfit_llm-2.3.0/source/runtime/ops/AneFfn.cpp +818 -0
- justfit_llm-2.3.0/source/runtime/ops/AneFfn.hpp +297 -0
- justfit_llm-2.3.0/source/runtime/ops/AneFfnCalibration.cpp +197 -0
- justfit_llm-2.3.0/source/runtime/ops/AneFfnCalibration.hpp +130 -0
- justfit_llm-2.3.0/source/runtime/ops/AneFfnMeasurement.cpp +151 -0
- justfit_llm-2.3.0/source/runtime/ops/AneFfnMeasurement.hpp +54 -0
- justfit_llm-2.3.0/source/runtime/ops/BufferExtent.hpp +30 -0
- justfit_llm-2.3.0/source/runtime/ops/DraftAttention.cpp +269 -0
- justfit_llm-2.3.0/source/runtime/ops/DraftAttention.hpp +120 -0
- justfit_llm-2.3.0/source/runtime/ops/DraftSelector.cpp +94 -0
- justfit_llm-2.3.0/source/runtime/ops/DraftSelector.hpp +62 -0
- justfit_llm-2.3.0/source/runtime/ops/Embedding.cpp +85 -0
- justfit_llm-2.3.0/source/runtime/ops/Embedding.hpp +27 -0
- justfit_llm-2.3.0/source/runtime/ops/ExecutionPlans.cpp +120 -0
- justfit_llm-2.3.0/source/runtime/ops/ExecutionPlans.hpp +54 -0
- justfit_llm-2.3.0/source/runtime/ops/GDN.cpp +207 -0
- justfit_llm-2.3.0/source/runtime/ops/GDN.hpp +112 -0
- justfit_llm-2.3.0/source/runtime/ops/HostLinear.cpp +532 -0
- justfit_llm-2.3.0/source/runtime/ops/HostLinear.hpp +45 -0
- justfit_llm-2.3.0/source/runtime/ops/LaneBindings.hpp +25 -0
- justfit_llm-2.3.0/source/runtime/ops/Linear.cpp +906 -0
- justfit_llm-2.3.0/source/runtime/ops/Linear.hpp +365 -0
- justfit_llm-2.3.0/source/runtime/ops/LinearGguf.cpp +516 -0
- justfit_llm-2.3.0/source/runtime/ops/MoE.cpp +348 -0
- justfit_llm-2.3.0/source/runtime/ops/MoE.hpp +299 -0
- justfit_llm-2.3.0/source/runtime/ops/Normalization.cpp +60 -0
- justfit_llm-2.3.0/source/runtime/ops/Normalization.hpp +53 -0
- justfit_llm-2.3.0/source/runtime/ops/PageStorage.cpp +170 -0
- justfit_llm-2.3.0/source/runtime/ops/PageStorage.hpp +105 -0
- justfit_llm-2.3.0/source/runtime/ops/PagedAttention.cpp +489 -0
- justfit_llm-2.3.0/source/runtime/ops/PagedAttention.hpp +270 -0
- justfit_llm-2.3.0/source/runtime/ops/PagedKv.hpp +219 -0
- justfit_llm-2.3.0/source/runtime/ops/RoPE.cpp +48 -0
- justfit_llm-2.3.0/source/runtime/ops/RoPE.hpp +23 -0
- justfit_llm-2.3.0/source/runtime/ops/RowCopy.cpp +40 -0
- justfit_llm-2.3.0/source/runtime/ops/RowCopy.hpp +31 -0
- justfit_llm-2.3.0/source/runtime/ops/Sampling.cpp +323 -0
- justfit_llm-2.3.0/source/runtime/ops/Sampling.hpp +198 -0
- justfit_llm-2.3.0/source/runtime/ops/TQ4ExtentLayout.hpp +79 -0
- justfit_llm-2.3.0/source/runtime/ops/TQ4ExtentStorage.cpp +170 -0
- justfit_llm-2.3.0/source/runtime/ops/TQ4ExtentStorage.hpp +105 -0
- justfit_llm-2.3.0/source/runtime/ops/VerifyShape.hpp +19 -0
- justfit_llm-2.3.0/source/runtime/ops/Vision.cpp +259 -0
- justfit_llm-2.3.0/source/runtime/ops/Vision.hpp +162 -0
- justfit_llm-2.3.0/source/runtime/ops/Weights.hpp +217 -0
- justfit_llm-2.3.0/source/server/__init__.py +0 -0
- justfit_llm-2.3.0/source/server/ane_model_cache.py +22 -0
- justfit_llm-2.3.0/source/server/ane_placement.py +64 -0
- justfit_llm-2.3.0/source/server/ane_vision_worker.py +131 -0
- justfit_llm-2.3.0/source/server/api_shapes.py +1243 -0
- justfit_llm-2.3.0/source/server/backend.py +957 -0
- justfit_llm-2.3.0/source/server/chat.html +652 -0
- justfit_llm-2.3.0/source/server/chat_templates.py +669 -0
- justfit_llm-2.3.0/source/server/connections.py +532 -0
- justfit_llm-2.3.0/source/server/constraints.py +230 -0
- justfit_llm-2.3.0/source/server/crash_trace.py +391 -0
- justfit_llm-2.3.0/source/server/diagnostics.py +61 -0
- justfit_llm-2.3.0/source/server/document_worker.py +192 -0
- justfit_llm-2.3.0/source/server/documents.py +278 -0
- justfit_llm-2.3.0/source/server/errors.py +109 -0
- justfit_llm-2.3.0/source/server/favicon.svg +5 -0
- justfit_llm-2.3.0/source/server/frontend.py +1197 -0
- justfit_llm-2.3.0/source/server/grouped_vision_profile.py +158 -0
- justfit_llm-2.3.0/source/server/http_security.py +131 -0
- justfit_llm-2.3.0/source/server/images.py +208 -0
- justfit_llm-2.3.0/source/server/json_codec.py +83 -0
- justfit_llm-2.3.0/source/server/judgments.py +474 -0
- justfit_llm-2.3.0/source/server/latency.py +111 -0
- justfit_llm-2.3.0/source/server/lru.py +60 -0
- justfit_llm-2.3.0/source/server/metrics.py +298 -0
- justfit_llm-2.3.0/source/server/origins.py +64 -0
- justfit_llm-2.3.0/source/server/output.py +602 -0
- justfit_llm-2.3.0/source/server/preparation_cancel.py +26 -0
- justfit_llm-2.3.0/source/server/prepared_vision.py +755 -0
- justfit_llm-2.3.0/source/server/protocol.py +1246 -0
- justfit_llm-2.3.0/source/server/runtime.py +1513 -0
- justfit_llm-2.3.0/source/server/schema_validation.py +245 -0
- justfit_llm-2.3.0/source/server/serve_options.py +614 -0
- justfit_llm-2.3.0/source/server/server.py +1768 -0
- justfit_llm-2.3.0/source/server/thinking.py +103 -0
- justfit_llm-2.3.0/source/server/thinking_budget.py +17 -0
- justfit_llm-2.3.0/source/server/tokenization.py +136 -0
- justfit_llm-2.3.0/source/server/tool_schema.py +994 -0
- justfit_llm-2.3.0/source/server/variable_vision_worker.py +114 -0
- justfit_llm-2.3.0/source/server/vision_adapter.py +34 -0
- justfit_llm-2.3.0/source/server/vision_cache_ready.py +41 -0
- justfit_llm-2.3.0/source/server/vision_geometry.py +89 -0
- justfit_llm-2.3.0/source/server/vision_routing.py +145 -0
- justfit_llm-2.3.0/tests/fixtures/ane/1080p.png +0 -0
- justfit_llm-2.3.0/tests/fixtures/ane/cases.json +31 -0
- justfit_llm-2.3.0/tests/fixtures/ane/generate_dashboard.py +42 -0
- justfit_llm-2.3.0/tests/fixtures/ane/small.png +0 -0
- justfit_llm-2.3.0/tests/test_ane_bundle.py +159 -0
- justfit_llm-2.3.0/tests/test_branding.py +55 -0
- justfit_llm-2.3.0/tests/test_dependency_pins.py +23 -0
- justfit_llm-2.3.0/tests/test_grouped_profile.py +44 -0
- justfit_llm-2.3.0/tests/test_image_security.py +47 -0
- justfit_llm-2.3.0/tests/test_local_launcher.py +61 -0
- justfit_llm-2.3.0/tests/test_one_command_model.py +50 -0
- justfit_llm-2.3.0/tests/test_one_command_safety.py +41 -0
- justfit_llm-2.3.0/tests/test_package_validation.py +15 -0
- justfit_llm-2.3.0/tests/test_pip_cli.py +144 -0
- justfit_llm-2.3.0/tests/test_preparation_cancel.py +22 -0
- justfit_llm-2.3.0/tests/test_runtime_bundle.py +97 -0
- justfit_llm-2.3.0/tests/test_thinking_budget.py +101 -0
- justfit_llm-2.3.0/tests/test_vision_lifecycle.py +48 -0
- justfit_llm-2.3.0/tests/test_vision_provision.py +82 -0
- justfit_llm-2.3.0/tests/test_vision_relief.py +30 -0
- justfit_llm-2.3.0/tests/test_vision_startup.py +19 -0
- justfit_llm-2.3.0/tests/test_worker_packaging.py +12 -0
- justfit_llm-2.3.0/tests/thinking_budget_state.cpp +31 -0
- justfit_llm-2.3.0/tests/thinking_budget_wire.cpp +21 -0
- justfit_llm-2.3.0/validate_package.py +17 -0
- justfit_llm-2.3.0/vision-tools/CoreAIBridge.swift +478 -0
- justfit_llm-2.3.0/vision-tools/ane_model_cache.py +22 -0
- justfit_llm-2.3.0/vision-tools/ane_placement.py +64 -0
- justfit_llm-2.3.0/vision-tools/attributed_memory.c +26 -0
- justfit_llm-2.3.0/vision-tools/coreai_bridge.py +258 -0
- justfit_llm-2.3.0/vision-tools/graph.py +117 -0
- justfit_llm-2.3.0/vision-tools/grouped_worker.py +130 -0
- justfit_llm-2.3.0/vision-tools/memory_audit.py +14 -0
- justfit_llm-2.3.0/vision-tools/metered_worker.py +25 -0
- justfit_llm-2.3.0/vision-tools/partition.py +11 -0
- justfit_llm-2.3.0/vision-tools/provision.py +213 -0
- justfit_llm-2.3.0/vision-tools/requirements-export.txt +6 -0
- justfit_llm-2.3.0/vision-tools/variable_vision_worker.py +114 -0
- justfit_llm-2.3.0/vision-tools/vision_cache_ready.py +41 -0
- justfit_llm-2.3.0/vision-tools/vision_geometry.py +89 -0
- justfit_llm-2.3.0/vision-tools/vision_graph.py +111 -0
- justfit_llm-2.3.0/vision-tools/vision_weights.py +275 -0
- justfit_llm-2.3.0/vision-tools/warm_chain.py +88 -0
- justfit_llm-2.3.0/vision-tools/worker_meter.py +21 -0
- justfit_llm-2.3.0/website/README.md +4 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ANE vision eligibility
|
|
2
|
+
|
|
3
|
+
The release policy is `gpu_relief`, with per-node, per-capacity acceptance.
|
|
4
|
+
4K/8K refer to raw patch capacities, not text context lengths. Select the smallest
|
|
5
|
+
ready graph that fits the preserved preprocessed geometry.
|
|
6
|
+
|
|
7
|
+
| Current native scheduler state | Language ANE FFN state | Eligible phase |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| Any text prefill, with or without decoding lanes | off | qualified prefill |
|
|
10
|
+
| Any text prefill, with or without decoding lanes | split/stopped | GPU fallback |
|
|
11
|
+
| Decoding, no text prefill | known off/split/stopped | qualified decode |
|
|
12
|
+
| Idle, only queued, unknown status | any | GPU fallback |
|
|
13
|
+
|
|
14
|
+
Each leaf explicitly sets `phase_qualification: {"prefill": false, "decode": false}`
|
|
15
|
+
until its hardware/service acceptance supports the corresponding phase. These
|
|
16
|
+
booleans express an operator-reviewed deployment contract, not a speed estimate.
|
|
17
|
+
There is no automatic promotion from a standalone encoder benchmark.
|
|
18
|
+
|
|
19
|
+
A second waiting image or a multi-image request uses the existing native route.
|
|
20
|
+
All external workers retain fixed native memory leases, host-reserve admission,
|
|
21
|
+
bounded output payloads, cached-only graph loading and actual placement checks.
|
|
22
|
+
No request compiles an asset. A transient prewarm admission denial defers the
|
|
23
|
+
prewarm; it never bypasses runtime admission. Invalid assets or hashes fail load.
|
|
24
|
+
|
|
25
|
+
Eligibility is rechecked after serialization and memory waits. Native ownership
|
|
26
|
+
is authoritative across subsequent phase changes: language FFN jobs drain before
|
|
27
|
+
vision ownership is granted, FFN split remains paused for the lease, and resumes
|
|
28
|
+
on release. Cancellation/failure reaps the worker before releasing its lease.
|
|
29
|
+
|
|
30
|
+
Evaluate text decode continuity and matched text output/throughput alongside image
|
|
31
|
+
latency, prefill progress, memory and recovery. A slower isolated ANE encoder can
|
|
32
|
+
still reduce interruption of the busy GPU. A single cohort completion difference
|
|
33
|
+
is not proof of accelerator contention or of every lane slowing down.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
- Promote the qualified preview to a stable-version release candidate.
|
|
6
|
+
- Distribute the native engine and helpers with Developer ID signatures; verify
|
|
7
|
+
Apple notarization and exact installed artifacts before publication.
|
|
8
|
+
|
|
9
|
+
- Support a separately pinned local or HTTPS-manifest native runtime, validating
|
|
10
|
+
source identity, platform, archive paths and output hashes before installation.
|
|
11
|
+
- Add a relocatable native asset builder; ad-hoc assets are for local qualification
|
|
12
|
+
and do not claim Developer ID signing, notarization or public hosting.
|
|
13
|
+
|
|
14
|
+
- Align all three reference node presets with the tested 22,015 MiB native
|
|
15
|
+
memory budget; document 21,631 MiB as a conservative local alternative.
|
|
16
|
+
|
|
17
|
+
- Release persistent-state staging memory while retaining immutable buffers
|
|
18
|
+
through asynchronous writes; preserve direct-to-disk recovery when snapshot
|
|
19
|
+
memory admission is denied.
|
|
20
|
+
- Isolate serving imports from inherited Python paths and user site-packages.
|
|
21
|
+
- Include a native regression covering state IO ownership, cancellation and
|
|
22
|
+
memory-constrained disk recovery.
|
|
23
|
+
- Add citation metadata for the JustFit v2 manuscript.
|
|
24
|
+
- `justfit serve` with no arguments creates the workspace, finds the Metal
|
|
25
|
+
toolchain and builds once, downloads the qualified model revision, selects the
|
|
26
|
+
preset from chip and memory, and defaults to port 8000. Adds a `justfit` command alias.
|
|
27
|
+
|
|
28
|
+
- Use neutral source-distribution owner/group metadata.
|
|
29
|
+
- Document installation, configuration and validation for standalone users.
|
|
30
|
+
|
|
31
|
+
## 2.3 features
|
|
32
|
+
|
|
33
|
+
- Source-bearing wheel/sdist and explicit workspace, build and serve commands.
|
|
34
|
+
- Native per-request thinking budgets, including speculative boundaries.
|
|
35
|
+
- Conditional 4K/8K ANE vision routing with device-specific phase eligibility.
|
|
36
|
+
- CPU/GPU execution references and language-ANE prefill integration.
|
|
37
|
+
- Cancellation propagation, worker lifecycle and resource-admission checks.
|
|
38
|
+
- Portable ANE export, offline compilation and local profile qualification tools.
|
|
39
|
+
- Managed service disk/log protection and restart port checks.
|
|
40
|
+
- Optional external broker history-preservation and health-probe locking adapters.
|
|
41
|
+
- Management Host/Origin protection, optional bearer key, bounded uploads and
|
|
42
|
+
updated certificate/image-parser dependencies.
|
|
43
|
+
- Synthetic image fixtures with frozen expected answers.
|
|
44
|
+
|
|
45
|
+
See [validation](docs/VALIDATION.md) for test procedures and limitations.
|
|
46
|
+
The dated JustFit v2 preprint is linked from the README and citation metadata.
|
|
47
|
+
|
|
48
|
+
### ANE installation integrity
|
|
49
|
+
|
|
50
|
+
Revalidate installed graph assets and compiled cache contents against SHA256 before reuse or native prewarm. Missing, changed, extra, linked or special files are refused without overwriting user caches.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If JustFit supports your research, please cite the paper listed in preferred-citation."
|
|
3
|
+
type: software
|
|
4
|
+
title: JustFit
|
|
5
|
+
authors:
|
|
6
|
+
- family-names: Chen
|
|
7
|
+
given-names: Yuhua
|
|
8
|
+
preferred-citation:
|
|
9
|
+
type: unpublished
|
|
10
|
+
title: "JustFit v2: Long-Context Local LLM Serving with Just-in-Time State Management"
|
|
11
|
+
authors:
|
|
12
|
+
- family-names: Chen
|
|
13
|
+
given-names: Yuhua
|
|
14
|
+
year: 2026
|
|
15
|
+
month: 10
|
|
16
|
+
day: 23
|
|
17
|
+
url: "https://github.com/YuhuaBillChen/justfit-llm/blob/paper-v2-2026-10-23-r2/paper/2026-10-23/JustFit-v2.pdf"
|
|
18
|
+
notes: "Preprint, version 2026-10-23 revision 2."
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Run the source and service tests in [QUICKSTART.md](QUICKSTART.md). Include the
|
|
4
|
+
node/chip, macOS, model revision, configuration and artifact hashes when reporting
|
|
5
|
+
a reproducible issue. Exclude credentials, private prompts and model weights.
|
|
6
|
+
Runtime changes need focused behavioral tests; accelerator changes additionally
|
|
7
|
+
need matched device evidence. Keep upstream attribution and native build receipts.
|
|
8
|
+
|
|
9
|
+
Report JustFit issues to https://github.com/YuhuaBillChen/justfit-llm/issues.
|
|
10
|
+
Upstream Splash maintainers are not the support contact for this modified project.
|
|
@@ -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.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
include CITATION.cff
|
|
2
|
+
include *.md *.json *.py *.toml *.txt .gitignore MANIFEST.in
|
|
3
|
+
recursive-include source *
|
|
4
|
+
recursive-include vision-tools *
|
|
5
|
+
recursive-include service *
|
|
6
|
+
recursive-include tests *
|
|
7
|
+
recursive-include scripts *
|
|
8
|
+
recursive-include config *
|
|
9
|
+
recursive-include docs *
|
|
10
|
+
recursive-include paper *
|
|
11
|
+
recursive-include website *
|
|
12
|
+
recursive-include python *.py
|
|
13
|
+
prune build
|
|
14
|
+
prune dist
|
|
15
|
+
prune source/build
|
|
16
|
+
prune source/.venv
|
|
17
|
+
prune source/venv
|
|
18
|
+
global-exclude __pycache__ *.pyc *.dylib .DS_Store
|
justfit_llm-2.3.0/NOTICE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
JustFit 2.3 is derived from Splash 1.3.0.
|
|
2
|
+
Upstream: https://github.com/incoai/splash
|
|
3
|
+
Pinned upstream commit: 0d5a035ea26d1cc566e3c7ee4e08e5e06fa68cf7
|
|
4
|
+
|
|
5
|
+
This distribution contains modified runtime/frontend code and additional JustFit
|
|
6
|
+
workers, service integration and release tooling. See ORIGIN.json and CHANGELOG.md.
|
|
7
|
+
The upstream Apache-2.0 license, THIRD_PARTY_NOTICES and inline notices are retained.
|
|
8
|
+
Model weights and machine-specific compiled assets are not included.
|
|
9
|
+
|
|
10
|
+
JustFit product identity: the modified engine is named justfit-engine; its GPU
|
|
11
|
+
libraries are justfit.metallib and justfit-verify16.metallib. The Python commands
|
|
12
|
+
are justfit and justfit-llm. These names do not imply upstream endorsement.
|
|
13
|
+
Published upstream model repository names and packed-weight format identifiers
|
|
14
|
+
are retained for compatibility. Modified source files carry JustFit notices.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"project": "JustFit",
|
|
3
|
+
"project_version": "2.3.0",
|
|
4
|
+
"upstream_project": "Splash",
|
|
5
|
+
"upstream_version": "1.3.0",
|
|
6
|
+
"upstream_commit": "0d5a035ea26d1cc566e3c7ee4e08e5e06fa68cf7",
|
|
7
|
+
"source_identity": "package-manifest.json pins the complete modified source tree; optional integration patches are not the complete upstream-to-JustFit diff.",
|
|
8
|
+
"attribution": [
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"NOTICE",
|
|
11
|
+
"source/THIRD_PARTY_NOTICES"
|
|
12
|
+
],
|
|
13
|
+
"optional_integrations": "service/broker-integration contains version-specific external adapter patches, not a standalone broker."
|
|
14
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: justfit-llm
|
|
3
|
+
Version: 2.3.0
|
|
4
|
+
Summary: Apple silicon inference with coordinated CPU, GPU and ANE work
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://github.com/YuhuaBillChen/justfit-llm
|
|
7
|
+
Project-URL: Repository, https://github.com/YuhuaBillChen/justfit-llm
|
|
8
|
+
Project-URL: Issues, https://github.com/YuhuaBillChen/justfit-llm/issues
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: <3.15,>=3.12
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
License-File: NOTICE
|
|
16
|
+
License-File: source/THIRD_PARTY_NOTICES
|
|
17
|
+
Requires-Dist: annotated-doc==0.0.5
|
|
18
|
+
Requires-Dist: anyio==4.14.2
|
|
19
|
+
Requires-Dist: attrs==26.1.0
|
|
20
|
+
Requires-Dist: certifi==2026.10.19
|
|
21
|
+
Requires-Dist: cffi==2.1.1
|
|
22
|
+
Requires-Dist: click==8.4.2
|
|
23
|
+
Requires-Dist: cryptography==50.0.1
|
|
24
|
+
Requires-Dist: filelock==3.32.3
|
|
25
|
+
Requires-Dist: fsspec==2026.7.0
|
|
26
|
+
Requires-Dist: h11==0.16.0
|
|
27
|
+
Requires-Dist: hf-xet==1.6.0
|
|
28
|
+
Requires-Dist: httpcore==1.0.9
|
|
29
|
+
Requires-Dist: httpx==0.28.1
|
|
30
|
+
Requires-Dist: huggingface_hub==1.28.0
|
|
31
|
+
Requires-Dist: idna==3.19
|
|
32
|
+
Requires-Dist: Jinja2==3.1.6
|
|
33
|
+
Requires-Dist: jsonschema==4.26.0
|
|
34
|
+
Requires-Dist: jsonschema-specifications==2025.9.1
|
|
35
|
+
Requires-Dist: llguidance==1.8.0
|
|
36
|
+
Requires-Dist: markdown-it-py==4.2.0
|
|
37
|
+
Requires-Dist: MarkupSafe==3.0.3
|
|
38
|
+
Requires-Dist: mdurl==0.1.2
|
|
39
|
+
Requires-Dist: numpy==2.5.2
|
|
40
|
+
Requires-Dist: packaging==26.3
|
|
41
|
+
Requires-Dist: Pillow==13.0.0
|
|
42
|
+
Requires-Dist: Pygments==2.21.0
|
|
43
|
+
Requires-Dist: pycparser==3.0
|
|
44
|
+
Requires-Dist: pypdfium2==5.13.0
|
|
45
|
+
Requires-Dist: PyYAML==6.0.3
|
|
46
|
+
Requires-Dist: referencing==0.37.0
|
|
47
|
+
Requires-Dist: regex==2026.7.19
|
|
48
|
+
Requires-Dist: rich==15.0.0
|
|
49
|
+
Requires-Dist: rpds-py==2026.6.3
|
|
50
|
+
Requires-Dist: safetensors==0.8.0
|
|
51
|
+
Requires-Dist: shellingham==1.5.4
|
|
52
|
+
Requires-Dist: tokenizers==0.22.2
|
|
53
|
+
Requires-Dist: tqdm==4.70.0
|
|
54
|
+
Requires-Dist: transformers==5.15.1
|
|
55
|
+
Requires-Dist: typer==0.27.1
|
|
56
|
+
Requires-Dist: typing_extensions==4.16.0
|
|
57
|
+
Requires-Dist: fastapi==0.141.1
|
|
58
|
+
Requires-Dist: uvicorn==0.52.1
|
|
59
|
+
Requires-Dist: annotated-types==0.8.0
|
|
60
|
+
Requires-Dist: pydantic==2.14.1
|
|
61
|
+
Requires-Dist: pydantic_core==2.50.1
|
|
62
|
+
Requires-Dist: starlette==1.9.0
|
|
63
|
+
Requires-Dist: typing-inspection==0.4.4
|
|
64
|
+
Dynamic: license-file
|
|
65
|
+
|
|
66
|
+
<div align="center">
|
|
67
|
+
<picture>
|
|
68
|
+
<source media="(max-width: 600px)" srcset="docs/assets/justfit-banner-mobile.svg">
|
|
69
|
+
<img src="docs/assets/justfit-banner.svg" alt="JustFit — long-context LLM serving on Apple silicon" width="100%">
|
|
70
|
+
</picture>
|
|
71
|
+
|
|
72
|
+
[](CHANGELOG.md)
|
|
73
|
+
[](LICENSE)
|
|
74
|
+
[](#supported-setup)
|
|
75
|
+
|
|
76
|
+
**[Get started](#get-started) · [Results](#measured-results) · [Documentation](#documentation) · [简体中文](README.zh-CN.md)**
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
JustFit is a local inference system for serving a **27B language-and-vision model on memory-constrained Macs**. It coordinates compressed context, a resident speculative draft, concurrent requests and CPU/GPU/ANE work under one unified-memory budget.
|
|
80
|
+
|
|
81
|
+
**Stable version: `2.3.0`.** This source tree prepares the stable release. Package-index and release-asset publication are pending; use the reviewed wheel and native runtime supplied with this release candidate. The immutable [RC24 preview](https://test.pypi.org/project/justfit-llm/2.3.0rc24/) remains available separately.
|
|
82
|
+
|
|
83
|
+
## Why JustFit
|
|
84
|
+
|
|
85
|
+
- **Keep long histories alongside the draft.** Warm-prefix tests reach a 320K aggregate page capacity across two live requests while retaining the speculative draft. This is a tested B2 bound, not a 320K single-request or cold-prefill guarantee.
|
|
86
|
+
- **Make concurrent work useful.** Bound transient workspaces, share compressed pages and preserve committed state across scheduling and cold restarts.
|
|
87
|
+
- **Put idle accelerators to work.** Use CPU-assisted prefill on M4 Pro, GPU A8 paths on M5 Pro/M6, and qualified ANE work when execution phase and memory allow it. Vision offload aims to leave GPU capacity for text; it does not guarantee lower image latency.
|
|
88
|
+
- **Serve through a familiar API.** OpenAI-compatible chat, images, streaming, structured output and native-enforced thinking budgets.
|
|
89
|
+
|
|
90
|
+
## Measured results
|
|
91
|
+
|
|
92
|
+
<a href="docs/assets/system-comparison.png"><img src="docs/assets/system-comparison.png" alt="Four-system comparison on M4 Pro, M5 Pro and M6: tested retained context, 16K prefill and 16K decode rates" width="100%"></a>
|
|
93
|
+
|
|
94
|
+
**Capacity and speed are separate experiments.** Solid bars show tested B1 bounds; hatching extends them to the B2 total. Both JustFit generations reach a 320K page capacity using their respective warm-prefix protocols; v2 retains its draft. Speed uses eight fixed SPEED-Bench 16K tasks with 512 forced output tokens. Weight formats, decoders and profiles differ. M4 Pro/M5 Pro have physical 24 GiB; M6 has physical 32 GiB, with 8 GiB locked only for the v1/v2 B2 capacity tests. M6 speed runs use physical 32 GiB.
|
|
95
|
+
|
|
96
|
+
At 16K, v2's median decode rate is **2.0–2.5× the v1 rate** across these configurations. Relative to upstream Splash 1.3.0, median prefill improves **9–46%**, while singleton decode declines **2–9%**. These whole-system results are not isolated mechanism gains or a chip-generation ranking.
|
|
97
|
+
|
|
98
|
+
[Protocols, exact rates and limitations →](docs/RESULTS.md)
|
|
99
|
+
|
|
100
|
+
## Get started
|
|
101
|
+
|
|
102
|
+
### Supported setup
|
|
103
|
+
|
|
104
|
+
- **Apple silicon and macOS 27.0+.** Reference configurations: M4 Pro, M5 Pro and M6, with at least 24 GiB. Other chip variants are not individually qualified.
|
|
105
|
+
- **Python 3.12 recommended**; the package declares support for Python 3.12–3.14.
|
|
106
|
+
- **Compatible Xcode/CoreAI SDK and Metal compiler toolchain** for this source preview. `justfit serve` finds installed tools; it does not install Xcode or the SDK.
|
|
107
|
+
- Internet access and storage for the pinned model pack: approximately **17.4 GB**, plus dependencies, build outputs and caches. The model repository is publicly accessible without a Hugging Face token at the checked revision.
|
|
108
|
+
|
|
109
|
+
Installing the Python package on Linux does not enable native inference there. The standalone GPU engine's macOS 26.4 source target is separate from this complete macOS 27/CoreAI setup.
|
|
110
|
+
|
|
111
|
+
### Install the reviewed release
|
|
112
|
+
|
|
113
|
+
Create a fresh environment. Install the reviewed wheel downloaded alongside this source tree:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
python3.12 -m venv .venv
|
|
117
|
+
source .venv/bin/activate
|
|
118
|
+
|
|
119
|
+
python -m pip install --index-url https://pypi.org/simple/ -r requirements-runtime.txt
|
|
120
|
+
python -m pip install ./justfit_llm-2.3.0-py3-none-any.whl
|
|
121
|
+
justfit verify
|
|
122
|
+
justfit doctor
|
|
123
|
+
justfit serve
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
First run: create a versioned workspace, build the native runtime, download and verify the pinned model, choose the device preset, then serve on **`http://127.0.0.1:8000`**. Later runs reuse the build and model. Ctrl+C stops the foreground server. GPU vision works without a compiled ANE vision profile.
|
|
127
|
+
|
|
128
|
+
If the Metal compiler is missing, install the component with `xcodebuild -downloadComponent MetalToolchain` after installing compatible Xcode. [Step-by-step setup and overrides](QUICKSTART.md) cover custom ports, local models and prebuilt-runtime inputs. Use the matching 2.3.0 runtime and published SHA256 to skip local compilation; see the linked instructions.
|
|
129
|
+
|
|
130
|
+
### Send a request
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
curl http://127.0.0.1:8000/v1/chat/completions \
|
|
134
|
+
-H 'Content-Type: application/json' \
|
|
135
|
+
-d '{
|
|
136
|
+
"model": "incoai/Qwen3.8-27B-Splash",
|
|
137
|
+
"messages": [{"role": "user", "content": "What is 17 multiplied by 19?"}],
|
|
138
|
+
"max_tokens": 64,
|
|
139
|
+
"reasoning_effort": "none"
|
|
140
|
+
}'
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The model ID retains the upstream runtime pack's name; the engine and CLI are JustFit. The default model is pinned to revision `9d27070b71f7142c6b6025f03ac011d70a73cb48`.
|
|
144
|
+
|
|
145
|
+
## How it works
|
|
146
|
+
|
|
147
|
+
| Mechanism | Responsibility |
|
|
148
|
+
| --- | --- |
|
|
149
|
+
| **KVExec** | Consume compressed history with bounded reconstruction and rotated-domain attention. |
|
|
150
|
+
| **PhaseSwap** | Control component and workspace lifetimes while the speculative draft stays resident. |
|
|
151
|
+
| **StateTrans** | Preserve committed KV, recurrent and draft state across scheduling and persistence. |
|
|
152
|
+
| **CrossFire** | Coordinate CPU, GPU and ANE work using phase ownership and memory admission. |
|
|
153
|
+
|
|
154
|
+
### ANE behavior
|
|
155
|
+
|
|
156
|
+
| Reference preset | Language prefill | ANE vision eligibility |
|
|
157
|
+
| --- | --- | --- |
|
|
158
|
+
| M4 Pro / `m4` | CPU-assisted GPU | Text prefill or decode |
|
|
159
|
+
| M5 Pro / `m5` | GPU A8 | Text prefill or decode |
|
|
160
|
+
| M6 / `m6` | GPU A8 + ANE FFN | Decode with no active text prefill |
|
|
161
|
+
|
|
162
|
+
Vision eligibility requires qualified 4K/8K assets, a matching chip and OS build, and memory admission. **4K/8K count image patches, not text tokens or screen pixels.** Idle requests, unsupported inputs and unavailable resources use GPU. M6 reserves ANE for language prefill before admitting vision work. [ANE setup and download interface](docs/ANE_DOWNLOADS.md).
|
|
163
|
+
|
|
164
|
+
## Documentation
|
|
165
|
+
|
|
166
|
+
| I want to… | Start here |
|
|
167
|
+
| --- | --- |
|
|
168
|
+
| Install, build or choose a port/model | [Quickstart](QUICKSTART.md) · [Python installation](docs/PYPI.md) |
|
|
169
|
+
| Understand the measurements | [Results and protocols](docs/RESULTS.md) · [Preview validation](docs/PREVIEW_VALIDATION.json) |
|
|
170
|
+
| Change device settings | [Configuration](docs/CONFIGURATION.md) · [ANE policy](ANE_POLICY.md) |
|
|
171
|
+
| Prepare ANE assets or a prebuilt runtime | [ANE downloads](docs/ANE_DOWNLOADS.md) · [Offline provisioning](docs/ANE_PROVISIONING.md) · [Runtime distribution](docs/RUNTIME_DISTRIBUTION.md) |
|
|
172
|
+
| Deploy a managed service | [Deployment and rollback](docs/DEPLOYMENT.md) · [Broker integration](service/broker-integration/README.md) |
|
|
173
|
+
| Control reasoning output | [Thinking budget](docs/THINKING_BUDGET.md) |
|
|
174
|
+
| Report a problem or contribute | [Issues](https://github.com/YuhuaBillChen/justfit-llm/issues) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) |
|
|
175
|
+
|
|
176
|
+
The default endpoint is local. Network deployment needs appropriate authentication and TLS; see [security scope](SECURITY.md). Native runtime sources are in `source/`, ANE tooling in `vision-tools/`, and optional managed-service components in `service/`.
|
|
177
|
+
|
|
178
|
+
## Paper and citation
|
|
179
|
+
|
|
180
|
+
**JustFit v2: Long-Context Local LLM Serving with Just-in-Time State Management** — Yuhua Chen, 2026. **[Read the preprint (PDF)](https://github.com/YuhuaBillChen/justfit-llm/blob/paper-v2-2026-10-23-r2/paper/2026-10-23/JustFit-v2.pdf)** · [Paper and citation files](paper/README.md). This dated version remains available as the manuscript evolves; an arXiv link will be added when public.
|
|
181
|
+
|
|
182
|
+
If JustFit supports your research, please cite:
|
|
183
|
+
|
|
184
|
+
```bibtex
|
|
185
|
+
@unpublished{chen2026justfitv2,
|
|
186
|
+
author = {Chen, Yuhua},
|
|
187
|
+
title = {{JustFit v2}: Long-Context Local LLM Serving with Just-in-Time State Management},
|
|
188
|
+
year = {2026},
|
|
189
|
+
month = oct,
|
|
190
|
+
note = {Preprint, version 2026-10-23 revision 2},
|
|
191
|
+
url = {https://github.com/YuhuaBillChen/justfit-llm/blob/paper-v2-2026-10-23-r2/paper/2026-10-23/JustFit-v2.pdf}
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
[Machine-readable citation](CITATION.cff) · [JustFit v1 paper](https://arxiv.org/abs/2609.17475)
|
|
196
|
+
|
|
197
|
+
## Acknowledgments and license
|
|
198
|
+
|
|
199
|
+
JustFit's native runtime is derived from **[Splash 1.3.0](https://github.com/incoai/splash)**. Upstream authors, licenses and implementation credits are preserved in [NOTICE](NOTICE) and [third-party notices](source/THIRD_PARTY_NOTICES). Model weights and derived assets retain their own licenses.
|
|
200
|
+
|
|
201
|
+
Code is available under [Apache 2.0](LICENSE). JustFit maintainers handle this project's support; please direct JustFit issues here rather than to upstream maintainers.
|