zetavg commited on
Commit
e200f8c
1 Parent(s): 4354315
Files changed (1) hide show
  1. LLaMA_LoRA.ipynb +21 -2
LLaMA_LoRA.ipynb CHANGED
@@ -6,7 +6,6 @@
6
  "provenance": [],
7
  "private_outputs": true,
8
  "toc_visible": true,
9
- "authorship_tag": "ABX9TyMHMc4PwWLbRlhFol+WRzoT",
10
  "include_colab_link": true
11
  },
12
  "kernelspec": {
@@ -55,6 +54,26 @@
55
  "execution_count": null,
56
  "outputs": []
57
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  {
59
  "cell_type": "markdown",
60
  "source": [
@@ -220,7 +239,7 @@
220
  "source": [
221
  "![ ! -d llama_lora ] && git clone -b {llama_lora_project_branch} --filter=tree:0 {llama_lora_project_url} llama_lora\n",
222
  "!cd llama_lora && git add --all && git stash && git fetch origin {llama_lora_project_branch} && git checkout {llama_lora_project_branch} && git reset origin/{llama_lora_project_branch} --hard\n",
223
- "![ ! -f llama-lora-requirements-installed ] && cd llama_lora && pip uninstall Pillow -y && pip install -r requirements.lock.txt && touch ../llama-lora-requirements-installed"
224
  ],
225
  "metadata": {
226
  "id": "JGYz2VDoAzC8"
 
6
  "provenance": [],
7
  "private_outputs": true,
8
  "toc_visible": true,
 
9
  "include_colab_link": true
10
  },
11
  "kernelspec": {
 
54
  "execution_count": null,
55
  "outputs": []
56
  },
57
+ {
58
+ "cell_type": "code",
59
+ "source": [
60
+ "# @title A small workaround { display-mode: \"form\" }\n",
61
+ "# @markdown Don't panic if you see an error here. Just click the `RESTART RUNTIME` button in the output below, then Run All again.\n",
62
+ "# @markdown The error will disappear on the next run.\n",
63
+ "!pip install Pillow==9.3.0\n",
64
+ "import PIL\n",
65
+ "major, minor = map(float, PIL.__version__.split(\".\")[:2])\n",
66
+ "version_float = major + minor / 10**len(str(minor))\n",
67
+ "print(version_float)\n",
68
+ "if version_float < 9.003:\n",
69
+ " raise Exception(\"Restart the runtime by clicking the 'RESTART RUNTIME' button above (or Runtime > Restart Runtime).\")"
70
+ ],
71
+ "metadata": {
72
+ "id": "XcJ4WO3KhOX1"
73
+ },
74
+ "execution_count": null,
75
+ "outputs": []
76
+ },
77
  {
78
  "cell_type": "markdown",
79
  "source": [
 
239
  "source": [
240
  "![ ! -d llama_lora ] && git clone -b {llama_lora_project_branch} --filter=tree:0 {llama_lora_project_url} llama_lora\n",
241
  "!cd llama_lora && git add --all && git stash && git fetch origin {llama_lora_project_branch} && git checkout {llama_lora_project_branch} && git reset origin/{llama_lora_project_branch} --hard\n",
242
+ "![ ! -f llama-lora-requirements-installed ] && cd llama_lora && pip install -r requirements.lock.txt && touch ../llama-lora-requirements-installed"
243
  ],
244
  "metadata": {
245
  "id": "JGYz2VDoAzC8"