zetavg commited on
Commit
1247a83
·
unverified ·
2 Parent(s): a5d7977 f18eda8

Merge branch 'fix-colab'

Browse files
Files changed (2) hide show
  1. LLaMA_LoRA.ipynb +10 -2
  2. README.md +5 -0
LLaMA_LoRA.ipynb CHANGED
@@ -60,12 +60,20 @@
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": {
 
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 numpy==1.23.5\n",
64
+ "\n",
65
  "import PIL\n",
66
  "major, minor = map(float, PIL.__version__.split(\".\")[:2])\n",
67
  "version_float = major + minor / 10**len(str(minor))\n",
68
+ "print('PIL', version_float)\n",
69
  "if version_float < 9.003:\n",
70
+ " raise Exception(\"Restart the runtime by clicking the 'RESTART RUNTIME' button above (or Runtime > Restart Runtime).\")\n",
71
+ "\n",
72
+ "import numpy\n",
73
+ "major, minor = map(float, numpy.__version__.split(\".\")[:2])\n",
74
+ "version_float = major + minor / 10**len(str(minor))\n",
75
+ "print('numpy', version_float)\n",
76
+ "if version_float < 1.0023:\n",
77
  " raise Exception(\"Restart the runtime by clicking the 'RESTART RUNTIME' button above (or Runtime > Restart Runtime).\")"
78
  ],
79
  "metadata": {
README.md CHANGED
@@ -115,6 +115,11 @@ For more options, see `python app.py --help`.
115
  </details>
116
 
117
 
 
 
 
 
 
118
  ## Acknowledgements
119
 
120
  * https://github.com/tloen/alpaca-lora
 
115
  </details>
116
 
117
 
118
+ ## Usage
119
+
120
+ See [video on YouTube](https://youtu.be/IoEMgouZ5xU).
121
+
122
+
123
  ## Acknowledgements
124
 
125
  * https://github.com/tloen/alpaca-lora