From f8c7ff3ebdc28327f265ceb8d8f063dac323f8b6 Mon Sep 17 00:00:00 2001 From: Joe Fernandez Date: Thu, 27 Jun 2024 14:38:11 -0700 Subject: [PATCH 1/2] Updating available Gemma model information --- site/en/gemma/docs/gemma_chat.ipynb | 70 +++++++++-------------------- 1 file changed, 21 insertions(+), 49 deletions(-) diff --git a/site/en/gemma/docs/gemma_chat.ipynb b/site/en/gemma/docs/gemma_chat.ipynb index 89934f1ba..716268590 100644 --- a/site/en/gemma/docs/gemma_chat.ipynb +++ b/site/en/gemma/docs/gemma_chat.ipynb @@ -2,7 +2,6 @@ "cells": [ { "cell_type": "markdown", - "id": "JLOS92ZAhfFj", "metadata": { "id": "JLOS92ZAhfFj" }, @@ -17,7 +16,6 @@ }, { "cell_type": "markdown", - "id": "Tce3stUlHN0L", "metadata": { "id": "Tce3stUlHN0L" }, @@ -28,7 +26,6 @@ { "cell_type": "code", "execution_count": null, - "id": "tuOe1ymfHZPu", "metadata": { "cellView": "form", "id": "tuOe1ymfHZPu" @@ -50,7 +47,6 @@ }, { "cell_type": "markdown", - "id": "4qxv4Sn9b8CE", "metadata": { "id": "4qxv4Sn9b8CE" }, @@ -73,7 +69,6 @@ }, { "cell_type": "markdown", - "id": "402c3d8a", "metadata": { "id": "402c3d8a" }, @@ -83,7 +78,6 @@ }, { "cell_type": "markdown", - "id": "b686fd95", "metadata": { "id": "b686fd95" }, @@ -97,7 +91,6 @@ }, { "cell_type": "markdown", - "id": "29732090", "metadata": { "id": "29732090" }, @@ -107,7 +100,6 @@ }, { "cell_type": "markdown", - "id": "QQ6W7NzRe1VM", "metadata": { "id": "QQ6W7NzRe1VM" }, @@ -126,7 +118,6 @@ }, { "cell_type": "markdown", - "id": "_gN-IVRC3dQe", "metadata": { "id": "_gN-IVRC3dQe" }, @@ -139,7 +130,6 @@ { "cell_type": "code", "execution_count": null, - "id": "DrBoa_Urw9Vx", "metadata": { "id": "DrBoa_Urw9Vx" }, @@ -156,7 +146,6 @@ }, { "cell_type": "markdown", - "id": "z9oy3QUmXtSd", "metadata": { "id": "z9oy3QUmXtSd" }, @@ -169,9 +158,9 @@ { "cell_type": "code", "execution_count": null, - "id": "a973dd7a", "metadata": { - "id": "a973dd7a" + "id": "a973dd7a", + "outputId": "b8d13141-99b4-4077-e59c-710bdf83e6a8" }, "outputs": [ { @@ -220,7 +209,6 @@ }, { "cell_type": "markdown", - "id": "Wme8666dUPVR", "metadata": { "id": "Wme8666dUPVR" }, @@ -233,7 +221,6 @@ { "cell_type": "code", "execution_count": null, - "id": "67d12d2d", "metadata": { "id": "67d12d2d" }, @@ -250,7 +237,6 @@ }, { "cell_type": "markdown", - "id": "Ajm_SGWTUjVd", "metadata": { "id": "Ajm_SGWTUjVd" }, @@ -263,7 +249,6 @@ { "cell_type": "code", "execution_count": null, - "id": "3lyn9FxPUok8", "metadata": { "id": "3lyn9FxPUok8" }, @@ -278,7 +263,6 @@ }, { "cell_type": "markdown", - "id": "39dc9d5b", "metadata": { "id": "39dc9d5b" }, @@ -293,9 +277,9 @@ { "cell_type": "code", "execution_count": null, - "id": "c86dc8fe", "metadata": { - "id": "c86dc8fe" + "id": "c86dc8fe", + "outputId": "c53952c5-6d34-4d44-9ce7-38aafa802dbd" }, "outputs": [ { @@ -326,7 +310,6 @@ }, { "cell_type": "markdown", - "id": "tcCv0BSdVFv9", "metadata": { "id": "tcCv0BSdVFv9" }, @@ -337,7 +320,6 @@ }, { "cell_type": "markdown", - "id": "bLNx8AoeVe-a", "metadata": { "id": "bLNx8AoeVe-a" }, @@ -348,9 +330,9 @@ { "cell_type": "code", "execution_count": null, - "id": "3MorieIpVksu", "metadata": { - "id": "3MorieIpVksu" + "id": "3MorieIpVksu", + "outputId": "d4947722-10a0-4957-e18b-62da9c3dd1ba" }, "outputs": [ { @@ -483,7 +465,6 @@ }, { "cell_type": "markdown", - "id": "ArZPOzFpVp6S", "metadata": { "id": "ArZPOzFpVp6S" }, @@ -495,7 +476,6 @@ }, { "cell_type": "markdown", - "id": "1WpS39TBYql9", "metadata": { "id": "1WpS39TBYql9" }, @@ -506,7 +486,6 @@ { "cell_type": "code", "execution_count": null, - "id": "3-obTC1jZGpZ", "metadata": { "id": "3-obTC1jZGpZ" }, @@ -529,7 +508,6 @@ }, { "cell_type": "markdown", - "id": "5ca54e8c", "metadata": { "id": "5ca54e8c" }, @@ -548,7 +526,6 @@ }, { "cell_type": "markdown", - "id": "9583dfd1", "metadata": { "id": "9583dfd1" }, @@ -559,7 +536,6 @@ { "cell_type": "code", "execution_count": null, - "id": "e4e9a187", "metadata": { "id": "e4e9a187" }, @@ -635,7 +611,6 @@ }, { "cell_type": "markdown", - "id": "9hmJS4h4ZmiP", "metadata": { "id": "9hmJS4h4ZmiP" }, @@ -648,9 +623,9 @@ { "cell_type": "code", "execution_count": null, - "id": "b1913181", "metadata": { - "id": "b1913181" + "id": "b1913181", + "outputId": "0e2245c8-a251-4f98-fe0f-597622238274" }, "outputs": [ { @@ -673,7 +648,6 @@ }, { "cell_type": "markdown", - "id": "ODKxUPP2Zuqy", "metadata": { "id": "ODKxUPP2Zuqy" }, @@ -684,9 +658,9 @@ { "cell_type": "code", "execution_count": null, - "id": "7448005b", "metadata": { - "id": "7448005b" + "id": "7448005b", + "outputId": "9b07fc2e-8345-48f3-f6ba-24fc3be27777" }, "outputs": [ { @@ -709,9 +683,9 @@ { "cell_type": "code", "execution_count": null, - "id": "0973ff54", "metadata": { - "id": "0973ff54" + "id": "0973ff54", + "outputId": "06c0938d-36cc-4363-dda4-8a8a206f1560" }, "outputs": [ { @@ -734,9 +708,9 @@ { "cell_type": "code", "execution_count": null, - "id": "a0c51f42", "metadata": { - "id": "a0c51f42" + "id": "a0c51f42", + "outputId": "5ccfbb43-73bf-484a-ac55-5af501be67a9" }, "outputs": [ { @@ -758,7 +732,6 @@ }, { "cell_type": "markdown", - "id": "51a33627", "metadata": { "id": "51a33627" }, @@ -769,9 +742,9 @@ { "cell_type": "code", "execution_count": null, - "id": "221c0817", "metadata": { - "id": "221c0817" + "id": "221c0817", + "outputId": "4988820b-6003-4768-c827-4275b4582631" }, "outputs": [ { @@ -823,7 +796,6 @@ }, { "cell_type": "markdown", - "id": "1c8ece6c", "metadata": { "id": "1c8ece6c" }, @@ -834,9 +806,9 @@ { "cell_type": "code", "execution_count": null, - "id": "e48f4ca1", "metadata": { - "id": "e48f4ca1" + "id": "e48f4ca1", + "outputId": "b9937bfd-4411-4c17-e7a9-38affbdb3fc4" }, "outputs": [ { @@ -939,7 +911,6 @@ }, { "cell_type": "markdown", - "id": "9693c66f", "metadata": { "id": "9693c66f" }, @@ -961,7 +932,8 @@ "accelerator": "GPU", "colab": { "name": "gemma_chat.ipynb", - "toc_visible": true + "toc_visible": true, + "provenance": [] }, "kernelspec": { "display_name": "Python 3", @@ -970,4 +942,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} +} \ No newline at end of file From df81e3d098560dc63b0cf79143dd9bc44531c1f4 Mon Sep 17 00:00:00 2001 From: Joe Fernandez Date: Thu, 27 Jun 2024 14:44:50 -0700 Subject: [PATCH 2/2] Updating available Gemma 2 model information --- site/en/gemma/docs/gemma_chat.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site/en/gemma/docs/gemma_chat.ipynb b/site/en/gemma/docs/gemma_chat.ipynb index 716268590..9c3421519 100644 --- a/site/en/gemma/docs/gemma_chat.ipynb +++ b/site/en/gemma/docs/gemma_chat.ipynb @@ -314,8 +314,9 @@ "id": "tcCv0BSdVFv9" }, "source": [ - "`from_preset` instantiates the model from a preset architecture and weights. In the code above, the string `\"gemma_1.1_instruct_2b_en\"` specifies the preset architecture: a Gemma instruction-tuned model with 2 billion parameters.\n", - "This model variant is fine-tuned for conversations and to answer questions in a more natural manner.\n" + "The `GemmaCausalLM.from_preset()` function instantiates the model from a preset architecture and weights. In the code above, the string `\"gemma_1.1_instruct_2b_en\"` specifies the preset the Gemma 2B model with 2 billion parameters. Gemma models with [7B, 9B, and 27B parameters](https://ai.google.com/gemma/docs/get_started#models-list) are also available. You can find the code strings for Gemma models in their **Model Variation** listings on [Kaggle](https://www.kaggle.com/models/google/gemma).\n", + "\n", + "Note: To run the larger models in Colab, you need access to the premium GPUs available in paid plans. Alternatively, you can perform inferences using Kaggle notebooks or Google Cloud projects." ] }, {