Explore Phos

Installation & downloads

Back to Phos

Four steps to start editing.

Phos isn’t notarized by Apple yet, so macOS asks for permission once on first launch and never again. This is how macOS treats every non-notarized app — not something unique to Phos.

macOS dialog saying Phos Not Opened because Apple could not verify it is free of malware, with Done and Move to Trash buttons
Double-clicking Phos gets blocked once. This dialog has only two buttons — “Done” and “Move to Trash”. Click “Done”, not Trash.
Privacy & Security pane in System Settings, showing Phos was blocked in the Security section with an Open Anyway button on the right
If you’ve already double-clicked, you can also go to System Settings → Privacy & Security and click “Open Anyway”.

Download and open the disk image

Click “Download for macOS” on this page, or use this direct link, download Phos-macOS-apple-silicon.dmg, then double-click to open.

Drag it into Applications

In the disk image window, drag Phos into the Applications folder next to it, then eject the image.

Allow it on first launch

Phos is locally signed but not notarized by Apple, so it is blocked the first time. Double-click Phos, click “Done” to dismiss the dialog, then immediately open System Settings → Privacy & Security, scroll to the bottom, and click “Open Anyway”.

That button disappears about an hour after the dialog appears, so click it right away. After that, double-clicking opens the app normally.

Or skip it with one command

Run this line in Terminal to remove the quarantine flag; after that a double-click opens it:

xattr -dr com.apple.quarantine /Applications/Phos.app

Free, open source, on your Mac.

No account, no subscription, no cloud upload. Your photos stay on your Mac.

Requires macOS 26.0 or later · Apple silicon · MIT license · Version v4.9.2 (9.01 MB)

Download mirrors · switch if one is slow

All of the above serve the same file, with an identical SHA256: 7913efe0…6a39 (full value in SHA256.txt). After downloading, verify it in Terminal with shasum -a 256 ~/Downloads/Phos-macOS-apple-silicon.dmg.

Prefer a zip? There’s one here too (same contents).

Complete Guide to Connecting & Deploying Local AI Models

Phos uses a three-tier on-device AI architecture — all inference runs locally on your Mac and photos never leave your machine. Tier 1 works immediately after installing Phos; Tiers 2 and 3 are strictly optional drop-in upgrades that activate automatically once installed.

Tier 1 · Built-in

Zero-Download Native AI

Pure Swift, Metal & Apple Vision. Includes Native AI Edit, Reference Color Match, Subject / Person / 8-part Portrait masks, 4-level PatchMatch Remove, zero-model Sky & Depth, YCoCg RAW Denoise, 2x Sharpened Super Res, Smart Culling and bilingual search.

Tier 2 · Zero Python

5-Slot Core ML Neural Models

Native Apple Neural Engine & GPU models stored under ~/Library/Application Support/Phos/Models/ (~337 MB total for all 5 slots). Any uninstalled slot seamlessly falls back to Tier 1.

Tier 3 · Optional VLM

Qwen3-VL-4B / MLX Local Server

Open-ended natural-language prompting. Base weights live in ~/Library/Application Support/Phos/MLX/ (~3.1 GB). v4.9.2 ships an independently distributed aesthetic-enhanced 36-layer SFT v2 + QAT2 adapter (132.23 MB) in user space (supported since v4.9.1) and falls back cleanly to the bundled 1.3 MB default.

1. The 5 Core ML Model Slots & Exact Specifications

Below are all 5 Core ML neural slots supported by Phos, their verified open-source upstream models, exact target filenames, tensor/image contracts, and one-line installer scripts.

Model Slot Target Filename Recommended Upstream & License Size Input / Output Contract Feature & Install Script
LaMa InpaintingObject & blemish removal LaMa.mlmodelc heypatkay/solume-big-lama-coremlLaMa512 (default) or LaMa1024 · Apache-2.0 ~99 MB Float32 [1,3,512,512] + Mask [1,1,512,512] → Float16 RGB Remove brushbash Scripts/install_lama_model.sh
Core ML Sky SegmentationFine foliage & skyline masks SkySegmentation.mlmodelc melmass/skyseg-coremlU²-Net skyseg FP16 · MIT ~84 MB Image or Float16/32 [1,3,320,320] (ImageNet norm) → [1,1,H,W] Masks → Select Skybash Scripts/install_sky_model.sh
DepthAnythingV2Any-RAW optical bokeh depth DepthAnythingV2.mlmodelc apple/coreml-depth-anything-v2-smallApple official F16 export · Apache-2.0 ~48 MB Color Image 518×392 (or MultiArray inverse depth) → normalized depth Optical Bokeh / Depth Mapbash Scripts/install_depth_model.sh
AI RAW DenoiseHigh-ISO neural denoising Denoise.mlmodelc markhamilton/scunet-coremlSCUNet color real PSNR · Apache-2.0 ~74 MB Image or Float32 [1,3,512,512] (auto-tiled + Hann window blend) Detail → AI Denoisebash Scripts/install_denoise_model.sh
AI 2x Super Resolution2x neural detail export SuperRes.mlmodelc marshiyar/RealESRGAN_x2_CoreMLRealESRGAN_x2plus · MIT ~33 MB Image or Float32 [1,3,256,256] → [1,3,512,512] (2x tiled) Export → 2x Super Resbash Scripts/install_superres_model.sh
Phos On-Device Model Hub showing all 5 Core ML slots installed with green checkmarks and sizes
Phos “AI Edit → Model Hub” with all 5 Core ML neural slots installed and ready. Each slot can be replaced or removed independently at any time.

