This commit is contained in:
younesbelkada
2023-02-15 08:01:56 +00:00
parent 42a793e2f5
commit afa7739131
@@ -69,7 +69,7 @@
],
"source": [
"!pip install -q bitsandbytes datasets accelerate loralib\n",
"!pip install -q git+https://github.com/huggingface/transformers.git@main git+https://github.com/younesbelkada/peft.git@int8-wrapper"
"!pip install -q git+https://github.com/huggingface/transformers.git@main git+https://github.com/huggingface/peft.git@main"
]
},
{
@@ -761,6 +761,7 @@
"text_column = \"sentence\"\n",
"label_column = \"text_label\"\n",
"max_length=128\n",
"\n",
"def preprocess_function(examples):\n",
" inputs = examples[text_column]\n",
" targets = examples[label_column]\n",
@@ -1285,7 +1286,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.8.16"
},
"vscode": {
"interpreter": {