2024-04-13 16:59:21 +00:00
|
|
|
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
|
2024-10-25 10:25:29 +00:00
|
|
|
parler-tts:
|
2024-04-13 16:59:21 +00:00
|
|
|
@echo "Installing $(CONDA_ENV_PATH)..."
|
|
|
|
bash install.sh $(CONDA_ENV_PATH)
|
2024-10-25 10:25:29 +00:00
|
|
|
$(MAKE) protogen
|
2024-04-13 16:59:21 +00:00
|
|
|
|
|
|
|
.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:
|
2024-10-25 10:25:29 +00:00
|
|
|
bash protogen.sh
|
2024-05-10 13:08:08 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: protogen-clean
|
2024-05-11 16:32:46 +00:00
|
|
|
$(RM) -r venv __pycache__
|