Skip to content

Add mmjproj model support#14

Open
Godzilla675 wants to merge 1 commit intoFix-whisper-initial-download-issuefrom
feat/add-mmjproj-support-5231399183616601442
Open

Add mmjproj model support#14
Godzilla675 wants to merge 1 commit intoFix-whisper-initial-download-issuefrom
feat/add-mmjproj-support-5231399183616601442

Conversation

@Godzilla675
Copy link
Owner

Added mmjproj to the list of recognized projector markers to support models that use this extension/naming convention. Updated the ModelDownloadService to give mmjproj files the same scoring logic as mmproj files when selecting a projector sidecar. Updated the ChatViewModel error message to mention mmjproj and added a unit test to verify that mmjproj files are correctly identified as projection artifacts rather than standalone models.


PR created automatically by Jules for task 5231399183616601442 started by @Godzilla675

@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI review requested due to automatic review settings March 21, 2026 18:49
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the application's compatibility with various projector models by integrating support for the mmjproj extension. The changes ensure that mmjproj files are properly recognized, scored, and handled throughout the model loading and error reporting processes, improving the robustness and user experience when dealing with different projector model types.

Highlights

  • New Projector Model Support: Added support for mmjproj as a recognized projector marker, allowing the application to identify and utilize models with this extension.
  • Model Scoring Logic Update: Modified the ModelDownloadService to assign the same scoring priority to mmjproj files as mmproj files when selecting a projector sidecar.
  • User Feedback Improvement: Updated the ChatViewModel error message to explicitly mention mmjproj when a compatible projector is required, providing clearer guidance to users.
  • Unit Test Coverage: Included a new unit test to confirm that mmjproj files are correctly identified as projection artifacts and not as standalone models.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively adds support for mmjproj models by updating the list of recognized projector markers, adjusting the scoring logic in the ModelDownloadService, modifying a user-facing error message, and including a new unit test. The changes are logical and well-contained. I have one minor suggestion to improve the maintainability of the scoring logic.

Comment on lines +416 to 418
if (lowerPath.contains("mmproj") || lowerPath.contains("mmjproj")) {
score += 1
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and readability, consider using a list of markers and the any function. This makes it easier to add more projector markers in the future without extending the if condition.

Suggested change
if (lowerPath.contains("mmproj") || lowerPath.contains("mmjproj")) {
score += 1
}
if (listOf("mmproj", "mmjproj").any { lowerPath.contains(it) }) {
score += 1
}

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for mmjproj projector sidecar naming so these files are recognized as projection artifacts (not standalone models) and are preferred appropriately when auto-selecting/download a projector.

Changes:

  • Extend projector marker detection to include mmjproj.
  • Update projector sidecar selection scoring to treat mmjproj like mmproj.
  • Update user-facing readiness error text and add a unit test covering mmjproj filtering.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
app/src/main/java/com/dark/tool_neuron/repo/ModelStoreRepository.kt Recognize mmjproj as a projector marker during GGUF filtering.
app/src/main/java/com/dark/tool_neuron/service/ModelDownloadService.kt Score mmjproj files similarly to mmproj when selecting a projector sidecar.
app/src/main/java/com/dark/tool_neuron/viewmodel/ChatViewModel.kt Update the “load projector” error message to mention mmjproj.
app/src/test/java/com/dark/tool_neuron/repo/ModelStoreRepositoryTest.kt Add coverage ensuring mmjproj files are rejected as standalone supported GGUF models.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

private val QUANTIZATION_MATCH_REGEX = Regex("""(?:^|[.-])((?:I?Q)\d+(?:_[A-Z0-9]+)*)""")
private val TRAILING_QUANTIZATION_REGEX = Regex("""([.-])(?:I?Q)\d+(?:_[A-Z0-9]+)*(?:-[A-Z0-9]+)*$""")
private val PROJECTOR_MARKERS = listOf("mmproj", "vision-adapter", "projector")
private val PROJECTOR_MARKERS = listOf("mmproj", "mmjproj", "vision-adapter", "projector")
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a new projector marker changes the GGUF filtering behavior that feeds the on-disk model store cache. To prevent stale caches from continuing to show *mmjproj*.gguf as selectable models, bump ModelStoreCache.CURRENT_VERSION so existing caches are invalidated as intended by the comment above it.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants