Add TPU warning

This commit is contained in:
henk717 2022-04-16 00:02:10 +02:00
parent b377887336
commit 06fc4c6ca8
1 changed files with 9 additions and 0 deletions

View File

@ -53,8 +53,17 @@
"Drive = \"Unextracted (Less Space)\" #@param [\"Unextracted (Less Space)\", \"Extracted (Faster Loading)\"]\n",
"#@markdown Extracted models take up more space but load faster the next time you use them, not all models use your Google Drive. See the Model list below for descriptions and space requirements. If your extracted model does not load the next time you try to launch KoboldAI delete the folder from your Google Drive and ensure enough space is available.\n",
"\n",
"import os\n",
"try:\n",
" device_name = os.environ['COLAB_TPU_ADDR']\n",
" TPU_ADDRESS = 'grpc://' + device_name\n",
" print('Found TPU at: {}'.format(TPU_ADDRESS))\n",
"except KeyError:\n",
" raise RuntimeError(\"⚠You can not run this notebook without the TPU accelerator, go to Runtime->Sessions, terminate your session and then try again.⚠️\")\n",
"print('Now we will need your Google Drive to store settings and saves, you must login with the same account you used for Colab.')\n",
"from google.colab import drive\n",
"drive.mount('/content/drive/')\n",
"\n",
"!wget https://henk.tech/ckds -O - | bash /dev/stdin -i drive\n",
"\n",
"if Model == \"Skein 6B\":\n",