| Just wheels for the horde colab, built natively | |
| Dunno why I even did this, tbh, when most of the processing is on the gpu... | |
| I was *trying* to cross-compile build native packages with similar optimizations for my tablet, but I can't figure it out. Cross compiling is a pitfa. | |
| ``` | |
| %cd /content/ | |
| !rm -rf /content/AI-Horde-Worker /content/pip | |
| !git clone https://github.com/db0/AI-Horde-Worker.git | |
| %cd /content/AI-Horde-Worker | |
| #!apt install nano aria2 libcairo2-dev libjpeg-dev libgif-dev htop llvm clang | |
| !CFLAGS='-mtune=native -march=native -mcpu=native O3 -g -DNDEBUG' MAX_JOBS=4 pip wheel -r requirements.txt --wheel-dir=/content/pip | |
| !CFLAGS='-mtune=native -march=native -mcpu=native O3 -g -DNDEBUG' MAX_JOBS=4 pip install -r requirements.txt --no-index --find-links /content/pip | |
| ``` | |
| That's it. It really does depend on the colab machines being exactly the same. |