Text Generation
PEFT
Safetensors
dfurman commited on
Commit
e82b6ab
1 Parent(s): 064e82d

Upload finetune_falcon7b_oasst1_with_bnb_peft.ipynb

Browse files
finetune_falcon7b_oasst1_with_bnb_peft.ipynb CHANGED
@@ -69,30 +69,6 @@
69
  "!pip install -q git+https://github.com/huggingface/transformers.git@main git+https://github.com/huggingface/peft.git"
70
  ]
71
  },
72
- {
73
- "cell_type": "code",
74
- "execution_count": 2,
75
- "metadata": {
76
- "colab": {
77
- "base_uri": "https://localhost:8080/"
78
- },
79
- "id": "-Q9oFzZdcD6T",
80
- "outputId": "046873a7-32aa-458b-94c3-2ab760033b56"
81
- },
82
- "outputs": [
83
- {
84
- "name": "stdout",
85
- "output_type": "stream",
86
- "text": [
87
- "Mounted at /content/drive\n"
88
- ]
89
- }
90
- ],
91
- "source": [
92
- "from google.colab import drive\n",
93
- "drive.mount('/content/drive')"
94
- ]
95
- },
96
  {
97
  "cell_type": "code",
98
  "execution_count": 9,
@@ -1152,18 +1128,6 @@
1152
  "print(message_df.iloc[i])"
1153
  ]
1154
  },
1155
- {
1156
- "cell_type": "code",
1157
- "execution_count": 17,
1158
- "metadata": {
1159
- "id": "BAKcwzAloBLC"
1160
- },
1161
- "outputs": [],
1162
- "source": [
1163
- "one_message_tree = df.query(f\"message_tree_id == '00df03d2-7e6b-4b98-a537-776567d10601'\").sort_values(\"created_date\")\n",
1164
- "# one_message_tree\n"
1165
- ]
1166
- },
1167
  {
1168
  "cell_type": "code",
1169
  "execution_count": 18,
@@ -1561,7 +1525,7 @@
1561
  " fp16=True,\n",
1562
  " save_total_limit=4,\n",
1563
  " logging_steps=25,\n",
1564
- " output_dir=\"/content/drive/MyDrive/Colab Files/WM/falcon-chat-7b\",\n",
1565
  " save_strategy='epoch',\n",
1566
  " optim=\"paged_adamw_8bit\",\n",
1567
  " lr_scheduler_type = 'cosine',\n",
 
69
  "!pip install -q git+https://github.com/huggingface/transformers.git@main git+https://github.com/huggingface/peft.git"
70
  ]
71
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  {
73
  "cell_type": "code",
74
  "execution_count": 9,
 
1128
  "print(message_df.iloc[i])"
1129
  ]
1130
  },
 
 
 
 
 
 
 
 
 
 
 
 
1131
  {
1132
  "cell_type": "code",
1133
  "execution_count": 18,
 
1525
  " fp16=True,\n",
1526
  " save_total_limit=4,\n",
1527
  " logging_steps=25,\n",
1528
+ " output_dir=\"./outputs\",\n",
1529
  " save_strategy='epoch',\n",
1530
  " optim=\"paged_adamw_8bit\",\n",
1531
  " lr_scheduler_type = 'cosine',\n",