Skip to content
Projetos

Sobre

macOS menu bar app that runs the Decider v1.3 decision model locally on Apple silicon and serves the Decisions API on localhost.

IA e aprendizado de máquina

Como estes números são medidos

O que você pode fazer

  • Guided first run. Downloads Decider Flash v1.3 from Hugging Face, checks every file against its pinned SHA-256, and starts the server. An optional Hugging Face token raises the download rate limits.
  • Decider v1.3 support. Bundles a llama.cpp server with the protocol v4 changes that v1.3 needs: non-causal attention in the full-attention layers and chunked readouts. Stock llama.cpp and Decider.app 0.1.0 do not support v1.3.
  • Text and images. choice, score and noul questions over text, images, or both.
  • Menu bar control. Server status, port, network access, restart, and quick access to the config file, the model files and the log. No Dock icon.

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Verdict

CI Downloads Visitors License: MIT macOS 14+ Swift 6.2 Apple silicon llama.cpp

Verdict is a macOS menu bar app that runs Perplexity's Decider v1.3 models (Flash 4B and flagship 27B) on your Mac and serves the Decisions API on http://127.0.0.1:<port>/v1/decisions. By default nothing leaves the machine: the server binds to the loopback address only. Turn on Allow Network Access to serve other Macs on your network; any client can call it unless you add an API key or a password.

[!NOTE] Verdict is an independent project. It is not made by, endorsed by or affiliated with Perplexity AI. "Decider" refers to Perplexity's openly licensed model of that name, which Verdict runs but does not include.

Features

  • Guided first run. Downloads Decider Flash v1.3 from Hugging Face, checks every file against its pinned SHA-256, and starts the server. An optional Hugging Face token raises the download rate limits.
  • Decider v1.3 support. Bundles a llama.cpp server with the protocol v4 changes that v1.3 needs: non-causal attention in the full-attention layers and chunked readouts. Stock llama.cpp and Decider.app 0.1.0 do not support v1.3.
  • Text and images. choice, score and noul questions over text, images, or both.
  • Menu bar control. Server status, port, network access, restart, and quick access to the config file, the model files and the log. No Dock icon.
  • Serve other Macs. Run Verdict on one Mac, such as a Mac mini, and call it from the others. Network access is off by default. When on, every app can call it with no sign-in, unless you choose an API key or a password.
  • One self-contained binary. The bundled llama-server links only macOS system libraries, so the app runs on a Mac without Homebrew.
  • Careful process handling. Verdict never takes over a busy port. It restarts a crashed server up to three times, with growing delays, then reports it. It stops the server when it quits, and on the next launch stops a server that a force-quit left behind. A restart never freezes the menu, even when the server is slow to stop.
  • Updates itself. Signed releases check https://verdict.pymodel.com/appcast.xml once a day through Sparkle and install only updates signed with the PyModel EdDSA key.
  • Report an Issue. From the menu, the Help menu or About, Verdict opens a prefilled GitHub issue and shows exactly what it includes. After a crash it offers to report it on the next launch. Sending crash summaries automatically to verdict.pymodel.com is off until you turn it on, and sends only the process, versions, exception and crashed thread, never file paths, prompts or keys.

Requirements

  • A Mac with Apple silicon (M1 or later) and macOS 14 or later
  • Decider Flash v1.3 (Q8_0): ~6 GB disk, ≥16 GB unified memory recommended (≥8 GB with q8_0 KV cache)
  • Decider 27B v1.3 (Q4_K_M): ~17.7 GB disk, ≥32 GB unified memory recommended (≥24 GB with q8_0 KV cache)
  • Decider 27B v1.3 (Q8_0): ~29.5 GB disk, ≥64 GB unified memory recommended (≥48 GB with q8_0 KV cache)

Install

Download Verdict-<version>.dmg from the latest release, check it against the .sha256 file next to it, open it, and drag Verdict.app to Applications. Release builds are signed with the PyModel LLC Developer ID and notarized by Apple, so they open without a Gatekeeper warning.

Verdict opens Overview on first launch or when the configured model is missing. Choose a model, then select Download and Start for Flash or use files already on disk. Once the server is ready, Overview shows a green confirmation. Select Connect to Agent to open the Connect an Agent sidebar tab. Overview then shows usage, even before the first request. Opening the tab does not record a request. A successful request from a recognized agent also dismisses the guide; clearing history does not reset setup. Skip setup hides the guide without clearing usage or cancelling a download. Choose Resume setup in Overview to return. Setup checks the configured model’s folder, ~/models/gguf/, and its immediate subfolders for complete Decider model/projector pairs. Detected files are used in place and checked before activation. New Flash downloads go in ~/models/gguf/pplx-decider-flash-v1.3-GGUF/:

File Size Purpose
pplx-decider-flash-v1.3-Q8_0.gguf 5.2 GB the model
mmproj-pplx-decider-flash-v1.3-BF16.gguf 0.7 GB vision projector (without it, text only)

Both come from py-model/pplx-decider-flash-v1.3-GGUF, pinned to commit 044f697. That repository is an unchanged mirror of vblanco/pplx-decider-flash-v1.3-GGUF, the community conversion of perplexity-ai/pplx-decider-flash-v1.3. A file is moved into place only after its size and SHA-256 match. A failed or cancelled download leaves no partial file; files already checked are kept, and Download and Start fetches the rest.

The Hugging Face token is optional. Add or remove it on the Model page without starting a download. A read token raises the rate limits. Verdict keeps it in your login keychain and sends it only to huggingface.co, never to the CDN that serves the files. Model… in the menu opens the window again.

Build from source

You need Xcode 26 or its command line tools (Swift 6.2), CMake and Git.

git clone https://github.com/PyModel/verdict.git && cd verdict
Scripts/build_server.sh      # fetches and builds llama-server
Scripts/test.sh              # the whole suite, as ci runs it
Scripts/package_app.sh       # creates build/Verdict.app
open build/Verdict.app

