Skip to content

Commit e26db01

Browse files
fix(docs): Correct typos in Gemma_2 notebooks
1 parent b1f24ef commit e26db01

8 files changed

+9
-9
lines changed

Gemma/[Gemma_2]Aligning_DPO.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"# Aligning with DPO a Gemma-2 2B model.\n",
4141
"by [Pere Martra](https://github.com/peremartra)\n",
4242
"\n",
43-
"This notebook demostrates how to align a Gemma-2 model using DPO (Direct Preference Optimization).\n",
43+
"This notebook demonstrates how to align a Gemma-2 model using DPO (Direct Preference Optimization).\n",
4444
"<table align=\"left\">\n",
4545
" <td>\n",
4646
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/gemma-cookbook/blob/main/Gemma/[Gemma_2]Aligning_DPO.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",

Gemma/[Gemma_2]Custom_Vocabulary.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"\n",
4242
"This notebook demonstrates how to use a custom vocabulary in Gemma.\n",
4343
"\n",
44-
"Consider a document containing a length word, such as \"MyCustomWordInMyDocument\" with a high frequency of occurrence. It will be fragmented into several tokens, resulting in inefficiencies. Gemma Tokenizer offeres a potential solution in the form of \"<unused[0-98]>\" tokens. However, this approach requires additional training, as the base model lacks knowledge of these tokens.\n",
44+
"Consider a document containing a length word, such as \"MyCustomWordInMyDocument\" with a high frequency of occurrence. It will be fragmented into several tokens, resulting in inefficiencies. Gemma Tokenizer offers a potential solution in the form of \"<unused[0-98]>\" tokens. However, this approach requires additional training, as the base model lacks knowledge of these tokens.\n",
4545
"\n",
4646
"In this demo, you will fine-tune the model with a simple prompt \"日本の珍しい名字\" which means \"Rare Japanese surnames\".\n",
4747
"\n",

Gemma/[Gemma_2]Finetune_with_Axolotl.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"source": [
4040
"# Gemma - finetune with Axolotl\n",
4141
"\n",
42-
"This notebook demonstrates how to finetune Gemma with Axolotl. [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) is is a tool designed to streamline the fine-tuning of various AI models, offering support for multiple configurations and architectures. Axolotl wraps the Hugging Face finetuning functionality and provides a simple interface for finetuning.\n",
42+
"This notebook demonstrates how to finetune Gemma with Axolotl. [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) is a tool designed to streamline the fine-tuning of various AI models, offering support for multiple configurations and architectures. Axolotl wraps the Hugging Face finetuning functionality and provides a simple interface for finetuning.\n",
4343
"It's very easy to finetune Gemma with Axolotl. This notebook follows the [official Colab notebook](https://github.com/OpenAccess-AI-Collective/axolotl/blob/main/examples/colab-notebooks/colab-axolotl-example.ipynb) closely.\n",
4444
"\n",
4545
"<table align=\"left\">\n",

Gemma/[Gemma_2]Finetune_with_JORA.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@
985985
"source": [
986986
"generate_response(\n",
987987
" instruction=\"Identify 3 common mistakes in the following sentence. Suggest changes.\",\n",
988-
" input_text=\"She seems to believe that the real key to sucsess is working smart and hard.\"\n",
988+
" input_text=\"She seems to believe that the real key to success is working smart and hard.\"\n",
989989
")"
990990
]
991991
},

Gemma/[Gemma_2]Finetune_with_LitGPT.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@
20062006
],
20072007
"source": [
20082008
"!litgpt generate $FINETUNED_MODEL_DIR/final \\\n",
2009-
" --prompt \"Generate the next number in the Fibonnaci series: 1, 1, 2, 3, 5\""
2009+
" --prompt \"Generate the next number in the Fibonacci series: 1, 1, 2, 3, 5\""
20102010
]
20112011
},
20122012
{
@@ -2109,7 +2109,7 @@
21092109
"from litgpt import prompts\n",
21102110
"\n",
21112111
"alpaca_prompt_style = prompts.Alpaca()\n",
2112-
"prompt_text = alpaca_prompt_style.apply(prompt=\"Generate the next number in the Fibonnaci series.\",\n",
2112+
"prompt_text = alpaca_prompt_style.apply(prompt=\"Generate the next number in the Fibonacci series.\",\n",
21132113
" input=\"1, 1, 2, 3, 5, 8\")\n",
21142114
"print(prompt_text)"
21152115
]

Gemma/[Gemma_2]LangChain_chaining.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"source": [
8484
"### Configure your credentials\n",
8585
"\n",
86-
"Add your your Kaggle credentials to the Colab Secrets manager to securely store it.\n",
86+
"Add your Kaggle credentials to the Colab Secrets manager to securely store it.\n",
8787
"\n",
8888
"1. Open your Google Colab notebook and click on the 🔑 Secrets tab in the left panel. <img src=\"https://storage.googleapis.com/generativeai-downloads/images/secrets.jpg\" alt=\"The Secrets tab is found on the left panel.\" width=50%>\n",
8989
"2. Create new secrets: `KAGGLE_USERNAME` and `KAGGLE_KEY`\n",

Gemma/[Gemma_2]evaluation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"source": [
7979
"### Configure your credentials\n",
8080
"\n",
81-
"Add your your Kaggle credentials to the Colab Secrets manager to securely store it.\n",
81+
"Add your Kaggle credentials to the Colab Secrets manager to securely store it.\n",
8282
"\n",
8383
"1. Open your Google Colab notebook and click on the 🔑 Secrets tab in the left panel. <img src=\"https://storage.googleapis.com/generativeai-downloads/images/secrets.jpg\" alt=\"The Secrets tab is found on the left panel.\" width=50%>\n",
8484
"2. Create new secrets: `KAGGLE_USERNAME` and `KAGGLE_KEY`\n",

Gemma/[Gemma_2]on_Groq.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"source": [
4040
"# Gemma 2 running on Groq\n",
4141
"\n",
42-
"This cookbook shows how to call the Gemma 2 9B IT model hosted on [Groq Cloud](https://console.groq.com/). Groq is an AI accelerater company that provides [free Gemma 2 9B access](https://console.groq.com/docs/models) with blazing fast inference speed.\n",
42+
"This cookbook shows how to call the Gemma 2 9B IT model hosted on [Groq Cloud](https://console.groq.com/). Groq is an AI accelerator company that provides [free Gemma 2 9B access](https://console.groq.com/docs/models) with blazing fast inference speed.\n",
4343
"\n",
4444
"<table align=\"left\">\n",
4545
" <td>\n",

0 commit comments

Comments
 (0)