Skip to content

Commit

Permalink
resolves #2 numpy version mismatch on colab
Browse files Browse the repository at this point in the history
  • Loading branch information
zetavg committed Apr 14, 2023
1 parent fdcd724 commit f18eda8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions LLaMA_LoRA.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@
"# @title A small workaround { display-mode: \"form\" }\n",
"# @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",
"# @markdown The error will disappear on the next run.\n",
"!pip install Pillow==9.3.0\n",
"!pip install Pillow==9.3.0 numpy==1.23.5\n",
"\n",
"import PIL\n",
"major, minor = map(float, PIL.__version__.split(\".\")[:2])\n",
"version_float = major + minor / 10**len(str(minor))\n",
"print(version_float)\n",
"print('PIL', version_float)\n",
"if version_float < 9.003:\n",
" raise Exception(\"Restart the runtime by clicking the 'RESTART RUNTIME' button above (or Runtime > Restart Runtime).\")\n",
"\n",
"import numpy\n",
"major, minor = map(float, numpy.__version__.split(\".\")[:2])\n",
"version_float = major + minor / 10**len(str(minor))\n",
"print('numpy', version_float)\n",
"if version_float < 9.003:\n",
" raise Exception(\"Restart the runtime by clicking the 'RESTART RUNTIME' button above (or Runtime > Restart Runtime).\")"
],
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ For more options, see `python app.py --help`.
</details>


## Usage

See [video on YouTube](https://youtu.be/IoEMgouZ5xU).


## Acknowledgements

* https://github.com/tloen/alpaca-lora
Expand Down

0 comments on commit f18eda8

Please sign in to comment.