mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-11 13:02:56 +00:00
parent
db5ac715f3
commit
a9a875ee2b
@ -2,7 +2,7 @@ ARG GO_VERSION=1.20
|
|||||||
ARG DEBIAN_VERSION=11
|
ARG DEBIAN_VERSION=11
|
||||||
FROM golang:$GO_VERSION as builder
|
FROM golang:$GO_VERSION as builder
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
ARG GO_LLAMA_CPP_TAG=llama.cpp-2f7c8e0
|
ARG GO_LLAMA_CPP_TAG=llama.cpp-4ad7313
|
||||||
RUN git clone -b $GO_LLAMA_CPP_TAG --recurse-submodules https://github.com/go-skynet/go-llama.cpp
|
RUN git clone -b $GO_LLAMA_CPP_TAG --recurse-submodules https://github.com/go-skynet/go-llama.cpp
|
||||||
RUN cd go-llama.cpp && make libbinding.a
|
RUN cd go-llama.cpp && make libbinding.a
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
|
4
Makefile
4
Makefile
@ -2,7 +2,7 @@ GOCMD=go
|
|||||||
GOTEST=$(GOCMD) test
|
GOTEST=$(GOCMD) test
|
||||||
GOVET=$(GOCMD) vet
|
GOVET=$(GOCMD) vet
|
||||||
BINARY_NAME=llama-cli
|
BINARY_NAME=llama-cli
|
||||||
GOLLAMA_VERSION?=llama.cpp-8b67998
|
GOLLAMA_VERSION?=llama.cpp-4ad7313
|
||||||
|
|
||||||
GREEN := $(shell tput -Txterm setaf 2)
|
GREEN := $(shell tput -Txterm setaf 2)
|
||||||
YELLOW := $(shell tput -Txterm setaf 3)
|
YELLOW := $(shell tput -Txterm setaf 3)
|
||||||
@ -49,4 +49,4 @@ help: ## Show this help.
|
|||||||
@awk 'BEGIN {FS = ":.*?## "} { \
|
@awk 'BEGIN {FS = ":.*?## "} { \
|
||||||
if (/^[a-zA-Z_-]+:.*?##.*$$/) {printf " ${YELLOW}%-20s${GREEN}%s${RESET}\n", $$1, $$2} \
|
if (/^[a-zA-Z_-]+:.*?##.*$$/) {printf " ${YELLOW}%-20s${GREEN}%s${RESET}\n", $$1, $$2} \
|
||||||
else if (/^## .*$$/) {printf " ${CYAN}%s${RESET}\n", substr($$1,4)} \
|
else if (/^## .*$$/) {printf " ${CYAN}%s${RESET}\n", substr($$1,4)} \
|
||||||
}' $(MAKEFILE_LIST)
|
}' $(MAKEFILE_LIST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user