From 7425bebb6c5e699ea590c2bdc270bbb2779a2197 Mon Sep 17 00:00:00 2001 From: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com> Date: Fri, 5 Jun 2026 01:43:36 +0100 Subject: [PATCH] docs(cookbook): restore Gemma 4 transformers commit pin (#27321) --- docs_new/cookbook/autoregressive/Google/Gemma4.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs_new/cookbook/autoregressive/Google/Gemma4.mdx b/docs_new/cookbook/autoregressive/Google/Gemma4.mdx index 97f8b6c71..b8bd13879 100644 --- a/docs_new/cookbook/autoregressive/Google/Gemma4.mdx +++ b/docs_new/cookbook/autoregressive/Google/Gemma4.mdx @@ -67,11 +67,14 @@ Gemma 4 is Google's next-generation family of open models, building on the Gemma ## 2. SGLang Installation -Gemma 4 (including the encoder-free unified 12B, [sgl-project/sglang#27167](https://github.com/sgl-project/sglang/pull/27167)) is supported on SGLang main: +Gemma 4 (including the encoder-free unified 12B, [sgl-project/sglang#27167](https://github.com/sgl-project/sglang/pull/27167)) is supported on SGLang main. Install it together with the matching transformers commit: ```bash Command # Install SGLang from main pip install 'git+https://github.com/sgl-project/sglang.git#subdirectory=python' + +# Install transformers with Gemma 4 support (encoder-free unified family included) +pip install 'git+https://github.com/huggingface/transformers.git@1423d22f7a3b62e8c70ad67b58ec25cd9b675897' ``` ### Docker (prebuilt dev image)