feat(macos): Lattice app v1 (Models + Chat)#208
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First release scope of the Lattice macOS app. This PR introduces the app to
mainin a deliberately narrow form — Models + Chat only — the two surfaces that work end to end against the engine binaries already onmain.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
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
Screenenum reduced to{models, chat}; nav rail, ⌘K command bar, and run-status routing follow the two-screen shape.adapterPath: nil); no+LoRAinference tag.main. (git diff --name-only main..HEAD -- 'crates/*/src/bin/'is empty.)Test plan
swift buildgreen on a forced recompile (every edited file actually recompiled, not cached).app(Ocean)🤖 Generated with Claude Code