Skip to content

Distribute and run LLMs with a single file.

Get toolchain working well on Apple Silicon

Justine Tunney8ce07b531484
diff --git a/build/bootstrap/ctags b/build/bootstrap/ctags
deleted file mode 100755
index 5393c997..00000000
Binary files a/build/bootstrap/ctags and /dev/null differ
diff --git a/build/bootstrap/mkdeps b/build/bootstrap/mkdeps
deleted file mode 100755
index bd83725f..00000000
Binary files a/build/bootstrap/mkdeps and /dev/null differ
diff --git a/build/config.mk b/build/config.mk
index c500d103..a9978b62 100644
--- a/build/config.mk
+++ b/build/config.mk
@@ -1,7 +1,7 @@
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
-PREFIX = fatcosmo
+PREFIX = cosmo
AR = $(PREFIX)ar
CC = $(PREFIX)cc
diff --git a/build/ctags b/build/ctags
deleted file mode 100755
index 275f1aae..00000000
--- a/build/ctags
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec build/bootstrap/ctags "$@"
diff --git a/build/deps.mk b/build/deps.mk
index d449d238..1e148ebc 100644
--- a/build/deps.mk
+++ b/build/deps.mk
@@ -5,7 +5,7 @@ SRCS = $(foreach x,$(PKGS),$($(x)_SRCS))
HDRS = $(foreach x,$(PKGS),$($(x)_HDRS))
o/$(MODE)/depend: $(SRCS) $(HDRS)
- build/mkdeps -o $@ -r o/$(MODE)/ $(SRCS) $(HDRS)
+ mkdeps -o $@ -r o/$(MODE)/ $(SRCS) $(HDRS)
$(SRCS):
$(HDRS):
diff --git a/build/mkdeps b/build/mkdeps
deleted file mode 100755
index c90914fb..00000000
--- a/build/mkdeps
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec build/bootstrap/mkdeps "$@"
diff --git a/build/tags.mk b/build/tags.mk
index 2b1d6f96..5e2a0c73 100644
--- a/build/tags.mk
+++ b/build/tags.mk
@@ -12,11 +12,11 @@ tags: TAGS HTAGS
TAGS: o/$(MODE)/tags-srcs.txt $(SRCS)
@rm -f $@
- build/ctags $(TAGSFLAGS) -L $< -o $@
+ ctags $(TAGSFLAGS) -L $< -o $@
HTAGS: o/$(MODE)/tags-hdrs.txt $(HDRS)
@rm -f $@
- build/htags build/ctags -L $< -o $@
+ build/htags ctags -L $< -o $@
o/$(MODE)/tags-srcs.txt: $(call uniq,$(foreach x,$(SRCS),$(dir $(x))))
@mkdir -p $(@D)
diff --git a/llama.cpp/cpucheck.c b/llama.cpp/cpucheck.c
index dd9b0110..c7b5865e 100644
--- a/llama.cpp/cpucheck.c
+++ b/llama.cpp/cpucheck.c
@@ -26,6 +26,9 @@ static int on_missing_feature(const char *name) {
* microarchitecture flags only get passed to that specific object
*/
void llama_cpucheck(void) {
+ if (X86_NEED(SSE3) && !X86_CHECK(SSE3)) {
+ on_missing_feature("SSE3");
+ }
if (X86_NEED(SSSE3) && !X86_CHECK(SSSE3)) {
on_missing_feature("SSSE3");
}
@@ -38,9 +41,6 @@ void llama_cpucheck(void) {
if (X86_NEED(FMA) && !X86_CHECK(FMA)) {
on_missing_feature("FMA");
}
- if (X86_NEED(SSE3) && !X86_CHECK(SSE3)) {
- on_missing_feature("SSE3");
- }
if (X86_NEED(F16C) && !X86_CHECK(F16C)) {
on_missing_feature("F16C");
}
diff --git a/llama.cpp/llama_util.h b/llama.cpp/llama_util.h
deleted file mode 100755
index e69de29b..00000000