Skip to content

Add Gemma3 quantization test#2459

Open
wpietka wants to merge 2 commits intomasterfrom
wpietkax/add-gemma-quantization-test
Open

Add Gemma3 quantization test#2459
wpietka wants to merge 2 commits intomasterfrom
wpietkax/add-gemma-quantization-test

Conversation

@wpietka
Copy link
Copy Markdown
Contributor

@wpietka wpietka commented Apr 30, 2026

Type of Change

Test

Description

Adds a new tests which quantize gemma3 model and run it with both text-only and image containing prompt

Expected Behavior & Potential Risk

E2E validation of Gemma3 output

How has this PR been tested?

pytest test/jax/test_gemma3_model.py

Dependency Change?

No dependencies changed

@wpietka wpietka marked this pull request as ready for review May 4, 2026 13:11
@wpietka wpietka force-pushed the wpietkax/add-gemma-quantization-test branch 3 times, most recently from 3385be8 to b07f4ff Compare May 4, 2026 13:40
Signed-off-by: Wojciech Piętka <wojciechx.pietka@intel.com>
Comment thread test/jax/test_gemma3_model.py Outdated


@pytest.mark.parametrize("dynamic", [True, False], ids=["dynamic=True", "dynamic=False"])
def test_image_recognition(colva_beach_sq, model_dtype, quantization_dtype, dynamic):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

gemma3_instruct_4b-v1 is originally given in bfloat, so using float doesn't increase accuracy and should reduce significantly reduce time consumed by test, please use bfloat here

Signed-off-by: Wojciech Piętka <wojciechx.pietka@intel.com>
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