diff --git a/ch05/12_gemma3/standalone-gemma3-plus-kvcache.ipynb b/ch05/12_gemma3/standalone-gemma3-plus-kvcache.ipynb index fbde3a5..16c5879 100644 --- a/ch05/12_gemma3/standalone-gemma3-plus-kvcache.ipynb +++ b/ch05/12_gemma3/standalone-gemma3-plus-kvcache.ipynb @@ -838,7 +838,7 @@ }, "outputs": [], "source": [ - "def load_weights_into_gemma(Gemma3Model, param_config, params):\n", + "def load_weights_into_gemma(model, param_config, params):\n", "\n", " def assign(left, right, tensor_name=\"unknown\"):\n", " if left.shape != right.shape:\n", @@ -987,7 +987,7 @@ "id": "430340f2-78b9-4983-b74e-8395bbd7e574", "metadata": {}, "source": [ - "- Please note that Google requires that you accept the Gemma 3 licensing terms before you can download the files; to do this, you have to create a Hugging Face Hub account and visit the [google/gemma-3-270m]https://huggingface.co/google/gemma-3-270m) repository to accept the terms\n", + "- Please note that Google requires that you accept the Gemma 3 licensing terms before you can download the files; to do this, you have to create a Hugging Face Hub account and visit the [google/gemma-3-270m](https://huggingface.co/google/gemma-3-270m) repository to accept the terms\n", "- Next, you will need to create an access token; to generate an access token with READ permissions, click on the profile picture in the upper right and click on \"Settings\"\n", "\n", "\n", diff --git a/ch05/12_gemma3/standalone-gemma3.ipynb b/ch05/12_gemma3/standalone-gemma3.ipynb index b3d0941..9fa65ab 100644 --- a/ch05/12_gemma3/standalone-gemma3.ipynb +++ b/ch05/12_gemma3/standalone-gemma3.ipynb @@ -763,7 +763,7 @@ }, "outputs": [], "source": [ - "def load_weights_into_gemma(Gemma3Model, param_config, params):\n", + "def load_weights_into_gemma(model, param_config, params):\n", "\n", " def assign(left, right, tensor_name=\"unknown\"):\n", " if left.shape != right.shape:\n", @@ -887,7 +887,7 @@ "id": "430340f2-78b9-4983-b74e-8395bbd7e574", "metadata": {}, "source": [ - "- Please note that Google requires that you accept the Gemma 3 licensing terms before you can download the files; to do this, you have to create a Hugging Face Hub account and visit the [google/gemma-3-270m]https://huggingface.co/google/gemma-3-270m) repository to accept the terms\n", + "- Please note that Google requires that you accept the Gemma 3 licensing terms before you can download the files; to do this, you have to create a Hugging Face Hub account and visit the [google/gemma-3-270m](https://huggingface.co/google/gemma-3-270m) repository to accept the terms\n", "- Next, you will need to create an access token; to generate an access token with READ permissions, click on the profile picture in the upper right and click on \"Settings\"\n", "\n", "\n",