Multimodal evaluation runner and end-to-end pipeline for omni POC - #5059
Open
subawocit wants to merge 1 commit into
Open
Multimodal evaluation runner and end-to-end pipeline for omni POC#5059subawocit wants to merge 1 commit into
subawocit wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces an evaluation runner (eval_sft_omni.py) and an end-to-end pipeline script (maxtext_omni_pipeline_e2e.sh) for the Omni model (Gemma 3 Vision + Qwen 3 LLM). The pipeline automates checkpoint conversion, stitching, pretraining, supervised fine-tuning, and evaluation. Feedback is provided to improve the robustness of the get_latest_checkpoint bash function by passing the path as a command-line argument to the inline Python script instead of using direct string interpolation.
subawocit
force-pushed
the
maxtext_omni_eval
branch
from
August 29, 2026 00:20
07e0428 to
10ef0a4
Compare
subawocit
force-pushed
the
maxtext_omni_eval
branch
from
August 29, 2026 00:26
10ef0a4 to
e301f7a
Compare
subawocit
marked this pull request as ready for review
August 29, 2026 00:27
subawocit
requested review from
A9isha,
NuojCheng,
RissyRan,
SurbhiJainUSC,
abhinavclemson,
aireenmei,
bvandermoon,
darisoy,
dipannita08,
gagika,
gobbleturk,
hengtaoguo,
huytransformer,
igorts-git,
jiangjy1982,
khatwanimohit,
richjames0,
shralex,
shuningjin,
vipannalla and
xibinliu
as code owners
August 29, 2026 00:27
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.
Description
This PR introduces the standalone multimodal evaluation runner and complete end-to-end training+evaluation pipeline automation script for hybrid multimodal Omni models (Gemma 3 Vision + Qwen 3 LLM).
Files
Multimodal Benchmark
src/maxtext/experimental/omni_poc/eval_sft_omni.pyEnd-to-End Pipeline
src/maxtext/experimental/omni_poc/maxtext_omni_pipeline_e2e.shPipeline
flowchart TD HF_Vision["HuggingFace Vision<br/>(google/gemma-3-4b-it)"] -->|"Step 1: to_maxtext"| Converted_Vision["Converted Vision Checkpoint<br/>(Gemma 3 4B)"] HF_LLM["HuggingFace LLM<br/>(Qwen/Qwen3-4B)"] -->|"Step 1: to_maxtext"| Converted_LLM["Converted LLM Checkpoint<br/>(Qwen 3 4B)"] Converted_Vision -->|"Step 2: stitch_checkpoint"| Stitched_Omni["Stitched Omni Checkpoint<br/>(Gemma 3 + Qwen 3 + MLP Projector)"] Converted_LLM -->|"Step 2: stitch_checkpoint"| Stitched_Omni Stitched_Omni -->|"Step 3: train_sft_omni<br/>(Pretrain on ChartNet)"| Pretrained_CKPT["Pretrained Checkpoint<br/>(Connector Aligned)"] Pretrained_CKPT -->|"Step 4: train_sft_omni<br/>(SFT on ChartQA)"| SFT_CKPT["Final SFT Checkpoint<br/>(Visual QA Fine-Tuned)"] SFT_CKPT -->|"Step 5: eval_sft_omni<br/>(ChartQA Benchmark)"| Eval_Results["Benchmark Metrics & CSV<br/>(Evaluation Results)"]Usage Examples
1. Standalone Multimodal Evaluation Runner
2. Full End-to-End Pipeline Execution
Tests
1. Standalone Multimodal Evaluation Runner
Evaluation run on ChartQA test split using SFT checkpoint:
Benchmark Output
2. End-to-End Pipeline Execution
Step-by-Step Objectives
<|image_pad|>to tokenizer and ensure correct masking in the decoder.Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.