build_server.sh fetches official ggml-org/llama.cpp at pinned commit 9d6f04fa99 and applies the vendored MIT patches in patches/:

  1. pplx-decider-v4 protocol and MACaQ support (for both Flash v1.3 and 27B v1.3)
  2. /v1/decisions route alias alongside /v1/systemone
  3. non-causal ubatch sizing fix (ggml-org/llama.cpp#32713)
  4. shared image feature caching across multi-question requests (ggml-org/llama.cpp#31382, all Apple silicon Macs)
  5. Metal M5 NAX prefill and fast buffer startup optimizations (runtime-gated to M5+, with the M1–M4 path kept)
  6. a request log for the dashboard: with VERDICT_REQUEST_LOG set, each decisions request appends one line to that file
  7. the sleep state in /health ("sleeping": true while the idle model is unloaded)
  8. isolated questions for Decider v1.3: "mode": "isolated" reads the state once for all the questions of a request

The script stamps build/llama.cpp with the pinned commit and a hash of the patches, and fetches a fresh patched checkout whenever either changes. It builds one static arm64 binary targeting macOS 14+ and fails if the binary links anything outside macOS system libraries or lacks the patched /v1/decisions route, MACaQ support and isolated mode. To build from a llama.cpp checkout you already have, apply every patch in patches/ to it and set LLAMA_DIR; the script checks that the patches are applied, never changes that checkout's sources, and builds into its build-verdict folder. After changing the patches, run python3 -I Scripts/check_isolated_mode.py http://127.0.0.1:<port> against a server running Decider v1.3: it fails if isolated mode answers a lone question differently from separate mode or drifts too far.

package_app.sh signs the app ad hoc. To sign with a Developer ID, set APP_IDENTITY="Developer ID Application: …", which also turns on the hardened runtime. Scripts/make_dmg.sh build/Verdict.app build/Verdict.dmg wraps the app in a disk image, signed with the same identity, and Scripts/notarize.sh build/Verdict.dmg notarizes and staples it. The disk image carries the app icon and a drag-to-Applications window, built with dmgbuild: install it with python3 -m pip install --require-hashes -r Scripts/dmg/requirements.txt (Python 3.11 or later). The window background is drawn in Scripts/dmg/background.svg; after editing it, run Scripts/dmg/render_background.sh.

Usage

Verdict starts the server when it launches. The menu bar icon shows whether the server is loading, ready or stopped.

curl http://127.0.0.1:8012/v1/decisions -H 'Content-Type: application/json' -d '{
  "state": "The battery stopped charging after two weeks.",
  "questions": {
    "defect":   {"type": "noul", "instructions": "Does the review report a product defect?"},
    "severity": {"type": "choice", "instructions": "How severe is the issue?",
                 "criteria": {"low": "Minor", "medium": "Noticeable", "high": "The product is unusable"}}
  }
}'

The response holds one probability distribution per question. /v1/systemone answers the same requests.

By default each question is answered in its own sequence of the state and that question ("mode": "separate"), the computation Decider's published scores were measured with, so an answer never depends on the other questions. Add "mode": "isolated" to read the state once for all the questions of a request, as Decider's own mode="isolated": each question attends only to the state and to itself, but the state attends to every question, so an answer can shift slightly with the set of questions asked (the model card reports 1.5–2.2% of top answers). On a 37-question test set, Flash's isolated answers here stay as close to Decider's reference implementation of isolated mode as its separate answers do to the reference separate mode (largest probability gap 0.013 vs 0.018, all top answers equal). It pays off when a request asks many questions about a long state: 16 questions about a 6,100-token page take 1.8 s instead of 24.0 s with Flash on an M5 Max (see Performance). For a single question, separate mode is faster. The response's mode says which mode answered; requests with images always use separate mode, and usage.input_tokens counts the tokens the model read.

Images go in an images array of data URLs next to state. The vision projector must be present.

Use with AI agents

Any client of the Decisions API can use Verdict. To point a client at Verdict, set its base URL to http://127.0.0.1:<port>/v1/decisions. No API key is needed while network access is off.

Use from another Mac

  1. On the Mac that runs the model, open the Verdict menu and turn on Allow Network Access. Verdict restarts the server on 0.0.0.0. Then pick how clients sign in:

    • None (default): no sign-in. Every app on this Mac and anyone on your network can use the model.
    • API Key: Verdict creates a random key in ~/Library/Application Support/Verdict/api-key.
    • Password: you set your own, at least 8 characters with no spaces. It is kept in network-password next to the key. The server stays stopped until a password is set.

    The key and password files are readable only by you.

  2. If macOS asks whether llama-server may accept incoming connections, choose Allow. If the firewall is on and no prompt appears, allow it under System Settings › Network › Firewall › Options.

  3. Choose Copy Network URL, plus Copy API Key or your password if you set one, and give them to the client. Clients send the key or password as Authorization: Bearer <key>. For verdict-mcp, set JEV_API_BASE_URL=http://<host>.local:<port>/v1/systemone and, with a key or password, JEV_API_KEY=<key>.

While network access is on with a key or password, every client needs it, including ones on the same Mac; /health stays open. Requests travel as plain HTTP, so use it on a network you trust, or over a VPN such as Tailscale.

Configuration

Settings live in ~/Library/Application Support/Verdict/config.json, which Verdict creates on first launch. To apply edits, choose Restart Server from the menu.

Key Default Meaning
port 8012 port to serve on; also set from the menu
shareOnNetwork false serve on 0.0.0.0 instead of 127.0.0.1; also set from the menu
networkAuth none sign-in while sharing: none, apiKey or password; also set from the menu
modelPath ~/models/gguf/pplx-decider-flash-v1.3-GGUF/pplx-decider-flash-v1.3-Q8_0.gguf model file
mmprojPath the BF16 projector next to it vision projector; null for text only
modelAlias pplx-decider-flash-v1.3 the model name reported in responses
contextSize 65536 total context, shared by the slots
parallelSlots 2 requests served at once
batchSize 32768 batch size; a request is read in one pass, so it holds at most the smaller of batchSize and contextSize / parallelSlots tokens (the Model page shows this as tokens per request)
kvCacheType f16 KV cache type (f16, q8_0, q4_0); f16 is fastest on M5, q8_0 reduces RAM. A config without it loads as f16
runtimeTuning automatic manual keeps contextSize, parallelSlots and batchSize as written
idleSleepMinutes 15 minutes without requests before the server unloads the model to free memory; the next request loads it again (about a second for Flash). 0 keeps it loaded. Also set in Settings › General › Model › Unload when idle. Configs from earlier versions get 15 too

The defaults above are for Macs with 16 GB or more. contextSize, parallelSlots, batchSize and kvCacheType are set from the model and this Mac's memory when Verdict creates the config and whenever you switch models: under 16 GB, Flash uses 16384, 1, 16384 and q8_0. 27B Q4_K_M uses 16384, 1, 16384 and q8_0 under 48 GB, and 32768, 2, 16384 and f16 under 96 GB. 27B Q8_0 uses 16384, 1, 16384 and q8_0 under 64 GB, and 32768, 1, 32768 and f16 under 96 GB. With 96 GB or more, both 27B models use 131072, 2, 65536 and f16, so each request can hold 65,536 tokens; the model was trained for 262,144.

Each time Verdict loads config.json, it moves contextSize, parallelSlots and batchSize to the values for the configured model and this Mac, as long as the three still match a combination Verdict itself chose, now or in an earlier version. Values you set by hand are kept, and the Model page then offers Use Recommended. Set runtimeTuning to manual to keep the values even when they match. kvCacheType is set only when you choose a model or pick it on the Model page.

The server log is ~/Library/Logs/Verdict/server.log. Past 10 MB it moves to server.log.1 when the server starts.

Overview shows every request your agents send: which agent asked, when, whether it worked, how long it took and how many tokens it used. Verdict keeps these records in ~/Library/Logs/Verdict/requests.jsonl (5 MB, then one older file) and never saves prompts or answers. Agents are named by an X-Verdict-Client header or, without one, by their User-Agent. The Overview toolbar’s Usage History menu lets you export all loaded request metadata as JSON or clear usage for every agent and date on this Mac. Neither action uses the chart filters. Clearing requires confirmation, leaves the server log alone, and does not stop new requests from being recorded.

Performance

Measured on an Apple M5 Max (128 GB unified memory) with the bundled llama-server (vs the previous engine):

Model Warm startup 3 short questions (~300 tok) 512 px image, 4 questions 2 × 5K-token questions (~10K tok) 20K-token state
Flash v1.3 (Q8_0) 1.6 s 0.16 s 0.46 s (1.23×) 1.87 s (1.58×) 6.44 s (1.70×)
27B v1.3 (Q4_K_M) 3.7 s 0.80 s 2.61 s (q8_0 KV) – 2.99 s 11.61 s (2.05×) —
27B v1.3 (Q8_0) 3.6 s 0.74 s (1.19×) 3.16 s (1.23×) 11.95 s (2.24×) —

All quantized runs matched 9/9 (27B vs BF16 reference) and 10/10 (Flash vs baseline) top answers, including with M5 NAX kernels disabled (GGML_METAL_TENSOR_DISABLE=1), the kernel path M1–M4 Macs take. These numbers come from the M5 Max only: the build has not been run on M1–M4 hardware. On those Macs the M5 kernels stay off at runtime, and shared per-request image feature caching and fast startup still apply.

Decision modes. Flash v1.3 (Q8_0) asked yes/no questions about this README (about 6,100 tokens). Each cell is the median of 3 runs after one warm-up, on an otherwise idle server built at commit a413183 (2026-12-02). Reproduce with python3 -I Scripts/bench_decision_modes.py http://127.0.0.1:<port> 3.

Questions Separate Isolated Speedup Tokens read (separate / isolated) Largest probability gap Top answers that differ
1 1.20 s 1.67 s 0.7× 6,133 / 6,133 0.000 0 of 1
4 6.62 s 1.63 s 4.1× 24,533 / 6,203 0.015 0 of 4
16 23.97 s 1.81 s 13.3× 98,123 / 6,473 0.018 0 of 16
64 97.15 s 2.57 s 37.7× 392,732 / 7,802 0.022 0 of 64

Limitations

  • locate questions are not supported yet; the server answers them with HTTP 400.
  • Verdict does not start at login.
  • After a fourth crash in a row, Verdict reports it and waits for Restart Server.

Project layout

Path Contents
Sources/VerdictDomain pure entities, value types, policies and port protocols (no OS, network or UI dependencies)
Sources/VerdictApplication use cases and observable feature controllers (ServerSupervisor, ModelDownloader, ModelOnboardingModel, DashboardModel, IssueReporter, UsageModel, ServerLogModel) depending only on VerdictDomain
Sources/VerdictInfrastructure concrete macOS, POSIX, URLSession, filesystem, Keychain and llama-server adapters implementing VerdictDomain ports
Sources/Verdict SwiftUI menu bar app, feature views, DesktopServices and AppContainer composition root
Tests/VerdictDomainTests pure unit tests for domain rules and parsers
Tests/VerdictApplicationTests fast unit tests for application controllers using in-memory fakes
Tests/VerdictInfrastructureTests seam tests for OS, filesystem, process, socket and HTTP adapters
Scripts server build, binary check, app packaging, disk image, notarization and the comment check
patches MIT patches applied to upstream llama.cpp
.github CI, release automation and Dependabot
edge the verdict-edge Cloudflare Worker behind verdict.pymodel.com: update feed, /download (latest disk image), a count of Download clicks on the website, not of app updates (/v1/stats), crash reports, npm test and npm run deploy

Development

Every pull request runs the ci check: Conventional Commit title, shellcheck, no comments, swift build and swift test with warnings as errors, and a llama-server build. The server build is cached until Scripts/build_server.sh or patches/ changes. Dependabot proposes GitHub Actions updates weekly, two weeks after each release.

Releases are automatic. Each push to main updates a release pull request, written by release-please from the Conventional Commit subjects. Every release bumps the minor version: 0.1.0, then 0.2.0, then 0.3.0. Merging that pull request tags the version, creates the GitHub release, and attaches Verdict-<version>.dmg, signed with the PyModel LLC Developer ID, notarized and stapled, with its SHA-256. The version lives in version.txt; the build number is the commit count. Running the release workflow by hand builds, signs and notarizes a dry-run disk image without publishing it. Each release also signs appcast.xml with the Sparkle key and waits until https://verdict.pymodel.com/appcast.xml offers the new version, so installed copies update on their next daily check. Changes under edge/ are tested in ci and deployed to verdict.pymodel.com by the edge workflow when they reach main. The website at verdict.pymodel.com lives in PyModel/verdict-site; its Worker owns the domain and passes /appcast.xml, /download and /v1/* to verdict-edge.

The code carries no comments: names, types and tests say what it does. Scripts/check_comments.sh fails the ci check on any comment in Swift, shell or workflow files, except SwiftPM's tools-version line, shebangs and the version tags on pinned actions. Run Scripts/install-hooks.sh once per clone to get the same check as a pre-commit hook on staged files.

Run VERDICT_NETWORK_TESTS=1 swift test to include a test that downloads two small files from Hugging Face.

License

Verdict is released under the MIT License. The bundled llama-server and its components keep their own licenses, listed in THIRD_PARTY_NOTICES. The Decider model weights are licensed by Perplexity AI under the Apache License 2.0 and are not part of this repository.

© 2026 PyModel LLC

Explore projetos relacionados

Carregando…