-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
Transformers-MusicGen --------- Signed-off-by: Dave <[email protected]>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
TRANSFORMERS_MUSICGEN_CONDA_PATH = "transformers-musicgen.yml" | ||
|
||
ifeq ($(BUILD_TYPE), cublas) | ||
TRANSFORMERS_MUSICGEN_CONDA_PATH = "transformers-musicgen-nvidia.yml" | ||
endif | ||
|
||
.PHONY: transformers-musicgen | ||
transformers-musicgen: | ||
@echo "Creating virtual environment..." | ||
@conda env create --name transformers-musicgen --file $(TRANSFORMERS_MUSICGEN_CONDA_PATH) | ||
@echo "Virtual environment created." | ||
|
||
.PHONY: run | ||
run: | ||
@echo "Running transformers..." | ||
bash run.sh | ||
@echo "transformers run." | ||
|
||
# It is not working well by using command line. It only6 works with IDE like VSCode. | ||
.PHONY: test | ||
test: | ||
@echo "Testing transformers..." | ||
bash test.sh | ||
@echo "transformers tested." |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Creating a separate environment for the transformers project | ||
|
||
``` | ||
make transformers-musicgen | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.