From f948a9b4aecb149ac80c989a126703e9121a4bde Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 30 Mar 2023 10:47:03 -0700 Subject: [PATCH 1/2] build notebooks --- .github/workflows/build_documentation.yml | 3 ++- docs/source/_config.py | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docs/source/_config.py diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 309d35a..9e58cb8 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -13,5 +13,6 @@ jobs: with: commit_sha: ${{ github.sha }} package: peft + notebook_folder: peft_docs secrets: - token: ${{ secrets.HUGGINGFACE_PUSH }} + token: ${{ secrets.HUGGINGFACE_PUSH }} \ No newline at end of file diff --git a/docs/source/_config.py b/docs/source/_config.py new file mode 100644 index 0000000..a99c6a2 --- /dev/null +++ b/docs/source/_config.py @@ -0,0 +1,7 @@ +# docstyle-ignore +INSTALL_CONTENT = """ +# PEFT installation +! pip install peft accelerate transformers +# To install from source instead of the last release, comment the command above and uncomment the following one. +# ! pip install git+https://github.com/huggingface/peft.git +""" \ No newline at end of file From cfe992f0f9fe647fa2b0f011e8d6b7dc93d02ecb Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Fri, 31 Mar 2023 16:54:12 -0700 Subject: [PATCH 2/2] make style --- docs/source/_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_config.py b/docs/source/_config.py index a99c6a2..2974756 100644 --- a/docs/source/_config.py +++ b/docs/source/_config.py @@ -4,4 +4,4 @@ INSTALL_CONTENT = """ ! pip install peft accelerate transformers # To install from source instead of the last release, comment the command above and uncomment the following one. # ! pip install git+https://github.com/huggingface/peft.git -""" \ No newline at end of file +"""