diff --git a/ms-swift/.dev_scripts/build_docs.sh b/ms-swift/.dev_scripts/build_docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc76e6f4adc064113fa6970ad55aff3e950c647f --- /dev/null +++ b/ms-swift/.dev_scripts/build_docs.sh @@ -0,0 +1,8 @@ +pip install -r requirements/docs.txt +cd docs +rm -rf build + +# update api rst +#rm -rf source/api/ +#sphinx-apidoc --module-first -o source/api/ ../modelscope/ +make html diff --git a/ms-swift/.github/ISSUE_TEMPLATE/bug_report.md b/ms-swift/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000000000000000000000000000000000000..6af910ead435d312fbb189e4e13d56b83d8916cb --- /dev/null +++ b/ms-swift/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,19 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图) + + +**Your hardware and system info** +Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等) + + +**Additional context** +Add any other context about the problem here(在这里补充其他信息) diff --git a/ms-swift/.github/workflows/lint.yaml b/ms-swift/.github/workflows/lint.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ff84517d804331af7b876859defb435842d9e7d --- /dev/null +++ b/ms-swift/.github/workflows/lint.yaml @@ -0,0 +1,22 @@ +name: Lint test + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install pre-commit hook + run: | + pip install pre-commit + - name: Linting + run: pre-commit run --all-files diff --git a/ms-swift/dataset_OSST.json b/ms-swift/dataset_OSST.json new file mode 100644 index 0000000000000000000000000000000000000000..ca0ebdc48f6d59ad39a81b516e46778360f141d6 --- /dev/null +++ b/ms-swift/dataset_OSST.json @@ -0,0 +1,5914 @@ +{"messages": [{"role": "user", "content": "