There seems to be a transformers version conflict with Gemma4?
optimum-cli export openvino --model google/gemma-4-12b-it --task text-generation --weight-format int4 gemma4_ov_model/
ValueError: The checkpoint you are trying to load has model type gemma4_unified but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
You can update Transformers with the command pip install --upgrade transformers. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command `pip install git+https://github.com/huggingface/transformers.git
If I upgrade transformers to the latest version, then optimum-cli doesn't work, as it requires transformers <5.1