Skip to content

Gemma 4 26B-A4B inference in ~2 GB of RAM on any M-series MacBook

App UI fixes (#3)

Andrey Mikhaylov27633024d2d4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c1314620..52695d15 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,12 @@ on:
branches:
- main
pull_request:
+ types:
+ - opened
+ - synchronize
+ - reopened
+ - ready_for_review
+ - converted_to_draft
permissions:
contents: read
@@ -15,6 +21,7 @@ concurrency:
jobs:
test:
+ if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: macos-26
steps:
- uses: actions/checkout@v4
diff --git a/Sources/TurboFieldfareApp/Mac/Diagnostics/InspectorView.swift b/Sources/TurboFieldfareApp/Mac/Diagnostics/InspectorView.swift
index 6a02d746..c38ea226 100644
--- a/Sources/TurboFieldfareApp/Mac/Diagnostics/InspectorView.swift
+++ b/Sources/TurboFieldfareApp/Mac/Diagnostics/InspectorView.swift
@@ -92,7 +92,7 @@ struct InspectorView: View {
.labelsHidden()
.fixedSize()
}
- Text("Memory changes are compared with 4K context and 16 expert slots. Changes apply after reloading the model.")
+ Text("More slots can improve decode speed by keeping more experts in memory, but they also use more RAM. Changes are compared with 4K context and 16 slots and apply after reloading the model.")
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -109,6 +109,9 @@ struct InspectorView: View {
.frame(width: 36, alignment: .trailing)
}
}
+ Text("0 uses deterministic greedy decoding. Higher values make sampling more varied.")
+ .font(.caption)
+ .foregroundStyle(.secondary)
Toggle("Top-K", isOn: $model.topKEnabled)
.toggleStyle(.switch)
if model.topKEnabled {
@@ -139,18 +142,15 @@ struct InspectorView: View {
private var runtimeSection: some View {
Section("Runtime") {
Toggle("Prefill", isOn: $model.runtimeOptions.prefillEnabled)
- Text("This is an experimental feature and may reduce output quality.")
- .font(.caption)
- .foregroundStyle(.secondary)
- LabeledContent("RDADVISE") {
+ VStack(alignment: .leading, spacing: 8) {
+ Text("RDADVISE")
Picker("RDADVISE", selection: $model.runtimeOptions.rdadvisePolicy) {
ForEach(AppRDAdvicePolicy.allCases) { policy in
Text(policy.label).tag(policy)
}
}
- .pickerStyle(.menu)
+ .pickerStyle(.segmented)
.labelsHidden()
- .fixedSize()
}
Text("RDADVISE is experimental. It may speed up short decodes but slow down long decodes.")
.font(.caption)
diff --git a/docs/assets/turbofieldfare-app.webp b/docs/assets/turbofieldfare-app.webp
index 984d6e50..42ed0083 100644
Binary files a/docs/assets/turbofieldfare-app.webp and b/docs/assets/turbofieldfare-app.webp differ