Skip to content

Commit 4a84cfc

Browse files
authored
Minor cosmetic fixes in Gemma 3 nbs (#780)
1 parent f571b5e commit 4a84cfc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ch05/12_gemma3/standalone-gemma3-plus-kvcache.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@
838838
},
839839
"outputs": [],
840840
"source": [
841-
"def load_weights_into_gemma(Gemma3Model, param_config, params):\n",
841+
"def load_weights_into_gemma(model, param_config, params):\n",
842842
"\n",
843843
" def assign(left, right, tensor_name=\"unknown\"):\n",
844844
" if left.shape != right.shape:\n",
@@ -987,7 +987,7 @@
987987
"id": "430340f2-78b9-4983-b74e-8395bbd7e574",
988988
"metadata": {},
989989
"source": [
990-
"- 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",
990+
"- 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",
991991
"- 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",
992992
"\n",
993993
"\n",

ch05/12_gemma3/standalone-gemma3.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@
763763
},
764764
"outputs": [],
765765
"source": [
766-
"def load_weights_into_gemma(Gemma3Model, param_config, params):\n",
766+
"def load_weights_into_gemma(model, param_config, params):\n",
767767
"\n",
768768
" def assign(left, right, tensor_name=\"unknown\"):\n",
769769
" if left.shape != right.shape:\n",
@@ -887,7 +887,7 @@
887887
"id": "430340f2-78b9-4983-b74e-8395bbd7e574",
888888
"metadata": {},
889889
"source": [
890-
"- 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",
890+
"- 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",
891891
"- 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",
892892
"\n",
893893
"\n",

0 commit comments

Comments
 (0)