From c9b7129426e309a4ef70b52f02a08c6b2d78d8cc Mon Sep 17 00:00:00 2001 From: heispv Date: Sat, 25 May 2024 21:40:17 +0200 Subject: [PATCH] Update File --- course/en/chapter3/section3_tf.ipynb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/course/en/chapter3/section3_tf.ipynb b/course/en/chapter3/section3_tf.ipynb index cd1f4cf6..396e3034 100644 --- a/course/en/chapter3/section3_tf.ipynb +++ b/course/en/chapter3/section3_tf.ipynb @@ -20,7 +20,19 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install datasets evaluate transformers[sentencepiece]" + "!pip install datasets evaluate transformers[sentencepiece]\n", + "!pip install --upgrade tensorflow\n", + "!pip install --upgrade tf-keras" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "os.environ['TF_USE_LEGACY_KERAS'] = '1'" ] }, { @@ -195,6 +207,9 @@ "colab": { "name": "Fine-tuning a model with the Trainer API or Keras", "provenance": [] + }, + "language_info": { + "name": "python" } }, "nbformat": 4,