Spaces:
Runtime error
Runtime error
zetavg
commited on
Commit
•
f18eda8
1
Parent(s):
fdcd724
resolves #2 numpy version mismatch on colab
Browse files- LLaMA_LoRA.ipynb +10 -2
- README.md +5 -0
LLaMA_LoRA.ipynb
CHANGED
@@ -60,11 +60,19 @@
|
|
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 |
],
|
|
|
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 < 9.003:\n",
|
77 |
" raise Exception(\"Restart the runtime by clicking the 'RESTART RUNTIME' button above (or Runtime > Restart Runtime).\")"
|
78 |
],
|
README.md
CHANGED
@@ -114,6 +114,11 @@ For more options, see `python app.py --help`.
|
|
114 |
</details>
|
115 |
|
116 |
|
|
|
|
|
|
|
|
|
|
|
117 |
## Acknowledgements
|
118 |
|
119 |
* https://github.com/tloen/alpaca-lora
|
|
|
114 |
</details>
|
115 |
|
116 |
|
117 |
+
## Usage
|
118 |
+
|
119 |
+
See [video on YouTube](https://youtu.be/IoEMgouZ5xU).
|
120 |
+
|
121 |
+
|
122 |
## Acknowledgements
|
123 |
|
124 |
* https://github.com/tloen/alpaca-lora
|