mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
0fdff26924
* feat(parler-tts): Add new backend
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
* feat(parler-tts): try downgrade protobuf
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
* feat(parler-tts): add parler conda env
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
* Revert "feat(parler-tts): try downgrade protobuf"
This reverts commit bd5941d5cfc00676b45a99f71debf3c34249cf3c.
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
* deps: add grpc
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
* fix: try to gen proto with same environment
* workaround
* Revert "fix: try to gen proto with same environment"
This reverts commit 998c745e2f
.
* Workaround fixup
---------
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Co-authored-by: Dave <dave@gray101.com>
39 lines
993 B
Makefile
39 lines
993 B
Makefile
export CONDA_ENV_PATH = "parler.yml"
|
|
SKIP_CONDA?=0
|
|
ifeq ($(BUILD_TYPE), cublas)
|
|
export CONDA_ENV_PATH = "parler-nvidia.yml"
|
|
endif
|
|
|
|
# Intel GPU are supposed to have dependencies installed in the main python
|
|
# environment, so we skip conda installation for SYCL builds.
|
|
# https://github.com/intel/intel-extension-for-pytorch/issues/538
|
|
ifneq (,$(findstring sycl,$(BUILD_TYPE)))
|
|
export SKIP_CONDA=1
|
|
endif
|
|
|
|
.PHONY: parler-tts
|
|
parler-tts: protogen
|
|
@echo "Installing $(CONDA_ENV_PATH)..."
|
|
bash install.sh $(CONDA_ENV_PATH)
|
|
|
|
.PHONY: run
|
|
run: protogen
|
|
@echo "Running transformers..."
|
|
bash run.sh
|
|
@echo "transformers run."
|
|
|
|
.PHONY: test
|
|
test: protogen
|
|
@echo "Testing transformers..."
|
|
bash test.sh
|
|
@echo "transformers tested."
|
|
|
|
.PHONY: protogen
|
|
protogen: backend_pb2_grpc.py backend_pb2.py
|
|
|
|
.PHONY: protogen-clean
|
|
protogen-clean:
|
|
$(RM) backend_pb2_grpc.py backend_pb2.py
|
|
|
|
backend_pb2_grpc.py backend_pb2.py:
|
|
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|