From 7b46d4561f4be30fe751f0e93fdbb37cd6cbea95 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 30 Mar 2023 10:47:03 -0700 Subject: [PATCH] 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 309d35a587..9e58cb8a27 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 0000000000..a99c6a2b70 --- /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