Skip to content

Clone-to-run packaging + finish plan for the SL2610 FunctionGemma demo#9

Open
michalharakal wants to merge 4 commits into
feature/google-io-demofrom
functiongemma-selfcompile
Open

Clone-to-run packaging + finish plan for the SL2610 FunctionGemma demo#9
michalharakal wants to merge 4 commits into
feature/google-io-demofrom
functiongemma-selfcompile

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Makes the demo clone → connect board → run → finetune on your own commands, and lands the
forward-looking finish plan. Also carries the in-flight KV-cache decode drafts (frozen) and the
0.35.0 dependency bump.

What's in here (4 commits)

  • build: consume released 0.35.0skainetTransformers 0.34.0 → 0.35.0 (ships moonshineDecoder() + FunctionGemma self-compile).
  • wip: KV-cache decoders + perf logbook — the in-flight KV decode program frozen as a reproducible baseline: MoonshineKvDecoder + GemmaKvDecoder wiring (GEMMA_KV=1/MOONSHINE_KV=1), docs/GEMMA-KV-BOARD-LOOP.md, docs/PERF-LOGBOOK.md. Board-UNVERIFIED drafts (opt-in behind env flags; default paths unchanged).
  • docs+packaging: clone-to-run — the headline:
    • demo.env(.example): single config surface (BOARD, TORQ_PKG, GEMMA_GGUF, board dirs). Every scripts/*.sh sources it; inline env wins; no hardcoded personal paths / board IP.
    • bootstrap.sh + README Quick-start (clone → bootstrap → deployBoard).
    • docs/TOOLCHAIN-PIN.md (g165e12a-vs-v2.0.0 currency decision + canary gate), docs/FINETUNING.md + examples/custom-command/ (teach FunctionGemma new commands), docs/BOARD-RUNBOOK.md.
    • .gitignore: demo.env, .toolchain/, weights/.
  • docs: move FINISH-PLAN.md into the repo — the P0–P5 finish plan, version-controlled in docs/.

Notes for review

  • scripts/compile-gemma.sh carries both the config-externalization edits and the in-flight GEMMA_KV/GEMMA_QUANT graph build (interleaved in the same hunks — committed whole).
  • Base is feature/google-io-demo (the current integration branch; the prior base encoder-npu-rope-seq from PR feat(gemma): self-compile FunctionGemma — compile-gemma.sh, retire Python #8 was deleted after merge). Retarget to main if a direct-to-main land is preferred.
  • Nothing new runs on the board by default; the KV + finetuning paths are opt-in and board-verification steps are captured in docs/BOARD-RUNBOOK.md.

🤖 Generated with Claude Code

michalharakal and others added 4 commits July 9, 2026 09:02
Bump the demo's transformers BOM pin to the released 0.35.0, which re-exports
sk.ainet:skainet-bom so the engine sk.ainet.core:* align to 0.35.0 too. Verified:
jvmCompileClasspath resolves every sk.ainet.transformers:* and sk.ainet.core:* to
0.35.0 from Maven Central (the FunctionGemma work + argMax op). The local vendor
plugin sk.ainet.vendors:synaptics-torq:0.1.0 stays composite-only (unpublished).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
In-flight KV-cache decode program (board-UNVERIFIED drafts), frozen before the
clone-to-run packaging work so the baseline is reproducible:
- GemmaKvDecoder wiring in Pipeline.kt (GEMMA_KV=1) + MoonshineKvDecoder + MoonshineRunner (MOONSHINE_KV=1)
- GEMMA-KV-BOARD-LOOP.md, PERF-LOGBOOK.md

The matching GEMMA_KV/GEMMA_QUANT build logic in scripts/compile-gemma.sh is
interleaved with packaging edits and lands whole in the next commit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…n docs

Make the demo clone-to-run and extensible without path/IP surgery:
- demo.env(.example): single config surface (BOARD, TORQ_PKG, GEMMA_GGUF, board dirs).
  Every scripts/*.sh sources it; inline env still wins; no hardcoded personal paths.
- bootstrap.sh: one-time setup (demo.env, locate Torq toolchain, model checks).
- README: Quick-start (clone -> bootstrap -> deployBoard) + layout.
- docs/TOOLCHAIN-PIN.md: g165e12a-vs-v2.0.0 currency decision + canary gate.
- docs/FINETUNING.md + examples/custom-command/: teach FunctionGemma new commands
  (Octopus-v2 dataset -> LoRA -> GGUF -> compile-gemma.sh -> deploy).
- docs/BOARD-RUNBOOK.md: board-dependent steps (self-compiled default, KV verify) + repo extraction.
- .gitignore: demo.env, .toolchain/, weights/.

scripts/compile-gemma.sh also carries the in-flight GEMMA_KV/GEMMA_QUANT graph
build (interleaved with the config-externalization edits); committed whole here.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The finish plan (P0-P5) was a loose file at the untracked workspace root. Move it
into the demo's docs/ so it's version-controlled alongside the packaging it describes;
reword its path-orientation note for the new home and repoint the README links to
docs/FINISH-PLAN.md. The workspace-root PLAN.md (still loose) now links to the new path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant