Repository navigation
v0.13.0
Basalt v0.13.0
Prebuilt Apple Silicon binary, no Xcode (macOS 27+):
curl -fsSL https://github.com/goodmai/basalt/releases/latest/download/basalt-macos-arm64.tar.gz | tar -xz
./basalt-macos-arm64/basalt serve --model goodmai/Qwen3.8-27B-PV-MACaQ-3bit-Affine-MLX --speculative-lookup --restOr with Homebrew:
brew tap goodmai/basalt https://github.com/goodmai/basalt
brew trust goodmai/basalt
brew install goodmai/basalt/basaltBuilds from source: Xcode 27.0+ (Swift 6.4) and macOS 27+, Apple Silicon.
Source tarball SHA256: 5b087c096225f751faa097ccb96b20ba56e5db1df94478d2b418293ed4342dbb
What's Changed
- chore: point formula at v0.12.0 by @github-actions[bot] in #637
- bench(ladder): lunar-flight — an opt-in step that runs the mission stages by @goodmai in #638
- fix(quant,inference): converter keeps experts resident and refuses oversize dense copies; gpt-oss profile; lookup test isolation by @goodmai in #641
- perf(macaq): 2.1x decode on gpt-oss PV-MACaQ — run MoE expert matmuls in the scale dtype when activations arrive as float32 by @goodmai in #651
- perf(macaq): drop the per-call index clip and bias mask from MoE expert layers (+4% gpt-oss PV-MACaQ decode) by @goodmai in #652
- feat(inference,metal): experimental 3-bit decode kernel for MACaQ dense and expert layers (#653) by @goodmai in #654
- feat(kv): experimental Gemma 4 K=V shared-row KV cache — 1.40–1.53x less KV on 26B-A4B at 32K–128K (#645 P0–P2) by @goodmai in #655
- feat(kv): Gemma 4 shared-row KV in the prompt cache and the KV budget (#645 P3) by @goodmai in #656
- feat(inkling): Inkling 2 Mini P0 — config, profile, loop-aware KV geometry, chat-template golden (#650) by @goodmai in #657
- fix(distill): seed on-policy rollouts so the OFT on-policy KL test stops flaking (#658) by @goodmai in #659
- feat(inkling): Inkling 2 Mini runs in basalt — P1 looped text stack, oQ + mlx-lm layouts (#650) by @goodmai in #660
- perf(inkling): fused SDPA attention and compiled hot paths — Inkling 2 Mini oQ3e 20.7 → 27.1 tok/s decode (#650 P2) by @goodmai in #661
- perf(inkling): compile the whole cross-pass message gate — Inkling 2 Mini oQ3e decode 24.0 → 27.6 tok/s (#650 P2) by @goodmai in #662
- perf(inkling): compiled per-layer decode step with a weights fingerprint, compiled MoE epilogue (#650 P2) by @goodmai in #663
- feat(qwen3next): Qwen3-Coder-Next P0 — tiny fixture, template-driven profile, polar4 allowlist (#642) by @goodmai in #669
- fix(inference): serve only after load probes, refuse overlapping adapter switches, row templates only for row entries (#665) by @goodmai in #671
- perf(qwen3next): fused 512-expert router in the fork and in streamed prediction (#642 P1) by @goodmai in #681
- fix(server,cloud,inference,app,cli): audit defect fixes (#664, #666, #667, #668) by @goodmai in #673
- fix(mcp,core,inference,server,ui,bench): round 2 audit fixes (#678, #679, #680) by @goodmai in #685
- feat(inkling): message-frame protocol — reasoning, text and JSON tool calls (#650 P3) by @goodmai in #686
- test(inkling): prefix anchors across agent turns, measured second-turn TTFT (#650 P3) by @goodmai in #712
- fix(audit): consolidate Rounds 3–9 audit fixes (#682–#709) by @goodmai in #711
- fix(quant): PV continuous step trains quantized scales; nf4 config group size; cross-shard companions in canonical decode (#698, #688, #705) by @goodmai in #713
- docs(i18n): add Korean (ko) and Indonesian (id) README & docs and sync language bars (#719) by @goodmai in #724
- feat(i18n): English-to-locale doc auto-translation framework, tests, and CONTRIBUTING guide (#720) by @goodmai in #722
- feat(compose): specialized local translation models compose recipe and tests (#721) by @goodmai in #723
- feat(bench): add basalt:translation benchmark adapter (chrF++, COMET, MetricX-24) with lite and full modes (#726) by @goodmai in #727
- feat(inkling): DSpark speculative decoding with a cost-aware draft depth (#650 P2a) by @goodmai in #728
- feat(adapters): read PEFT LoRA adapters — harness-hub layout, VLM-style keys, rsLoRA, named refusals (#675 P0) by @goodmai in #730
- fix(rope): YaRN in Qwen 3.5's multimodal path; Gemma 4 refuses RoPE scaling (#729 P0) by @goodmai in #731
- feat(inkling): basalt fit packs, Compose agent profiles per tier, CHANGELOG (#650 P4) by @goodmai in #735
- perf(inkling): verify rounds of up to 8 tokens run the compiled step (#650 P2b) by @goodmai in #737
- feat(rope): --rope-yarn stages a YaRN config for Qwen 3.5/3.6/3.8, warns elsewhere (#729 P1) by @goodmai in #736
- feat(adapters): --adapter name=org/repo from the HF cache or hub (#675 P1) by @goodmai in #738
- fix(memory): drop the unpinned prompt cache before a long prefill, so a second 32K prompt no longer OOMs serve (#741) by @goodmai in #747
- perf(inkling): P2c — prefill chunk capped by key count (stopgap for the 32K OOM), K1 spec, acceptance and profile tests (#650) by @goodmai in #740
- fix(adapters): review follow-ups for #730/#738 — hf: repo prefix, adapter check before download, base-changing inits refused, float LoRA on microscaled bases by @goodmai in #749
- fix(rope,inkling): review follow-ups for #728/#731/#736/#737 — staging safety, DSpark config guards, compiled 1-row rewind, HF-aligned YaRN factor by @goodmai in #750
- docs(inkling): models table row and CHANGELOG entry for 32K prompts (#650 P4) by @goodmai in #751
- test(spec): S0 per-slot verify vs M=1 drift measurement harness (#646) by @goodmai in #743
- docs(contributing): document Colab CPU high-RAM BF16 merge & HF publishing workflow by @goodmai in #742
- test(moe): S0 group-latent whitened spectrum, balanced subspace k-means, and byte budgets (#644) by @goodmai in #745
- test(kv): GaugeRoPE S0 building blocks — equal-byte arm comparison, joint RKV of the carrier residual, k8v4-priced budgets, captured-K/V harness (#647) by @goodmai in #744
- test(kv): GaugeRoPE capture reads Gemma 4 proportional RoPE and names the missing query probe (#647) by @goodmai in #753
- test(inkling): P1 tiny parity against a golden from mlx-lm #2086 (#650) by @goodmai in #754
- test(inkling): real-model parity against mlx-lm #2086 on oQ3e — top-1 97.8% at the mlx-lm bf16/fp32 noise floor, always in top-5 (#650) by @goodmai in #755
- fix(quant): moe-rw finds the Gemma 4 router (.router.proj) and applies per_expert_scale to the gates (#748) by @goodmai in #756
- fix(quant): moe-rw takes router gates from routerTopK, so Nemotron-H and Inkling 2 sigmoid routers weight the expert Hessians (#757) by @goodmai in #758
- fix(adapters): refuse LoRA on microscaled layers (mxfp4/mxfp8/nvfp4) naming the mode, until the fork fix is pinned (#746) by @goodmai in #760
- fix(quant): tolerate MLX config metadata, default group_size by mode, and fall back to MLX quantization_config (#677 Gap 1) by @goodmai in #733
- feat(bailing_hybrid): Ling-3.0 KDA + MLA hybrid MoE backbone (P0, #672) by @goodmai in #759
- feat(quant): nvfp4 per-expert global_scale on QuantizedSwitchLinear, streaming, Inkling sanitize, X-ray, and converter (#677 Gap 2) by @goodmai in #739
- fix(memory): cap the prefill chunk where attention runs unfused (Gemma 4 global head dim 512 off NAX), so a 56K prompt answers instead of crashing serve (#741 P2) by @goodmai in #762
- feat(compose): add TranslateGemma-4 12B Pilot and 26B-A4B v2 PV-MACaQ S2S + Vision profiles by @goodmai in #765
- fix(adapters): LoRA on mxfp4/mxfp8/nvfp4 computes in float — pin the fork's QLoRALinear fix, drop the interim refusal, parity test (#746) by @goodmai in #763
- feat(moe): qwen4_exp tiering core, Strata ExpertArenaPlanner, decayed-frequency ExpertResidencyPolicy, and SSD NGramRowStore (#639) by @goodmai in #766
- feat(self-rewrite): WeightCopy copy-on-write isolation and EditAdapter P0 (#676) by @goodmai in #764
- fix(ci,tests): make ZeRO-2, on-demand decider, and OFT on-policy tests deterministic (#752) by @goodmai in #761
- feat(bailing_hybrid): per-channel KDA Metal kernel (P1) and absorbed MLA latent cache (P2) (#672) by @goodmai in #767
- feat(quant): lossless ModelOpt NVFP4 → MLX nvfp4 importer — byte-view repack, global_scale = s₂·2688, FP8 → affine 8, experts stacked to switch layers (#677 Gap 3 A) by @goodmai in #771
- feat(self-rewrite): Gemma 4 P0 topology, validator, WeightCopy, and MACaQ/SmallM/NF4/NVFP4 parity (#770) by @goodmai in #772
- feat(quant): nvfp4 as an any-to-any target and ModelOpt as a source — QuantizationTarget.nvfp4, WeightConverter global scales, ModelOpt detection/decode, CLI/macOS/EN-RU (#677 Gap 3 B, #546) by @goodmai in #773
- feat(self-rewrite): P1 paired tests, math & translation graders, tensor registry, and Gemma 4 session tools (#676, #770) by @goodmai in #774
- feat(self-rewrite): P2 session reducer, privacy fence, Track A local & Track B Gemini editors, human-gated serving, and basalt selfedit CLI (#676, #770) by @goodmai in #775
- feat(bench): official MT leaderboard submission pipeline — HF model-index YAML, WMT24++/FLORES+ eval & PEFT merge/packaging (#734) by @goodmai in #776
- feat(quant): ModelOpt → nvfp4 lossless convert shortcut, symlinked sidecars, deep-check global scales, real-model gate (#677 Gap 3 part C) by @goodmai in #777
- fix(tests): inject deterministic memoryPressure probe in ComposeHost speech tests to prevent 24GB parallel CI flakes by @goodmai in #778
- feat(self-rewrite): P3 harness — JSONL dataset loader, decontamination, repair damage fixture, MCP selfedit_start/selfedit_status, and CLI wiring (#676, #770) by @goodmai in #779
- test(qwen3next): streamed experts bitwise equal to resident on qwen3_next, plus next-layer prefetch parity (#642 P2) by @goodmai in #780
- feat(self-rewrite): P3 live runner — MLXInferenceEngine.runSelfRewrite, native local turns, repair lifecycle, and basalt selfedit execution (#676, #770) by @goodmai in #781
- perf(quant): ModelOpt import holds one shard, not the model — peak footprint 32 GB → 4.6 GB, identical tensors (#677 Gap 3) by @goodmai in #783
- feat(rope): expose active YaRN rope/effective_context on /v1/models*, hot-swap warnings on /v1/models/load, and context-overflow warning (#729 P1) by @goodmai in #784
- feat(adapters): P2 fused export for PEFT & mlx-lm LoRA adapters across WeightConverter, UniversalModelConverter, CLI, REST, and ConvertModelSheet (#675) by @goodmai in #785
- deps: bump github.com/apple/swift-log from 1.17.0 to 1.17.2 by @dependabot[bot] in #789
- deps: bump github.com/huggingface/swift-huggingface from 1.0.0 to 1.0.1 by @dependabot[bot] in #788
- deps: bump github.com/hummingbird-project/hummingbird from 2.28.1 to 2.29.0 by @dependabot[bot] in #787
- deps: bump github.com/huggingface/swift-jinja from 3.1.0 to 3.2.1 by @dependabot[bot] in #786
- fix(load): Inkling 2 oQ4e loads — the fork loader skips modules sanitize already quantized as nvfp4; the PPL test registers basalt's model types and can stream (#677) by @goodmai in #791
- fix(memory): cut ~1.1–1.25 GB long-prefill transient by draining PromptCacheTree.store tensor-by-tensor and preallocating+syncing KV (#769) by @goodmai in #790
- fix(tests): eliminate process-global MLXRandom.seed mutations across all 15 test suites and isolate ModelOptImporterTests.load (#782) by @goodmai in #792
- feat(fit): a MoE whose weights fit but leave resident KV room for fewer than 8192 tokens auto-streams its experts — the imported Gemma-4-26B-A4B-NVFP4 pack no longer loads resident and hits Metal OOM (#677) by @goodmai in #793
- feat(models): a cached ModelOpt checkpoint imports itself losslessly to -mlx on models download and serve, and every cache lookup then resolves to the nvfp4 pack (#677) by @goodmai in #794
- test(spec): add S1 real-model verify-drift probe and record S2 NO-GO verdict (#646) by @goodmai in #796
- fix(bench): one GPU-lock protocol — GPULock takes the mkdir + owner directory that ModelRunLog and the scripts use, and clears a stale legacy flock file (#795) by @goodmai in #798
- fix(selfedit): harden live turns, prompt budgeting, and Qwen35 skeleton copy (#676, #770) by @goodmai in #797
- fix(capabilities): qwen3_5_text and qwen3_5_moe_text get the Qwen3.5 row — text-only Qwen3.5/3.8 packs (our Heretic PV-MACaQ) no longer load as an unverified family with MTP, prompt-cache reuse, batching and --kv-bits off by @goodmai in #799
- fix: claude's defect-hunt batch — conversion, caches, engine, CLI inert flags, OnDemand epoch, convert sheet, GPU lock / fit / ModelOpt review follow-ups, low-severity fixes, and the #647 harness by @goodmai in #809
- fix: consolidated defect-hunt batch (agy) — selfedit #797 follow-ups, server security, cloud budgets, bench /v1/score perplexity & TTFT, FM/AppCore/Speech, and Mac app lifecycle/l10n by @goodmai in #810
- fix: nf4 pass-through layers keep their affine bits through onward conversion (C-Q2), plus the remaining low-severity defect-hunt fixes by @goodmai in #811
- chore(release): v0.13.0 — version bump and changelog by @goodmai in #812
Full Changelog: v0.12.0...v0.13.0