From 94eb8ff825979eba8d91b8cdea9f1fb048ea5dce Mon Sep 17 00:00:00 2001 From: henk717 Date: Sun, 19 Mar 2023 14:52:14 +0100 Subject: [PATCH] TPU Message --- colab/TPU.ipynb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/colab/TPU.ipynb b/colab/TPU.ipynb index 131b134a..e432b958 100644 --- a/colab/TPU.ipynb +++ b/colab/TPU.ipynb @@ -13,6 +13,19 @@ { "cell_type": "markdown", "source": [ + "# GOOGLE HAS BROKEN SUPPORT FOR MESH TRANSFORMERS JAX IN THEIR DRIVER, THIS MESSAGE WILL BE REMOVED ONCE THE NOTEBOOK WORKS AGAIN\n", + "---\n", + "Are you a developer familair with Jax? We could use some help.\n", + "Our Mesh Transformers Jax fork resides here (but unfortunately VE-Forbryderne has gone missing) : https://github.com/VE-FORBRYDERNE/mesh-transformer-jax\n", + "\n", + "This is combined with the TPU backend code you can find here: https://github.com/KoboldAI/KoboldAI-Client/blob/main/tpu_mtj_backend.py\n", + "\n", + "So far we know the driver initialization issues can be resolved when a newer version of Jax is used combined with a slight edit to tpu_mtj_backend.py to use Jax's built in code for driver intialization (Which is not present in the older version we currently use, hence that part being in our file).\n", + "\n", + "As far as we understand the issue is that xmap was broken in newer versions, and MTJ makes use of it. If someone can port this part of the code to be compatible with the newer Jax versions you can save this notebook!\n", + "\n", + "(Or Google, if you are reading this. Please reintroduce the old 0.1 compatibility since you broke an entire ecosystem of Mesh Transformers Jax users, which has historic value because it is the original implementation of GPT-J. There also do not seem to be alternatives that have the same amount of performance and model compatibility).\n", + "\n", "# Welcome to KoboldAI on Google Colab, TPU Edition!\n", "KoboldAI is a powerful and easy way to use a variety of AI based text generation experiences. You can use it to write stories, blog posts, play a text adventure game, use it like a chatbot and more! In some cases it might even help you with an assignment or programming task (But always make sure the information the AI mentions is correct, it loves to make stuff up).\n", "\n",