From 58d05d1929b153c26d86827cf13c27227a389ee2 Mon Sep 17 00:00:00 2001 From: john-rocky Date: Fri, 1 May 2026 09:06:46 +0900 Subject: [PATCH] MLXChatExample: register Gemma 4 (E2B / E4B) VLMs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the two smaller `gemma4` checkpoints already published in `VLMRegistry` (`gemma4_E2B_it_4bit`, `gemma4_E4B_it_4bit`) to the chat app's `availableModels`, so they appear alongside the existing qwen / smol VLMs in the model picker on macOS and iOS. The 31B and 26BA4B variants are intentionally left out — they are too large to be practical on the supported iOS devices. --- Applications/MLXChatExample/Services/MLXService.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/MLXChatExample/Services/MLXService.swift b/Applications/MLXChatExample/Services/MLXService.swift index b73f7b81..7095cbcd 100644 --- a/Applications/MLXChatExample/Services/MLXService.swift +++ b/Applications/MLXChatExample/Services/MLXService.swift @@ -32,6 +32,8 @@ class MLXService { name: "qwen2.5VL:3b", configuration: VLMRegistry.qwen2_5VL3BInstruct4Bit, type: .vlm), LMModel(name: "qwen2VL:2b", configuration: VLMRegistry.qwen2VL2BInstruct4Bit, type: .vlm), LMModel(name: "smolVLM", configuration: VLMRegistry.smolvlminstruct4bit, type: .vlm), + LMModel(name: "gemma4:E2B", configuration: VLMRegistry.gemma4_E2B_it_4bit, type: .vlm), + LMModel(name: "gemma4:E4B", configuration: VLMRegistry.gemma4_E4B_it_4bit, type: .vlm), LMModel(name: "acereason:7B", configuration: LLMRegistry.acereason_7b_4bit, type: .llm), LMModel(name: "gemma3n:E2B", configuration: LLMRegistry.gemma3n_E2B_it_lm_4bit, type: .llm), LMModel(name: "gemma3n:E4B", configuration: LLMRegistry.gemma3n_E4B_it_lm_4bit, type: .llm),