feat(runtime): add Unsloth Gemma 4 support for E2B, E4B, and 26B-A4B#267
Merged
feat(runtime): add Unsloth Gemma 4 support for E2B, E4B, and 26B-A4B#267
Conversation
Adds Potato support for Unsloth Gemma 4 multimodal GGUF models, including E2B, E4B, and an experimental 26B-A4B path. Extends model-family detection, projector repo resolution, projector candidate handling, runtime env propagation, and launcher mmproj logic for the supported Gemma 4 variants while keeping existing Qwen3.5 behavior intact. Automatically switches Gemma 4 activations to the llama_cpp runtime when needed, packages shared libraries safely for runtime bundles, and strips Gemma 4 channel-thought tokens from chat output until upstream template parsing catches up. Closes #265
603d1da to
e493351
Compare
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.
Closes #265
Summary
llama_cppruntime when activating Gemma 4 models (ik_llama doesn't havegemma3n/gemma4arch support yet — tracked in Feature Request: Gemma4 model support ikawrakow/ik_llama.cpp#1572)<|channel>thoughttokens in the chat UI (upstream llama.cpp PEG parser bug, fix pending in Gemma 4 template parser fixes ggml-org/llama.cpp#21326)cpsame-file error inbuild_llama_runtime.shuniversal profile packagingdefault_projector_candidates_for_modelinto a shared helper for both Qwen3.5 and Gemma 4llama.cpp(commita1cfb64) to thellama_cppruntime slot on PiTest evidence
Pi QA