Skip to content

Commit

Permalink
Allows to remove a backend from the list (#2721)
Browse files Browse the repository at this point in the history
* Allows to remove a backend from the list

Signed-off-by: Mauro Morales <[email protected]>

* Update Makefile

Co-authored-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
Co-authored-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mauromorales and mudler authored Jul 5, 2024
1 parent 17608ea commit a985d8c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ifeq ($(OS),Darwin)
# -lcblas removed: it seems to always be listed as a duplicate flag.
CGO_LDFLAGS += -framework Accelerate
endif
else
else
CGO_LDFLAGS_WHISPER+=-lgomp
endif

Expand Down Expand Up @@ -178,6 +178,8 @@ ALL_GRPC_BACKENDS+=backend-assets/grpc/rwkv
ALL_GRPC_BACKENDS+=backend-assets/grpc/whisper
ALL_GRPC_BACKENDS+=backend-assets/grpc/local-store
ALL_GRPC_BACKENDS+=$(OPTIONAL_GRPC)
# Use filter-out to remove the specified backends
ALL_GRPC_BACKENDS := $(filter-out $(SKIP_GRPC_BACKEND),$(ALL_GRPC_BACKENDS))

GRPC_BACKENDS?=$(ALL_GRPC_BACKENDS) $(OPTIONAL_GRPC)
TEST_PATHS?=./api/... ./pkg/... ./core/...
Expand Down Expand Up @@ -362,7 +364,7 @@ else
shasum -a 256 release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH) > release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH).sha256
endif

dist-cross-linux-arm64:
dist-cross-linux-arm64:
CMAKE_ARGS="$(CMAKE_ARGS) -DGGML_NATIVE=off" GRPC_BACKENDS="backend-assets/grpc/llama-cpp-fallback backend-assets/grpc/llama-cpp-grpc backend-assets/util/llama-cpp-rpc-server" \
STATIC=true $(MAKE) build
mkdir -p release
Expand Down Expand Up @@ -870,7 +872,7 @@ gen-assets:
$(GOCMD) run core/dependencies_manager/manager.go embedded/webui_static.yaml core/http/static/assets

## Documentation
docs/layouts/_default:
docs/layouts/_default:
mkdir -p docs/layouts/_default

docs/static/gallery.html: docs/layouts/_default
Expand All @@ -885,4 +887,4 @@ docs-clean:

.PHONY: docs
docs: docs/static/gallery.html
cd docs && hugo serve
cd docs && hugo serve

0 comments on commit a985d8c

Please sign in to comment.