Merge branch 'feature/devcontainer' of https://github.com/go-skynet/llama-cli into feature/devcontainer

This commit is contained in:
Marc R Kellerman 2023-04-15 16:05:55 -07:00
commit d5a5571d0e
2 changed files with 5 additions and 12 deletions

15
.gitignore vendored
View file

@ -1,16 +1,9 @@
# go-llama build artifacts # go-llama build artifacts
go-llama.cpp go-llama
binding.o
libbinding.a
# llama models
models
# llama-cli build binary # llama-cli build binary
llama-cli llama-cli
# make test reports # Ignore models
checkstyle-report.xml models/*.bin
profile.cov models/ggml-*
coverage.xml
yamllint-checkstyle.xml

View file

@ -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-8b67998 ARG GO_LLAMA_CPP_TAG=llama.cpp-2f7c8e0
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 ./