special colab build
This commit is contained in:
parent
2b32b170a1
commit
2f16eccb89
2 changed files with 5 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -118,7 +118,11 @@ ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686))
|
||||||
FULLCFLAGS += -mavx2 -msse3 -mfma -mf16c -mavx
|
FULLCFLAGS += -mavx2 -msse3 -mfma -mf16c -mavx
|
||||||
else
|
else
|
||||||
# if not on windows, they are clearly building it themselves, so lets just use whatever is supported
|
# if not on windows, they are clearly building it themselves, so lets just use whatever is supported
|
||||||
|
ifdef LLAMA_COLAB
|
||||||
|
CFLAGS += -mavx2 -msse3 -mfma -mf16c -mavx
|
||||||
|
else
|
||||||
CFLAGS += -march=native -mtune=native
|
CFLAGS += -march=native -mtune=native
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifneq ($(filter ppc64%,$(UNAME_M)),)
|
ifneq ($(filter ppc64%,$(UNAME_M)),)
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
"!echo Finding prebuilt binary for {kvers}\r\n",
|
"!echo Finding prebuilt binary for {kvers}\r\n",
|
||||||
"!wget -O dlfile.tmp https://kcppcolab.concedo.workers.dev/?{kvers} && mv dlfile.tmp koboldcpp_cublas.so\r\n",
|
"!wget -O dlfile.tmp https://kcppcolab.concedo.workers.dev/?{kvers} && mv dlfile.tmp koboldcpp_cublas.so\r\n",
|
||||||
"!test -f koboldcpp_cublas.so && echo Prebuilt Binary Exists || echo Prebuilt Binary Does Not Exist\r\n",
|
"!test -f koboldcpp_cublas.so && echo Prebuilt Binary Exists || echo Prebuilt Binary Does Not Exist\r\n",
|
||||||
"!test -f koboldcpp_cublas.so && echo Build Skipped || make koboldcpp_cublas LLAMA_CUBLAS=1\r\n",
|
"!test -f koboldcpp_cublas.so && echo Build Skipped || make koboldcpp_cublas LLAMA_CUBLAS=1 LLAMA_COLAB=1\r\n",
|
||||||
"!cp koboldcpp_cublas.so koboldcpp_cublas.dat\r\n",
|
"!cp koboldcpp_cublas.so koboldcpp_cublas.dat\r\n",
|
||||||
"!apt install aria2 -y\r\n",
|
"!apt install aria2 -y\r\n",
|
||||||
"!aria2c -x 10 -o model.ggml --summary-interval=5 --download-result=default --allow-overwrite=true --file-allocation=none $Model\r\n",
|
"!aria2c -x 10 -o model.ggml --summary-interval=5 --download-result=default --allow-overwrite=true --file-allocation=none $Model\r\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue