Repository navigation
docs(local): add Apple Silicon 8/16/32 GB turbo-fieldfare guide, repack lessons, and Apache-2.0 NOTICE - #109
Conversation
jigyasujuneja
left a comment
There was a problem hiding this comment.
docs_sync_check.py (37/37 pages) and docs_link_check.py (0 broken links across 40 files) both pass, and all new flags match the scripts. A few accuracy and reproducibility issues should be fixed before merge:
- The launch snippet fails at step 3 and skips verification at step 2 (
docs/reference/metal-engine.md:80-95anddocs-site/mirror):- Step 1 sets
TURBO_FIELDFARE_SRC=/path/to/turbo-fieldfare-dgem, andscripts/setup_turbo_fieldfare.sh:50builds onlyTurboFieldfareDiffusionProbe(notTurboFieldfareRepack). - Both
scripts/download_turbo_fieldfare.sh:24-29andscripts/serve_turbo_fieldfare.sh:31-38ignoreTURBO_FIELDFARE_SRCand only checkPATHor hardcoded../turbo-fieldfare-dgem. - Because
TURBO_FIELDFARE_BINis never exported, step 3 (make local-up) fails withTurboFieldfareDiffusionProbe binary not foundwhenever the checkout lives anywhere else. And step 2 (make download) exits 0 with only a tip whenTurboFieldfareRepackis missing (an emptymanifest.jsonpasses unverified).
ExportTURBO_FIELDFARE_BINin the snippet (and note thatmake downloadskips SHA-256 verification unlessTurboFieldfareRepackis built), or update both scripts to readTURBO_FIELDFARE_SRC.
- Step 1 sets
- Unreproducible setup and
--verify-installflag mismatch (docs/reference/metal-engine.md:49, 63-68, 81,docs/deploy/laptop.md:31-33): upstreamdrumih/turbo-fieldfarePackage.swifthas noTurboFieldfareDiffusionProbeproduct, and the guide has no URL/commit for theturbo-fieldfare-dgemfork and no BF16-to-.gturboconversion command. MLX is missing from prerequisites (:51-55), and the ~50 GB temporary BF16 download is understated as "plus temporary space" (:55). Also, upstreamTurboFieldfareRepack(Sources/TurboFieldfareRepack/Command/main.swift:8) requires--verify-install --input-gturbo <model.gturbo>, rejecting the positional path on line 66 (unless the fork changed it). Link the fork + exact conversion command, or mark Section 2a experimental / pending public fork. - Overstated engine parity (
docs/deploy/laptop.md:37-38,docs/reference/metal-engine.md:97):laptop.mdsays both engines expose the same:8080/v1contract and work identically across the CLI and gateway (including Studio and MCP), and putsLOCAL_ENGINE=turbo-fieldfare make setup/download/local-upnext todiffgemmawithout noting it is not self-installing.turbo-fieldfarerejectsdgem askplain chat (HTTP 400), rejectsthink > 0, defaults to 4,096 context (vs. 32,768), ignoressteps > 1, defaultsseed_tokentofixed, and exposes a custom/v1/systemonebody ({"schema", "state"}) that silently ignoresimages/audio/videoinstead of returning 4xx (contradictingmetal-engine.md:97). NOTICEaccuracy and release bundling (NOTICE:1-39,.github/workflows/release.yml:83, 86):NOTICE:24says "See upstream repository license terms" formmastrac/diffgemma; upstreamCargo.tomldeclareslicense = "MIT"(noLICENSEfile in the upstream tree).NOTICE:30-35omits the upstream copyright line fromdeploy/cloudrun/server/structured_server.upstream.py:2(Copyright contributors to the vLLM project), the one third-party file redistributed there. Clarify scope vs.third_party/{banking77,bbox_real,clinc_oos}and embedded Studio/Go deps too.NOTICE:14, 25bake in "optional" and "default" labels that conflict with #110 (and:26-27omitsscripts/stop_server.sh)..github/workflows/release.yml:83, 86packsdgem LICENSE README.md templateswithoutNOTICE. Under Apache-2.0 Section 4(d), includeNOTICEin the release tarballs (or keep non-redistributed tool acknowledgements indocs/instead ofNOTICE).
- Tier B RAM tier and footprint drift (
docs/deploy/hardware.md:87-88,docs/reference/metal-engine.md:31-32, 71-73): the table listsMinimum Mac RAM: 16-24 GBforslots=128, contradictingrecommended for 24 GB and 32 GB Macs(:72) andscripts/turbo_fieldfare_server.py:89(gib >= 22.0, so 16 GB and 18 GB Macs getslots=16, picked by Python instead ofserve_turbo_fieldfare.sh). Change the table minimum to24 GB, and align the1.96 GiB/11.00 GiBprobe footprints with the~2.08 GiB/~9.57 GiB(turbo_fieldfare_server.py:79) and~2.1 GiB/~9.6 GiB(:97,serve_turbo_fieldfare.sh:78) warnings printed by the code. - Measurement provenance and conflicting numbers (
docs/reference/metal-engine.md:3, 14, 29-33,docs/deploy/hardware.md:85-89,docs/practitioners-guide.md:156): replacing"tested on Apple M5 with 32 GB unified memory"with"(8 GB, 16 GB, and 32 GB Macs)"drops the test host RAM, macOS version, sample count, and command. Ifslots=16was measured on a 32 GB M5 (where the 13.31 GiB pack sits in OS page cache), mark the 8 GB row as projected. Also note the difference against the earlier~880 ms(metal-engine.md:14) and~250-600 ms(practitioners-guide.md:156) lines, and coordinate prefix KV reuse notes (hardware.md:89,metal-engine.md:33) with #111. DGEM_LOCAL_URLscope and section heading (docs/reference/metal-engine.md:75, 101):-uconfiguresdgem decide(cmd/root.go:80), whileDGEM_LOCAL_URLconfiguresdgem serve(cmd/serve.go:113, 1488), notdgem decide. Also title## 3. Prerequisites(:101) fordiffgemmaso it does not clash with Section 2a.
…ck lessons, and Apache-2.0 NOTICE Addresses GoogleCloudPlatform#108: - NOTICE: add Apache-2.0 third-party attribution for drumih/turbo-fieldfare, mmastrac/diffgemma, and upstream vLLM structured_server reference. - docs/deploy/laptop.md: document LOCAL_ENGINE=diffgemma (32 GB+ Macs) vs LOCAL_ENGINE=turbo-fieldfare (8/16/32 GB SSD-streaming Metal 4 Macs). - docs/reference/metal-engine.md: add Apple Silicon 8/16/32 GB comparison table, prerequisites (macOS 26+, Metal 4, Swift 6.2+), HF_HUB_DISABLE_XET=1 download guidance, official BF16 shard-by-shard .gturbo repack workflow, TurboFieldfareRepack --verify-install, bimodal slots (16/128, avoid 32/64), --prefill-chunk-tokens 256, and port-8080 conflict checks. - docs/deploy/hardware.md: add Local Apple Silicon tiers table (explicitly separated from cloud NVIDIA serving). - Sync all updated docs pages to docs-site/.
…mbined probe + adapter measurements Updates docs/deploy/laptop.md, docs/reference/metal-engine.md, and docs/deploy/hardware.md (and synced docs-site/) from probe-only spike estimates to measured combined probe + HTTP adapter phys_footprint and latency: - Tier A (slots=16): ~2.46 GiB combined (1.96 GiB probe + 0.50 GiB adapter, 0 swaps), ~3.07 s warm / 4.22 s cold p50. - Tier B (slots=128): ~11.46 GiB combined (11.00 GiB probe + 0.46 GiB adapter), ~2.20 s warm / 2.43 s diverse p50.
…rk link, --verify-install, NOTICE, RAM tiers, and provenance Addresses PR GoogleCloudPlatform#109 review items (rebased cleanly onto merged GoogleCloudPlatform#113): - Link public ghchinoy/turbo-fieldfare (feat/diffusiongemma-probe) fork, build TurboFieldfareRepack in launch steps, and fix --verify-install syntax to '--verify-install --input-gturbo <path>' in both docs and scripts/download_turbo_fieldfare.sh. - Add mlx/mlx-lm and ~50 GB temp BF16 download space to prerequisites. - Clearly state turbo-fieldfare capability boundaries vs diffgemma (structured text decisions only; no dgem ask plain chat, think>0, steps>1, or images; 4,096 default context; fixed seed_token default). - Update NOTICE with MIT license for mmastrac/diffgemma, upstream vLLM copyright line, scope notes, neutral wording (no default/optional drift), and bundle NOTICE in .github/workflows/release.yml archives. - Align Tier B minimum RAM to 24 GB (>= 22 GiB auto-select), align script warnings with combined probe+adapter footprints, state Apple M5 32 GB macOS 26.7.3 provenance (marking 8 GB row projected), clarify -u vs DGEM_LOCAL_URL, and title Section 3 Prerequisites (diffgemma).
|
Thanks @jigyasujuneja — rebased onto
Verified: |
7ef2521 to
3abd380
Compare
jigyasujuneja
left a comment
There was a problem hiding this comment.
All seven items from the previous pass are addressed cleanly: the public ghchinoy/turbo-fieldfare fork (feat/diffusiongemma-probe, verified live) is linked, TurboFieldfareRepack build and --verify-install --input-gturbo <path> flags match across the guide and scripts/download_turbo_fieldfare.sh, mlx/mlx-lm and the ~50 GB temp disk requirement are listed, experimental and structured-text-only boundaries are clear, NOTICE covers vLLM copyright and diffgemma MIT terms and is bundled in .github/workflows/release.yml, Tier B minimum RAM (24 GB) and combined footprint warnings match the scripts, M5 32 GB provenance is restored with 8/16 GB marked projected, and -u vs. DGEM_LOCAL_URL plus the Section 3 heading are fixed.
Two non-blocking nits for a quick follow-up:
- In
docs/reference/metal-engine.md(and itsdocs-site/mirror), the intro bullet reads~2.2-3.1 s on a cold ~265-token prompt, while the table below reports~2.20 sand~3.07 sas warm p50 (4.22 scold forslots=16). Changingcoldtowarmkeeps both lines aligned. - Once #110 lands,
LOCAL_ENGINEdefaults toauto(still resolving todiffgemmaon fresh installs), solaptop.md,hardware.md, andmetal-engine.mdcan noteautowhen convenient. Note that #109 and #111 edit disjoint hunks inscripts/turbo_fieldfare_server.py(lines 192-215 vs. 33 and 721-825).
CI checks are green (11 passed, 1 skipped). Approved.
Summary
Addresses #108 (follow-up documentation and third-party attribution for #106 and #107):
NOTICE: Adds top-level Apache-2.0 attribution fordrumih/turbo-fieldfare,mmastrac/diffgemma, and the upstream vLLMstructured_serverreference, noting that model weights are not redistributed and remain governed by upstream terms.docs/deploy/laptop.md: Updates Option A (Apple Silicon Metal) with side-by-side quickstarts forLOCAL_ENGINE=diffgemma(default, 32 GB+ Macs) andLOCAL_ENGINE=turbo-fieldfare(8 / 16 / 32 GB Macs).docs/reference/metal-engine.md: Adds the 8 / 16 / 32 GB memory-tier comparison table and Section 2a covering:HF_HUB_DISABLE_XET=1for >5 GB Hugging Face downloads on macOSg64->.gturborepack (~5 GB peak RAM, ~75 s, zero double-quantization)TurboFieldfareRepack --verify-install37-file SHA-256 verification16for 8/16 GB Macs,128for 24–32 GB Macs; avoid32/64) and--prefill-chunk-tokens 256<model>/tokenizerauto-detection and port:8080conflict handlingdocs/deploy/hardware.md: Adds a concise local Apple Silicon tiers section clearly separated from cloud NVIDIA serving recommendations.docs-site/.Surface & Documentation Checklist
docs/anddocs-site/are synced (make docs-sync-checkandpython3 scripts/docs_link_check.py).studio/dist/*) are included.Verification
make docs-sync-check(37/37 pages match)python3 scripts/docs_link_check.py(0 broken relative links or anchors across 40 files)pnpm --dir docs-site run build(38 pages built cleanly)