From 5a43a3a321b0f877a8de91ec34ec22ab5bad1aee Mon Sep 17 00:00:00 2001 From: Sourab Mangrulkar <13534540+pacman100@users.noreply.github.com> Date: Mon, 6 Feb 2023 18:57:13 +0530 Subject: [PATCH] seq cls examples update --- examples/sequence_classification/LoRA.ipynb | 1182 ++++------------- .../sequence_classification/P_Tuning.ipynb | 1070 +++------------ .../Prompt_Tuning.ipynb | 923 +++---------- .../prefix_tuning.ipynb | 940 ++++--------- src/peft/peft_model.py | 16 +- 5 files changed, 903 insertions(+), 3228 deletions(-) diff --git a/examples/sequence_classification/LoRA.ipynb b/examples/sequence_classification/LoRA.ipynb index 018fbd9..e9dd6da 100644 --- a/examples/sequence_classification/LoRA.ipynb +++ b/examples/sequence_classification/LoRA.ipynb @@ -5,7 +5,23 @@ "execution_count": 1, "id": "a9935ae2", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "===================================BUG REPORT===================================\n", + "Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues\n", + "For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link\n", + "================================================================================\n", + "CUDA SETUP: CUDA runtime path found: /home/sourab/miniconda3/envs/ml/lib/libcudart.so\n", + "CUDA SETUP: Highest compute capability among GPUs detected: 7.5\n", + "CUDA SETUP: Detected CUDA version 117\n", + "CUDA SETUP: Loading binary /home/sourab/miniconda3/envs/ml/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda117.so...\n" + ] + } + ], "source": [ "import argparse\n", "import os\n", @@ -60,6 +76,20 @@ "id": "c2697d07", "metadata": {}, "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "0f74797387a941cbb0709487b8808eba", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Downloading readme: 0%| | 0.00/27.9k [00:00