2. Three Ways to Deploy & Connect Core ML Models

Method A · One-Command Shell Scripts (Recommended)

Each script downloads the pinned weights from Hugging Face, verifies every file’s SHA-256 checksum, compiles via xcrun coremlcompiler, and atomically installs into ~/Library/Application Support/Phos/Models/.

Requires Xcode or Xcode Command Line Tools (xcrun coremlcompiler).

Method B · In-App GUI Import (No Terminal)

  1. Download any .mlpackage from the table above (unzip if .zip; ignore any __MACOSX folder).
  2. Open Phos → click “AI Edit” at the top of the right inspector → switch to the “Model Hub” tab.
  3. Click “Import…” on the matching slot and pick the .mlpackage or .mlmodelc bundle. Phos compiles and activates it immediately without restarting.
# 1) Install all 5 Core ML models at once (~337 MB total)
git clone https://github.com/Zenodeng/Phos.git && cd Phos
bash Scripts/install_all_coreml_models.sh

# 2) Or install individual slots on demand (LaMa supports --512 or --1024)
bash Scripts/install_lama_model.sh --512
bash Scripts/install_sky_model.sh
bash Scripts/install_depth_model.sh
bash Scripts/install_denoise_model.sh
bash Scripts/install_superres_model.sh

# 3) Mainland China mirror (uses hf-mirror.com with identical SHA-256 checks)
HF_ENDPOINT=https://hf-mirror.com bash Scripts/install_all_coreml_models.sh

Method C · Manual Compile or Custom Models: Phos supports both Image and MLMultiArray (NCHW/NHWC, FP16/FP32) Core ML models and reads tile dimensions directly from the model metadata. Compile manually or import via Model Hub:

mkdir -p "$HOME/Library/Application Support/Phos/Models"
xcrun coremlcompiler compile MyCustomModel.mlpackage "$HOME/Library/Application Support/Phos/Models"
# Rename to the exact slot filename (e.g. SuperRes.mlmodelc) and open AI Edit → Model Hub

3. Optional Advanced Mode: Local Multimodal VLM (Qwen3-VL-4B / MLX)

If you want free-form natural-language prompting powered by a local 4B vision-language model, install the ~3.1 GB Qwen3-VL-4B-Instruct-4bit base model and MLX runtime. Starting in Phos v4.9.1, adapter lookup prefers PHOS_PHOTO_AI_ADAPTER → ~/Library/Application Support/Phos/MLX/adapter/ → bundled 1.3 MB default adapter, keeping the 9 MB app compact while letting existing users hot-upgrade weights without re-downloading the 3.1 GB base model. Completely optional — skipping it never affects standard editing or Tier 1/2 AI.

Requirements: Apple-silicon Mac (macOS 26+) · arm64 Python 3.11 (python.org universal2 installer; built-in macOS python3 suffices when only updating the adapter) · at least 8 GB free disk space · 16 GB+ unified memory recommended.

Path A · Existing Users (Already have the 3.1 GB base model — ~1 min upgrade)

  1. Update Phos to v4.9.2. Your Python 3.11 venv and 3.1 GB base weights remain untouched.
  2. Download & unzip the updated Phos-Optional-Model-Installer.zip (10.6 KB), then right-click “更新AI微调权重.command” → “Open” to stream Phos-AI-Adapter-Qwen3-VL-4B-v2-QAT2.zip (132.23 MB) from GitHub Release v4.9.2, verify SHA-256 digests on both the archive and all 3 adapter files, back up your old adapter to adapter-backup-*, and atomically swap into ~/Library/Application Support/Phos/MLX/adapter/.
  3. Prefer downloading the adapter ZIP in a browser? Pass --adapter-zip offline, then fully quit and reopen Phos to activate the 36-layer QAT2 adapter.

