Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "Open in Colab" button to each notebook in the colab dir. #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 26 additions & 22 deletions colabs/fine_tuning_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"source": [
"# Fine-tuning the 2B Gemma model with flax\n",
"\n",
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-deepmind/gemma/blob/main/colabs/fine_tuning_tutorial.ipynb\">\n",
" <img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/>\n",
"</a>\n",
"\n",
"In this tutorial you will learn how to fine-tune the 2B Gemma model for a simple translation task. To run this colab, you will need to use a TPU v4 runtime."
]
},
Expand All @@ -45,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "XpSw-_4EEcoY"
},
Expand Down Expand Up @@ -75,7 +79,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "8q5seOhcUBhx"
},
Expand All @@ -102,7 +106,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "9PEefz8wEcoY"
},
Expand All @@ -119,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "yWaP_LPoEcoY"
},
Expand Down Expand Up @@ -167,7 +171,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "pg8SfQH0EcoY"
Expand Down Expand Up @@ -208,7 +212,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "TpyG5YW1EcoY"
Expand Down Expand Up @@ -236,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "L9cjK0uxEcoY"
Expand Down Expand Up @@ -308,7 +312,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "xEA-97ioEcoY"
Expand Down Expand Up @@ -351,7 +355,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "XwFFs2mDEcoY"
Expand Down Expand Up @@ -495,7 +499,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "bYeduOaNEcoZ"
Expand Down Expand Up @@ -529,7 +533,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "VDlfziQVEcoZ"
Expand Down Expand Up @@ -563,7 +567,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "jWr6Sea_EcoZ"
Expand All @@ -579,7 +583,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "S6937NTjEcoZ"
Expand All @@ -606,7 +610,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "LbJa4S5WEcoZ"
Expand Down Expand Up @@ -637,7 +641,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "iEcV0XEEEcoZ"
Expand Down Expand Up @@ -707,7 +711,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "cbWfdHf0EcoZ"
Expand Down Expand Up @@ -735,7 +739,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "cPSfp7ZUEcoZ"
Expand Down Expand Up @@ -790,7 +794,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "yU4oR92YEcoa"
Expand Down Expand Up @@ -823,7 +827,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "xT4bAqNLEcoa"
Expand Down Expand Up @@ -921,7 +925,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "7SL2VAmVEcoa"
Expand Down Expand Up @@ -955,7 +959,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "dQ1oCF10Ecod"
Expand All @@ -980,7 +984,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "S5F3fk22Ecod"
Expand Down
29 changes: 18 additions & 11 deletions colabs/gsm8k_eval.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"source": [
"# GSM8K evaluation using Gemma\n",
"\n",
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-deepmind/gemma/blob/main/colabs/gsm8k_eval.ipynb\">\n",
" <img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/>\n",
"</a>\n",
"\n",
"The [GSM8K dataset](https://arxiv.org/pdf/2110.14168.pdf) presents a good evaluation challenge for small models for several reasons:\n",
"\n",
"1. **Conceptual Simplicity:** While the problems in GSM8K require multi-step reasoning, they primarily involve elementary mathematical concepts and basic arithmetic operations. This makes the dataset accessible to smaller models that may not have the capacity to handle complex mathematical reasoning.\n",
Expand All @@ -51,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "pIF7Tr8yEXiq"
},
Expand Down Expand Up @@ -80,7 +84,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "qai-J2Dgaac0"
},
Expand All @@ -107,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "-uHzK733EXiq"
},
Expand All @@ -124,7 +128,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"id": "udFgOLxJEXiq"
},
Expand All @@ -151,7 +155,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "E47hYa8dEXiq"
Expand All @@ -164,7 +168,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "ReheKSODEXiq"
Expand Down Expand Up @@ -209,7 +213,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "cXoCKMi9EXir"
Expand Down Expand Up @@ -331,7 +335,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "7s15QMbbEXir"
Expand All @@ -353,7 +357,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "_n0KePI2EXir"
Expand All @@ -375,7 +379,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "51WOHSzVEXir"
Expand Down Expand Up @@ -407,7 +411,7 @@
},
{
"cell_type": "code",
"execution_count": 0,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "iHxQeQ4hEXir"
Expand Down Expand Up @@ -463,6 +467,9 @@
"metadata": {
"colab": {
"private_outputs": true
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
Expand Down
Loading