Minor cosmetic fixes in Gemma 3 nbs (#780)

This commit is contained in:
Sebastian Raschka
2025-08-19 21:08:29 -05:00
committed by GitHub
parent f571b5e493
commit 4a84cfccf9
2 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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",