Path B · First-Time Setup (Fresh install of base model + 36-layer QAT2)

  1. Install Python 3.11 and confirm python3.11 --version works in Terminal.
  2. Install base weights & runtime. Unzip Phos-Optional-Model-Installer.zip and right-click “安装模型.command” → “Open” (or “国内网络安装.command” in mainland China to use hf-mirror.com and Tsinghua PyPI while verifying all 16 SHA-256 digests).
  3. Upgrade to the 36-layer QAT2 adapter (recommended). Right-click “更新AI微调权重.command” to install the production 36-layer QAT2 weights over the bundled default.
  4. Connect inside Phos. Default folder is ~/Library/Application Support/Phos/MLX. Open any photo → “AI Edit” → bottom-left “Open Legacy MLX-VLM Window…”; Phos launches an offline server (HF_HUB_OFFLINE=1) on 127.0.0.1 on demand and shuts it down on quit.

v4.9.2 Measured Gains (32-Case Compliance + 12-Image Unseen Aesthetic Benchmark)

v4.9.2 trains all 36 language-model layers (252 modules) on Stage-2 MIT-Adobe FiveK + PPR10K + compliance mixes followed by targeted 4-bit MLX QAT2 calibration, preserving 32 / 32 compliance while significantly improving unseen photo aesthetics over v4.9.1 E1 QAT:

Acceptance Metric Legacy Pilot (4 Layers · 1.3 MB) v4.9.2 SFT v2 + 4-bit QAT2 (36 Layers · 132.23 MB)
32-Case Overall Pass Rate 27 / 32 32 / 32 (matches v4.9.1)
First-Pass Zero-Retry 19 / 28 (exact intent 21 / 28) 32 / 32 (exact intent 28 / 28)
Protected-Parameter Violations 5 unintended overrides 0
Targeted Single-Param Edits Over Complex Base 0 / 4 4 / 4
Combined Multi-Tool Styles (No Stray Fields) 2 / 4 4 / 4 (no stray parameter leakage)
Out-of-Scope / Generative Refusals 3 / 4 4 / 4
Local Masks & Crop Geometry Required retries on strict targets Masks 12 / 12 · Exact crop 4 / 4 · Safe crop 4 / 4
Warm Apple-Silicon Latency Median 10.15s (P95 25.33s) Median 8.94s (Max 19.08s)

12-Image Unseen Aesthetic Benchmark (vs. v4.9.1 E1 QAT): Overall mean OKLab ΔE improves from 13.18 (original) and 11.63 (v4.9.1) to 10.53, while SSIM rises from 0.790 / 0.820 to 0.841 (winning 8 / 12 over v4.9.1). On PPR10K portraits (6 images), mean ΔE drops from 9.88 to 7.66 (median 10.06 → 7.53, SSIM 0.855 → 0.901, winning 4 / 6); on FiveK global (6 images), median ΔE drops from 13.01 to 11.12 (winning 4 / 6). Proactive higher-order tool usage (curves / HSL / grading) increases from 0 / 12 to 5 / 12 (mean active parameters 7.67 → 12.17).

Honest scope note: The 32 / 32 score verifies controlled-instruction compliance, and the 12-image suite measures OKLab ΔE / SSIM proximity against unseen ground-truth targets; every draft still previews side by side before anything touches your edit history.

# 1) Manual base-model install using China mirrors
HF_ENDPOINT=https://hf-mirror.com PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple python3.11 install_model.py

# 2) Download, verify SHA-256, back up old adapter and install 36-layer QAT2 weights
python3 install_model.py --install-adapter

# 3) Offline install after downloading the adapter ZIP manually
python3 install_model.py --install-adapter --adapter-zip ~/Downloads/Phos-AI-Adapter-Qwen3-VL-4B-v2-QAT2.zip

# 4) Verify all 16 base files, MLX imports, and installed user-directory adapter manifest
python3 install_model.py --verify-only

# 5) Install to a custom path (then pick the outer folder containing .venv and model inside Phos)
python3.11 install_model.py --environment /absolute/path/Phos-MLX

Model Deployment FAQ

Do I need to restart Phos after installing Core ML models?

No. Importing via Model Hub hot-reloads immediately; after installing via terminal scripts into ~/Library/Application Support/Phos/Models/, opening Model Hub refreshes status and the Remove brush, Sky mask, Optical Bokeh, AI Denoise, and 2x Super Res export automatically pick up the installed weights.

What if xcrun coremlcompiler is not found?

Run xcode-select --install (or install Xcode) before running the shell scripts. Alternatively, download any .mlpackage manually and import it inside Phos “AI Edit → Model Hub” — macOS compiles it automatically via MLModel.compileModel.

It says “Please install Apple Silicon Python 3.11”

Only Tier 3 (Qwen3-VL MLX) requires Python 3.11 — Tier 1 Native AI and all 5 Tier 2 Core ML models are 100% Python-free. Reinstall the macOS universal2 Python 3.11 package from python.org if you want Qwen3-VL.

