Skip to content

feat(macos): Lattice app v1 (Models + Chat)#208

Merged
ohdearquant merged 2 commits into
mainfrom
feat/lattice-app-v1
Jun 23, 2026
Merged

feat(macos): Lattice app v1 (Models + Chat)#208
ohdearquant merged 2 commits into
mainfrom
feat/lattice-app-v1

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Summary

First release scope of the Lattice macOS app. This PR introduces the app to main in a deliberately narrow form — Models + Chat only — the two surfaces that work end to end against the engine binaries already on main.

Sliced from the LoRA-training branch (#193), which carried the full instrument panel (Models, Data, Train, Eval/Embeddings, Quantize, Runs, Adapters). Per the v1 scope, everything except Models and Chat is cut and re-addable incrementally as the backend matures.

Shipped

  • MODELS (⌘1) — browse / Get Models / Refresh / Reveal-in-Finder, a single Chat CTA, and the full model-config readout inspector (format, dtype, params, hidden, FFN, vocab, ctx, heads, KV heads, head dim, GDN heads, layers, size, files, tokenizer — all honest-nil when the config lacks the field).
  • CHAT (⌘2) — single-mode local generation over CPU bf16 and GPU Metal (bf16 + q4), honest disk-status (ready / not found, never "loaded"), Sampling (temp / top-k / top-p / rep-penalty) and Generation (max-tokens / seed) controls, streaming transcript with retry and tok/s + honest hardware label.

Deferred (re-addable as backend matures)

Data, Train, Eval & Embeddings, Quantize, Runs & History, adapter management.

Notes

  • Screen enum reduced to {models, chat}; nav rail, ⌘K command bar, and run-status routing follow the two-screen shape.
  • No adapter path is threaded through Chat generation (adapterPath: nil); no +LoRA inference tag.
  • Unused store / model scaffolding (eval/train/quant state, extra domain types) is left compiling for clean incremental revival rather than deleted, keeping the diff minimal.
  • No engine binaries are added — the app shells out to binaries already on main. (git diff --name-only main..HEAD -- 'crates/*/src/bin/' is empty.)

Test plan

  • swift build green on a forced recompile (every edited file actually recompiled, not cached)
  • No orphaned references to the removed screens (statically-typed build is dispositive)
  • Commit pre-commit hook passed (cargo check workspace + doc lint)
  • Visual click-through on a Finder-launched .app (Ocean)

🤖 Generated with Claude Code

ohdearquant and others added 2 commits June 22, 2026 21:15
First release scope of the Lattice macOS app. Ships the two surfaces that
work end to end against the current engine: model browsing (MODELS) and
local chat (CHAT). Sliced from the LoRA training branch (#193).

Deferred and re-addable as the backend matures: Data, Train, Eval and
Embeddings, Quantize, Runs and History, adapter management.

- Screen enum reduced to {models, chat}; nav, command bar, and run routing
  follow the two-screen shape
- ChatScreen: single-mode generate over CPU bf16 and GPU Metal (bf16 + q4),
  honest disk status, sampling and generation controls, retry, tok/s. No
  adapter path is threaded
- ModelsScreen: get, refresh, reveal, and a Chat CTA, plus the full model
  config readout inspector
- Removed DataScreen, TrainScreen, EvalScreen, QuantizeScreen, RunsScreen
- Unused store and model scaffolding kept compiling for incremental revival

swift build is green on a forced recompile. No engine binaries are added;
the app shells out to binaries already on main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The initial v1 commit (47dfe07) captured the app at an intermediate state:
the five cut screen files were removed from the tree, but the Screen enum and
the routing in seven dependent files still referenced .data/.train/.eval, so
the committed tree did not compile on its own (ContentView routed to
DataScreen/TrainScreen/EvalScreen, which are absent from the commit).

This commits the fully-sliced worktree versions that swift build validates
green: Screen enum reduced to {models, chat}, with command bar, nav symbols,
run routing, and store scaffolding made consistent.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ohdearquant ohdearquant merged commit 354c4b4 into main Jun 23, 2026
10 checks passed
@ohdearquant ohdearquant deleted the feat/lattice-app-v1 branch June 23, 2026 18:59
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