-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support fine-tuning of NLU tasks (#284)
Co-authored-by: lorcanzhang <[email protected]> Co-authored-by: luchun <[email protected]> Co-authored-by: csunny <[email protected]>
- Loading branch information
1 parent
91fe094
commit 1c50727
Showing
103 changed files
with
48,808 additions
and
5,008 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
SHELL=/bin/bash | ||
VENV = venv | ||
|
||
# Detect the operating system and set the virtualenv bin directory | ||
ifeq ($(OS),Windows_NT) | ||
VENV_BIN=$(VENV)/Scripts | ||
else | ||
VENV_BIN=$(VENV)/bin | ||
endif | ||
|
||
setup: $(VENV)/bin/activate | ||
|
||
$(VENV)/bin/activate: $(VENV)/.venv-timestamp | ||
|
||
$(VENV)/.venv-timestamp: src/dbgpt-hub-nlu/setup.py requirements | ||
# Create new virtual environment if setup.py has changed | ||
python3 -m venv $(VENV) | ||
$(VENV_BIN)/pip install --upgrade pip | ||
$(VENV_BIN)/pip install -r requirements/lint-requirements.txt | ||
touch $(VENV)/.venv-timestamp | ||
|
||
|
||
.PHONY: fmt | ||
fmt: setup ## Format Python code | ||
# TODO: Use isort to sort Python imports. | ||
# https://github.com/PyCQA/isort | ||
$(VENV_BIN)/isort src/ | ||
# https://github.com/psf/black | ||
$(VENV_BIN)/black --extend-exclude="examples/notebook" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.