How do I troubleshoot the local MLX server?

Run python3 install_model.py --verify-only to verify weights and imports, then inspect ~/Library/Logs/Phos-MLX.log. Never move an existing .venv folder (it stores absolute paths); use --environment to install into a new path instead.

How do I verify the 36-layer QAT adapter is active or roll back?

Run python3 install_model.py --verify-only inside the installer folder and check for v4.9.1-e1-qat. Quit and reopen Phos so it loads ~/Library/Application Support/Phos/MLX/adapter/ automatically. Previous weights are preserved in adapter-backup-*; deleting or renaming adapter/ reverts cleanly to the bundled default adapter on next launch.

Do any models upload my photos?

Never. All 5 Core ML models run in-process on Apple Neural Engine / Metal, and the optional Qwen3-VL MLX server binds strictly to loopback 127.0.0.1 with HF_HUB_OFFLINE=1. Internet access is used only while downloading weights.

All third-party upstream models retain their original open-source licenses: solume-big-lama-coreml (Apache-2.0), melmass/skyseg-coreml (MIT), apple/coreml-depth-anything-v2-small (Apache-2.0), markhamilton/scunet-coreml (Apache-2.0), marshiyar/RealESRGAN_x2_CoreML (MIT), and mlx-community/Qwen3-VL-4B-Instruct-4bit (Apache-2.0).

Optional: curated film LUT pack (34 sRGB-ready looks)

Phos keeps the app bundle lightweight and does not bundle hundreds of megabytes of third-party LUT files. This standalone 13.8 KB package contains no bundled LUT binaries — using macOS’s built-in Python 3 standard library, it fetches 34 de-duplicated, sRGB / Rec.709-ready presets directly from upstream authors (~30–40 MB via HTTP range requests) into ~/Documents/RawTherapee/HaldCLUT.

Includes 18 RawTherapee classics & Polaroid looks (Portra, Ektar, Kodachrome, 400H, HP5, Polaroid), 5 Stuart Sowerby Fuji X-Trans III presets, 3 abpy X-Trans IV Provia → sRGB profiles, 2 PictureFX looks, 4 IWLTBAP Freeware grades, plus locally baked sRGB → Linear → Cineon Log adaptations of Kodak 2383 D65 and Fujifilm 3513DI D65 so shadows never crush on sRGB images.

To install: unzip and double-click 安装精选胶片LUT.command (or run python3 install_luts.py). Existing directories can be backed up first (keeping 我的LUT) or merged non-destructively. Afterwards, click Refresh under Color → Film CLUT in Phos. Third-party license notices are inside LICENSE-THIRD-PARTY.md (abpy is CC BY-NC-SA 4.0 non-commercial; pass --skip-iwltbap to omit IWLTBAP).

Windows build · Experimental port

Synced natively to the macOS 4.9.1 feature baseline and maintained separately from the macOS build. Extract the ZIP into a new folder and launch Phos.exe directly — it must remain alongside the bin\ folder, with no extra .NET or MSYS2 runtime required. Requires 64-bit Windows 10 2004 (Build 19041) or Windows 11 and a D3D11 Feature Level 11.0+ GPU. Verify the archive first with SHA256-Windows.txt (Get-FileHash).

It isn’t identical to the macOS build. Built on WinUI 3, 25 HLSL CS 5.0 compute shaders (D3D11), DXGI scRGB 16-bit HDR display, LittleCMS 2, and DirectML ONNX in place of Apple Vision and Core Image, so subject masks, edges, and color can differ subtly. All 4.9.1 workflows are synced: LibRaw decoding (4 highlight recovery modes) with external .dcp profiles, 4 physical FilmPrint modes with universal .cube / HALD LUTs, the precision -45°..+45° Level Ruler, Auto-Straighten, Guided Upright, 16-bit TIFF Panorama stitching, live Soft Proofing (Shift+S) with custom ICC export, and bidirectional Adobe XMP including local masks.

On-device AI & modular companion scripts: includes the zero-Python llama-server.exe backend (Qwen3-VL-4B with hot-loaded GGUF LoRA adapters via update_ai_adapter.ps1 and convert_mlx_adapter_to_gguf.py) plus instant offline NativePhotoPlanner fallback. To slim the download from 407 MB down to 152 MB, optional DirectML ONNX models and 34 curated sRGB film LUTs are fetched on demand via fetch_models.ps1 (supports -Mirror) and fetch_luts.ps1 in the extracted root folder.

It isn’t code-signed, so the first launch is blocked by Windows SmartScreen — click “More info → Run anyway”. Full feature notes, companion scripts, and shortcuts are in the release notes.