Gemma4#966
Conversation
|
@tchawada can you please resolve the conflicts and update the PR. |
quic-hemagnih
left a comment
There was a problem hiding this comment.
Can we add the test case in the CI
ebd6845 to
4e97579
Compare
| skip_model_io=True, | ||
| **compiler_kwargs, | ||
| ) | ||
| breakpoint() |
| for i in range(num_chunks): | ||
| chunk_inputs["input_ids"] = lang_inputs["input_ids"][:, i * PREFILL_SEQ_LEN : (i + 1) * PREFILL_SEQ_LEN] | ||
| chunk_inputs["position_ids"] = lang_inputs["position_ids"][..., i * PREFILL_SEQ_LEN : (i + 1) * PREFILL_SEQ_LEN] | ||
| breakpoint() |
There was a problem hiding this comment.
remove breakpoints @qcdipankar Please check and remove all the breakpoints
| return self.model.config.__dict__ | ||
|
|
||
|
|
||
| class _QEffAutoModelForImageTextToTextLanguageOnlyCompat: |
There was a problem hiding this comment.
@tchawada why are we making a new AutoModel for lang part in text can't we handle using the same conditional generation as that of other VLM's?
There was a problem hiding this comment.
I am changing this
| # and vision_onnx_path is None | ||
| # ) | ||
| # need_export_lang = self.lang_model.onnx_path is None and lang_onnx_path is None | ||
| # if need_export_vision or need_export_lang: |
There was a problem hiding this comment.
this patch is different and changes the variables and the meaning of their usage for diss mode can we go back to mainline variables
| if k | ||
| in {"pixel_values", "image_masks", "image_input_idx", "valid_idx", "aspect_ratio_ids", "aspect_ratio_mask"} | ||
| in { | ||
| "pixel_values", |
There was a problem hiding this comment.
why is image position ids required here?
There was a problem hiding this comment.
Without them, the output is not meaningful
|
|
||
| target_dtype = getattr(self.model.config, "torch_dtype", torch.float32) | ||
| convert_to_fp16 = CUSTOM_IO_DTYPE_MAP[target_dtype] == "float16" | ||
| print(convert_to_fp16) |
There was a problem hiding this comment.
remove the print from here
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Dipankar Sarkar <dipankar@qti.qualcomm.com>
Signed-off-by: Dipankar Sarkar <dipankar@qti.qualcomm.com>
Signed-off-by: Dipankar Sarkar <dipankar@qti.qualcomm.com>
Signed-off-by: Dipankar Sarkar <dipankar@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
Signed-off-by: Tanisha Chawada <tchawada@qti.qualcomm.com>
End to end pipeline for gemma4