End of training
Browse files
.ipynb_checkpoints/fine-tune-whisper-non-streaming-zh-TW-checkpoint.ipynb
CHANGED
@@ -1106,11 +1106,11 @@
|
|
1106 |
},
|
1107 |
{
|
1108 |
"cell_type": "code",
|
1109 |
-
"execution_count":
|
1110 |
"id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
|
1111 |
"metadata": {
|
1112 |
"id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
|
1113 |
-
"scrolled":
|
1114 |
},
|
1115 |
"outputs": [
|
1116 |
{
|
@@ -1134,8 +1134,8 @@
|
|
1134 |
"\n",
|
1135 |
" <div>\n",
|
1136 |
" \n",
|
1137 |
-
" <progress value='
|
1138 |
-
" [
|
1139 |
" </div>\n",
|
1140 |
" <table border=\"1\" class=\"dataframe\">\n",
|
1141 |
" <thead>\n",
|
@@ -1159,14 +1159,14 @@
|
|
1159 |
" <td>0.101187</td>\n",
|
1160 |
" <td>7.590416</td>\n",
|
1161 |
" </tr>\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
1162 |
" </tbody>\n",
|
1163 |
-
"</table><p
|
1164 |
-
" <div>\n",
|
1165 |
-
" \n",
|
1166 |
-
" <progress value='330' max='2355' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
|
1167 |
-
" [ 330/2355 07:22 < 45:21, 0.74 it/s]\n",
|
1168 |
-
" </div>\n",
|
1169 |
-
" "
|
1170 |
],
|
1171 |
"text/plain": [
|
1172 |
"<IPython.core.display.HTML object>"
|
@@ -1200,7 +1200,28 @@
|
|
1200 |
"The following columns in the evaluation set don't have a corresponding argument in `WhisperForConditionalGeneration.forward` and have been ignored: input_length. If input_length are not expected by `WhisperForConditionalGeneration.forward`, you can safely ignore this message.\n",
|
1201 |
"***** Running Evaluation *****\n",
|
1202 |
" Num examples = 4709\n",
|
1203 |
-
" Batch size = 2\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1204 |
]
|
1205 |
}
|
1206 |
],
|
@@ -1220,7 +1241,7 @@
|
|
1220 |
},
|
1221 |
{
|
1222 |
"cell_type": "code",
|
1223 |
-
"execution_count":
|
1224 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663",
|
1225 |
"metadata": {
|
1226 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663"
|
@@ -1230,7 +1251,7 @@
|
|
1230 |
"kwargs = {\n",
|
1231 |
" \"dataset_tags\": \"mozilla-foundation/common_voice_11_0\",\n",
|
1232 |
" \"dataset\": \"mozilla-foundation/common_voice_11_0\", # a 'pretty' name for the training dataset\n",
|
1233 |
-
"
|
1234 |
" \"model_name\": \"Whisper Medium TW - Augmented\", # a 'pretty' name for your model\n",
|
1235 |
" \"finetuned_from\": \"openai/whisper-medium\",\n",
|
1236 |
" \"tasks\": \"automatic-speech-recognition\",\n",
|
@@ -1250,7 +1271,7 @@
|
|
1250 |
},
|
1251 |
{
|
1252 |
"cell_type": "code",
|
1253 |
-
"execution_count":
|
1254 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585",
|
1255 |
"metadata": {
|
1256 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585"
|
@@ -1264,12 +1285,39 @@
|
|
1264 |
"Configuration saved in ./config.json\n",
|
1265 |
"Model weights saved in ./pytorch_model.bin\n",
|
1266 |
"Feature extractor saved in ./preprocessor_config.json\n",
|
1267 |
-
"Several commits (
|
1268 |
"The progress bars may be unreliable.\n",
|
1269 |
-
"
|
1270 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1271 |
"\n"
|
1272 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1273 |
}
|
1274 |
],
|
1275 |
"source": [
|
|
|
1106 |
},
|
1107 |
{
|
1108 |
"cell_type": "code",
|
1109 |
+
"execution_count": 24,
|
1110 |
"id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
|
1111 |
"metadata": {
|
1112 |
"id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
|
1113 |
+
"scrolled": true
|
1114 |
},
|
1115 |
"outputs": [
|
1116 |
{
|
|
|
1134 |
"\n",
|
1135 |
" <div>\n",
|
1136 |
" \n",
|
1137 |
+
" <progress value='606' max='1000' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
|
1138 |
+
" [ 606/1000 4:07:06 < 2:41:11, 0.04 it/s, Epoch 1.72/3]\n",
|
1139 |
" </div>\n",
|
1140 |
" <table border=\"1\" class=\"dataframe\">\n",
|
1141 |
" <thead>\n",
|
|
|
1159 |
" <td>0.101187</td>\n",
|
1160 |
" <td>7.590416</td>\n",
|
1161 |
" </tr>\n",
|
1162 |
+
" <tr>\n",
|
1163 |
+
" <td>600</td>\n",
|
1164 |
+
" <td>0.078400</td>\n",
|
1165 |
+
" <td>0.095110</td>\n",
|
1166 |
+
" <td>7.486474</td>\n",
|
1167 |
+
" </tr>\n",
|
1168 |
" </tbody>\n",
|
1169 |
+
"</table><p>"
|
|
|
|
|
|
|
|
|
|
|
|
|
1170 |
],
|
1171 |
"text/plain": [
|
1172 |
"<IPython.core.display.HTML object>"
|
|
|
1200 |
"The following columns in the evaluation set don't have a corresponding argument in `WhisperForConditionalGeneration.forward` and have been ignored: input_length. If input_length are not expected by `WhisperForConditionalGeneration.forward`, you can safely ignore this message.\n",
|
1201 |
"***** Running Evaluation *****\n",
|
1202 |
" Num examples = 4709\n",
|
1203 |
+
" Batch size = 2\n",
|
1204 |
+
"Saving model checkpoint to ./checkpoint-600\n",
|
1205 |
+
"Configuration saved in ./checkpoint-600/config.json\n",
|
1206 |
+
"Model weights saved in ./checkpoint-600/pytorch_model.bin\n",
|
1207 |
+
"Feature extractor saved in ./checkpoint-600/preprocessor_config.json\n",
|
1208 |
+
"Feature extractor saved in ./preprocessor_config.json\n"
|
1209 |
+
]
|
1210 |
+
},
|
1211 |
+
{
|
1212 |
+
"ename": "KeyboardInterrupt",
|
1213 |
+
"evalue": "",
|
1214 |
+
"output_type": "error",
|
1215 |
+
"traceback": [
|
1216 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
1217 |
+
"\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)",
|
1218 |
+
"Cell \u001b[0;32mIn[24], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mtrainer\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtrain\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n",
|
1219 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/transformers/trainer.py:1535\u001b[0m, in \u001b[0;36mTrainer.train\u001b[0;34m(self, resume_from_checkpoint, trial, ignore_keys_for_eval, **kwargs)\u001b[0m\n\u001b[1;32m 1530\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mmodel_wrapped \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mmodel\n\u001b[1;32m 1532\u001b[0m inner_training_loop \u001b[38;5;241m=\u001b[39m find_executable_batch_size(\n\u001b[1;32m 1533\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_inner_training_loop, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_train_batch_size, args\u001b[38;5;241m.\u001b[39mauto_find_batch_size\n\u001b[1;32m 1534\u001b[0m )\n\u001b[0;32m-> 1535\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43minner_training_loop\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 1536\u001b[0m \u001b[43m \u001b[49m\u001b[43margs\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1537\u001b[0m \u001b[43m \u001b[49m\u001b[43mresume_from_checkpoint\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresume_from_checkpoint\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1538\u001b[0m \u001b[43m \u001b[49m\u001b[43mtrial\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtrial\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1539\u001b[0m \u001b[43m \u001b[49m\u001b[43mignore_keys_for_eval\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mignore_keys_for_eval\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1540\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n",
|
1220 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/transformers/trainer.py:1783\u001b[0m, in \u001b[0;36mTrainer._inner_training_loop\u001b[0;34m(self, batch_size, args, resume_from_checkpoint, trial, ignore_keys_for_eval)\u001b[0m\n\u001b[1;32m 1781\u001b[0m tr_loss_step \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mtraining_step(model, inputs)\n\u001b[1;32m 1782\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[0;32m-> 1783\u001b[0m tr_loss_step \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtraining_step\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmodel\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43minputs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 1785\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m (\n\u001b[1;32m 1786\u001b[0m args\u001b[38;5;241m.\u001b[39mlogging_nan_inf_filter\n\u001b[1;32m 1787\u001b[0m \u001b[38;5;129;01mand\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m is_torch_tpu_available()\n\u001b[1;32m 1788\u001b[0m \u001b[38;5;129;01mand\u001b[39;00m (torch\u001b[38;5;241m.\u001b[39misnan(tr_loss_step) \u001b[38;5;129;01mor\u001b[39;00m torch\u001b[38;5;241m.\u001b[39misinf(tr_loss_step))\n\u001b[1;32m 1789\u001b[0m ):\n\u001b[1;32m 1790\u001b[0m \u001b[38;5;66;03m# if loss is nan or inf simply add the average of previous logged losses\u001b[39;00m\n\u001b[1;32m 1791\u001b[0m tr_loss \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m tr_loss \u001b[38;5;241m/\u001b[39m (\u001b[38;5;241m1\u001b[39m \u001b[38;5;241m+\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mstate\u001b[38;5;241m.\u001b[39mglobal_step \u001b[38;5;241m-\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_globalstep_last_logged)\n",
|
1221 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/transformers/trainer.py:2541\u001b[0m, in \u001b[0;36mTrainer.training_step\u001b[0;34m(self, model, inputs)\u001b[0m\n\u001b[1;32m 2538\u001b[0m loss \u001b[38;5;241m=\u001b[39m loss \u001b[38;5;241m/\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39margs\u001b[38;5;241m.\u001b[39mgradient_accumulation_steps\n\u001b[1;32m 2540\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mdo_grad_scaling:\n\u001b[0;32m-> 2541\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mscaler\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mscale\u001b[49m\u001b[43m(\u001b[49m\u001b[43mloss\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbackward\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 2542\u001b[0m \u001b[38;5;28;01melif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39muse_apex:\n\u001b[1;32m 2543\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m amp\u001b[38;5;241m.\u001b[39mscale_loss(loss, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39moptimizer) \u001b[38;5;28;01mas\u001b[39;00m scaled_loss:\n",
|
1222 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/torch/_tensor.py:487\u001b[0m, in \u001b[0;36mTensor.backward\u001b[0;34m(self, gradient, retain_graph, create_graph, inputs)\u001b[0m\n\u001b[1;32m 477\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m has_torch_function_unary(\u001b[38;5;28mself\u001b[39m):\n\u001b[1;32m 478\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m handle_torch_function(\n\u001b[1;32m 479\u001b[0m Tensor\u001b[38;5;241m.\u001b[39mbackward,\n\u001b[1;32m 480\u001b[0m (\u001b[38;5;28mself\u001b[39m,),\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 485\u001b[0m inputs\u001b[38;5;241m=\u001b[39minputs,\n\u001b[1;32m 486\u001b[0m )\n\u001b[0;32m--> 487\u001b[0m \u001b[43mtorch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mautograd\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbackward\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 488\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mgradient\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mretain_graph\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mcreate_graph\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43minputs\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43minputs\u001b[49m\n\u001b[1;32m 489\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n",
|
1223 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/torch/autograd/__init__.py:197\u001b[0m, in \u001b[0;36mbackward\u001b[0;34m(tensors, grad_tensors, retain_graph, create_graph, grad_variables, inputs)\u001b[0m\n\u001b[1;32m 192\u001b[0m retain_graph \u001b[38;5;241m=\u001b[39m create_graph\n\u001b[1;32m 194\u001b[0m \u001b[38;5;66;03m# The reason we repeat same the comment below is that\u001b[39;00m\n\u001b[1;32m 195\u001b[0m \u001b[38;5;66;03m# some Python versions print out the first line of a multi-line function\u001b[39;00m\n\u001b[1;32m 196\u001b[0m \u001b[38;5;66;03m# calls in the traceback and some print out the last line\u001b[39;00m\n\u001b[0;32m--> 197\u001b[0m \u001b[43mVariable\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_execution_engine\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrun_backward\u001b[49m\u001b[43m(\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;66;43;03m# Calls into the C++ engine to run the backward pass\u001b[39;49;00m\n\u001b[1;32m 198\u001b[0m \u001b[43m \u001b[49m\u001b[43mtensors\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mgrad_tensors_\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mretain_graph\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mcreate_graph\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43minputs\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 199\u001b[0m \u001b[43m \u001b[49m\u001b[43mallow_unreachable\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43maccumulate_grad\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\u001b[43m)\u001b[49m\n",
|
1224 |
+
"\u001b[0;31mKeyboardInterrupt\u001b[0m: "
|
1225 |
]
|
1226 |
}
|
1227 |
],
|
|
|
1241 |
},
|
1242 |
{
|
1243 |
"cell_type": "code",
|
1244 |
+
"execution_count": 27,
|
1245 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663",
|
1246 |
"metadata": {
|
1247 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663"
|
|
|
1251 |
"kwargs = {\n",
|
1252 |
" \"dataset_tags\": \"mozilla-foundation/common_voice_11_0\",\n",
|
1253 |
" \"dataset\": \"mozilla-foundation/common_voice_11_0\", # a 'pretty' name for the training dataset\n",
|
1254 |
+
"# \"language\": \"zh\",\n",
|
1255 |
" \"model_name\": \"Whisper Medium TW - Augmented\", # a 'pretty' name for your model\n",
|
1256 |
" \"finetuned_from\": \"openai/whisper-medium\",\n",
|
1257 |
" \"tasks\": \"automatic-speech-recognition\",\n",
|
|
|
1271 |
},
|
1272 |
{
|
1273 |
"cell_type": "code",
|
1274 |
+
"execution_count": 28,
|
1275 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585",
|
1276 |
"metadata": {
|
1277 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585"
|
|
|
1285 |
"Configuration saved in ./config.json\n",
|
1286 |
"Model weights saved in ./pytorch_model.bin\n",
|
1287 |
"Feature extractor saved in ./preprocessor_config.json\n",
|
1288 |
+
"Several commits (2) will be pushed upstream.\n",
|
1289 |
"The progress bars may be unreliable.\n",
|
1290 |
+
"remote: ----------------------------------------------------------\u001b[0;31m \n",
|
1291 |
+
"remote: Sorry, your push was rejected during YAML metadata verification: \n",
|
1292 |
+
"remote: - Error: \"language[0]\" must only contain lowercase characters \n",
|
1293 |
+
"remote: - Error: \"language[0]\" with value \"zh-TW\" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like \"code\", \"multilingual\". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.\u001b[0;32m \n",
|
1294 |
+
"remote: ---------------------------------------------------------- \n",
|
1295 |
+
"remote: Please find the documentation at: \n",
|
1296 |
+
"remote: https://huggingface.co/docs/hub/model-cards#model-card-metadata\u001b[0;0m \n",
|
1297 |
+
"remote: ---------------------------------------------------------- \n",
|
1298 |
+
"To https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n",
|
1299 |
+
" ! [remote rejected] main -> main (pre-receive hook declined)\n",
|
1300 |
+
"error: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n",
|
1301 |
"\n"
|
1302 |
]
|
1303 |
+
},
|
1304 |
+
{
|
1305 |
+
"ename": "OSError",
|
1306 |
+
"evalue": "remote: ----------------------------------------------------------\u001b[0;31m \nremote: Sorry, your push was rejected during YAML metadata verification: \nremote: - Error: \"language[0]\" must only contain lowercase characters \nremote: - Error: \"language[0]\" with value \"zh-TW\" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like \"code\", \"multilingual\". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.\u001b[0;32m \nremote: ---------------------------------------------------------- \nremote: Please find the documentation at: \nremote: https://huggingface.co/docs/hub/model-cards#model-card-metadata\u001b[0;0m \nremote: ---------------------------------------------------------- \nTo https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n ! [remote rejected] main -> main (pre-receive hook declined)\nerror: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n",
|
1307 |
+
"output_type": "error",
|
1308 |
+
"traceback": [
|
1309 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
1310 |
+
"\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)",
|
1311 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/huggingface_hub/repository.py:1207\u001b[0m, in \u001b[0;36mRepository.git_push\u001b[0;34m(self, upstream, blocking, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1206\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m return_code:\n\u001b[0;32m-> 1207\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError(\n\u001b[1;32m 1208\u001b[0m return_code, process\u001b[38;5;241m.\u001b[39margs, output\u001b[38;5;241m=\u001b[39mstdout, stderr\u001b[38;5;241m=\u001b[39mstderr\n\u001b[1;32m 1209\u001b[0m )\n\u001b[1;32m 1211\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError \u001b[38;5;28;01mas\u001b[39;00m exc:\n",
|
1312 |
+
"\u001b[0;31mCalledProcessError\u001b[0m: Command '['git', 'push', '--set-upstream', 'origin', 'main']' returned non-zero exit status 1.",
|
1313 |
+
"\nDuring handling of the above exception, another exception occurred:\n",
|
1314 |
+
"\u001b[0;31mOSError\u001b[0m Traceback (most recent call last)",
|
1315 |
+
"Cell \u001b[0;32mIn[28], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mtrainer\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpush_to_hub\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
|
1316 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/transformers/trainer.py:3492\u001b[0m, in \u001b[0;36mTrainer.push_to_hub\u001b[0;34m(self, commit_message, blocking, **kwargs)\u001b[0m\n\u001b[1;32m 3489\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mpush_in_progress\u001b[38;5;241m.\u001b[39m_process\u001b[38;5;241m.\u001b[39mkill()\n\u001b[1;32m 3490\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mpush_in_progress \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m-> 3492\u001b[0m git_head_commit_url \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrepo\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpush_to_hub\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 3493\u001b[0m \u001b[43m \u001b[49m\u001b[43mcommit_message\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcommit_message\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mblocking\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mblocking\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mauto_lfs_prune\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\n\u001b[1;32m 3494\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 3495\u001b[0m \u001b[38;5;66;03m# push separately the model card to be independant from the rest of the model\u001b[39;00m\n\u001b[1;32m 3496\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39margs\u001b[38;5;241m.\u001b[39mshould_save:\n",
|
1317 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/huggingface_hub/repository.py:1432\u001b[0m, in \u001b[0;36mRepository.push_to_hub\u001b[0;34m(self, commit_message, blocking, clean_ok, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1430\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mgit_add(auto_lfs_track\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n\u001b[1;32m 1431\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mgit_commit(commit_message)\n\u001b[0;32m-> 1432\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgit_push\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 1433\u001b[0m \u001b[43m \u001b[49m\u001b[43mupstream\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43mf\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43morigin \u001b[39;49m\u001b[38;5;132;43;01m{\u001b[39;49;00m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcurrent_branch\u001b[49m\u001b[38;5;132;43;01m}\u001b[39;49;00m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1434\u001b[0m \u001b[43m \u001b[49m\u001b[43mblocking\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mblocking\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1435\u001b[0m \u001b[43m \u001b[49m\u001b[43mauto_lfs_prune\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mauto_lfs_prune\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1436\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n",
|
1318 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/huggingface_hub/repository.py:1212\u001b[0m, in \u001b[0;36mRepository.git_push\u001b[0;34m(self, upstream, blocking, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1207\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError(\n\u001b[1;32m 1208\u001b[0m return_code, process\u001b[38;5;241m.\u001b[39margs, output\u001b[38;5;241m=\u001b[39mstdout, stderr\u001b[38;5;241m=\u001b[39mstderr\n\u001b[1;32m 1209\u001b[0m )\n\u001b[1;32m 1211\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError \u001b[38;5;28;01mas\u001b[39;00m exc:\n\u001b[0;32m-> 1212\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mEnvironmentError\u001b[39;00m(exc\u001b[38;5;241m.\u001b[39mstderr)\n\u001b[1;32m 1214\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m blocking:\n\u001b[1;32m 1216\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mstatus_method\u001b[39m():\n",
|
1319 |
+
"\u001b[0;31mOSError\u001b[0m: remote: ----------------------------------------------------------\u001b[0;31m \nremote: Sorry, your push was rejected during YAML metadata verification: \nremote: - Error: \"language[0]\" must only contain lowercase characters \nremote: - Error: \"language[0]\" with value \"zh-TW\" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like \"code\", \"multilingual\". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.\u001b[0;32m \nremote: ---------------------------------------------------------- \nremote: Please find the documentation at: \nremote: https://huggingface.co/docs/hub/model-cards#model-card-metadata\u001b[0;0m \nremote: ---------------------------------------------------------- \nTo https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n ! [remote rejected] main -> main (pre-receive hook declined)\nerror: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n"
|
1320 |
+
]
|
1321 |
}
|
1322 |
],
|
1323 |
"source": [
|
fine-tune-whisper-non-streaming-zh-TW.ipynb
CHANGED
@@ -1241,7 +1241,7 @@
|
|
1241 |
},
|
1242 |
{
|
1243 |
"cell_type": "code",
|
1244 |
-
"execution_count":
|
1245 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663",
|
1246 |
"metadata": {
|
1247 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663"
|
@@ -1251,7 +1251,7 @@
|
|
1251 |
"kwargs = {\n",
|
1252 |
" \"dataset_tags\": \"mozilla-foundation/common_voice_11_0\",\n",
|
1253 |
" \"dataset\": \"mozilla-foundation/common_voice_11_0\", # a 'pretty' name for the training dataset\n",
|
1254 |
-
"
|
1255 |
" \"model_name\": \"Whisper Medium TW - Augmented\", # a 'pretty' name for your model\n",
|
1256 |
" \"finetuned_from\": \"openai/whisper-medium\",\n",
|
1257 |
" \"tasks\": \"automatic-speech-recognition\",\n",
|
@@ -1271,7 +1271,7 @@
|
|
1271 |
},
|
1272 |
{
|
1273 |
"cell_type": "code",
|
1274 |
-
"execution_count":
|
1275 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585",
|
1276 |
"metadata": {
|
1277 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585"
|
@@ -1286,34 +1286,7 @@
|
|
1286 |
"Model weights saved in ./pytorch_model.bin\n",
|
1287 |
"Feature extractor saved in ./preprocessor_config.json\n",
|
1288 |
"Several commits (2) will be pushed upstream.\n",
|
1289 |
-
"The progress bars may be unreliable.\n"
|
1290 |
-
]
|
1291 |
-
},
|
1292 |
-
{
|
1293 |
-
"data": {
|
1294 |
-
"application/vnd.jupyter.widget-view+json": {
|
1295 |
-
"model_id": "b13a362f26fc4129ab2aaa35464fa212",
|
1296 |
-
"version_major": 2,
|
1297 |
-
"version_minor": 0
|
1298 |
-
},
|
1299 |
-
"text/plain": [
|
1300 |
-
"Upload file pytorch_model.bin: 0%| | 32.0k/2.85G [00:00<?, ?B/s]"
|
1301 |
-
]
|
1302 |
-
},
|
1303 |
-
"metadata": {},
|
1304 |
-
"output_type": "display_data"
|
1305 |
-
},
|
1306 |
-
{
|
1307 |
-
"name": "stderr",
|
1308 |
-
"output_type": "stream",
|
1309 |
-
"text": [
|
1310 |
-
"remote: Scanning LFS files for validity, may be slow... \n",
|
1311 |
-
"remote: LFS file scan complete. \n",
|
1312 |
-
"To https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n",
|
1313 |
-
" fef9a87..7a6740e main -> main\n",
|
1314 |
-
"\n",
|
1315 |
-
"Dropping the following result as it does not have all the necessary fields:\n",
|
1316 |
-
"{'task': {'name': 'Automatic Speech Recognition', 'type': 'automatic-speech-recognition'}, 'dataset': {'name': 'mozilla-foundation/common_voice_11_0', 'type': 'mozilla-foundation/common_voice_11_0', 'config': 'zh-TW', 'split': 'test', 'args': 'zh-TW'}}\n",
|
1317 |
"remote: ----------------------------------------------------------\u001b[0;31m \n",
|
1318 |
"remote: Sorry, your push was rejected during YAML metadata verification: \n",
|
1319 |
"remote: - Error: \"language[0]\" must only contain lowercase characters \n",
|
@@ -1325,31 +1298,26 @@
|
|
1325 |
"To https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n",
|
1326 |
" ! [remote rejected] main -> main (pre-receive hook declined)\n",
|
1327 |
"error: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n",
|
1328 |
-
"\n",
|
1329 |
-
"Error pushing update to the model card. Please read logs and retry.\n",
|
1330 |
-
"$remote: ----------------------------------------------------------\u001b[0;31m \n",
|
1331 |
-
"remote: Sorry, your push was rejected during YAML metadata verification: \n",
|
1332 |
-
"remote: - Error: \"language[0]\" must only contain lowercase characters \n",
|
1333 |
-
"remote: - Error: \"language[0]\" with value \"zh-TW\" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like \"code\", \"multilingual\". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.\u001b[0;32m \n",
|
1334 |
-
"remote: ---------------------------------------------------------- \n",
|
1335 |
-
"remote: Please find the documentation at: \n",
|
1336 |
-
"remote: https://huggingface.co/docs/hub/model-cards#model-card-metadata\u001b[0;0m \n",
|
1337 |
-
"remote: ---------------------------------------------------------- \n",
|
1338 |
-
"To https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n",
|
1339 |
-
" ! [remote rejected] main -> main (pre-receive hook declined)\n",
|
1340 |
-
"error: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n",
|
1341 |
"\n"
|
1342 |
]
|
1343 |
},
|
1344 |
{
|
1345 |
-
"
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1353 |
}
|
1354 |
],
|
1355 |
"source": [
|
|
|
1241 |
},
|
1242 |
{
|
1243 |
"cell_type": "code",
|
1244 |
+
"execution_count": 27,
|
1245 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663",
|
1246 |
"metadata": {
|
1247 |
"id": "c704f91e-241b-48c9-b8e0-f0da396a9663"
|
|
|
1251 |
"kwargs = {\n",
|
1252 |
" \"dataset_tags\": \"mozilla-foundation/common_voice_11_0\",\n",
|
1253 |
" \"dataset\": \"mozilla-foundation/common_voice_11_0\", # a 'pretty' name for the training dataset\n",
|
1254 |
+
"# \"language\": \"zh\",\n",
|
1255 |
" \"model_name\": \"Whisper Medium TW - Augmented\", # a 'pretty' name for your model\n",
|
1256 |
" \"finetuned_from\": \"openai/whisper-medium\",\n",
|
1257 |
" \"tasks\": \"automatic-speech-recognition\",\n",
|
|
|
1271 |
},
|
1272 |
{
|
1273 |
"cell_type": "code",
|
1274 |
+
"execution_count": 28,
|
1275 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585",
|
1276 |
"metadata": {
|
1277 |
"id": "d7030622-caf7-4039-939b-6195cdaa2585"
|
|
|
1286 |
"Model weights saved in ./pytorch_model.bin\n",
|
1287 |
"Feature extractor saved in ./preprocessor_config.json\n",
|
1288 |
"Several commits (2) will be pushed upstream.\n",
|
1289 |
+
"The progress bars may be unreliable.\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1290 |
"remote: ----------------------------------------------------------\u001b[0;31m \n",
|
1291 |
"remote: Sorry, your push was rejected during YAML metadata verification: \n",
|
1292 |
"remote: - Error: \"language[0]\" must only contain lowercase characters \n",
|
|
|
1298 |
"To https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n",
|
1299 |
" ! [remote rejected] main -> main (pre-receive hook declined)\n",
|
1300 |
"error: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1301 |
"\n"
|
1302 |
]
|
1303 |
},
|
1304 |
{
|
1305 |
+
"ename": "OSError",
|
1306 |
+
"evalue": "remote: ----------------------------------------------------------\u001b[0;31m \nremote: Sorry, your push was rejected during YAML metadata verification: \nremote: - Error: \"language[0]\" must only contain lowercase characters \nremote: - Error: \"language[0]\" with value \"zh-TW\" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like \"code\", \"multilingual\". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.\u001b[0;32m \nremote: ---------------------------------------------------------- \nremote: Please find the documentation at: \nremote: https://huggingface.co/docs/hub/model-cards#model-card-metadata\u001b[0;0m \nremote: ---------------------------------------------------------- \nTo https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n ! [remote rejected] main -> main (pre-receive hook declined)\nerror: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n",
|
1307 |
+
"output_type": "error",
|
1308 |
+
"traceback": [
|
1309 |
+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
1310 |
+
"\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)",
|
1311 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/huggingface_hub/repository.py:1207\u001b[0m, in \u001b[0;36mRepository.git_push\u001b[0;34m(self, upstream, blocking, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1206\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m return_code:\n\u001b[0;32m-> 1207\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError(\n\u001b[1;32m 1208\u001b[0m return_code, process\u001b[38;5;241m.\u001b[39margs, output\u001b[38;5;241m=\u001b[39mstdout, stderr\u001b[38;5;241m=\u001b[39mstderr\n\u001b[1;32m 1209\u001b[0m )\n\u001b[1;32m 1211\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError \u001b[38;5;28;01mas\u001b[39;00m exc:\n",
|
1312 |
+
"\u001b[0;31mCalledProcessError\u001b[0m: Command '['git', 'push', '--set-upstream', 'origin', 'main']' returned non-zero exit status 1.",
|
1313 |
+
"\nDuring handling of the above exception, another exception occurred:\n",
|
1314 |
+
"\u001b[0;31mOSError\u001b[0m Traceback (most recent call last)",
|
1315 |
+
"Cell \u001b[0;32mIn[28], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mtrainer\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpush_to_hub\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
|
1316 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/transformers/trainer.py:3492\u001b[0m, in \u001b[0;36mTrainer.push_to_hub\u001b[0;34m(self, commit_message, blocking, **kwargs)\u001b[0m\n\u001b[1;32m 3489\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mpush_in_progress\u001b[38;5;241m.\u001b[39m_process\u001b[38;5;241m.\u001b[39mkill()\n\u001b[1;32m 3490\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mpush_in_progress \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m-> 3492\u001b[0m git_head_commit_url \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrepo\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpush_to_hub\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 3493\u001b[0m \u001b[43m \u001b[49m\u001b[43mcommit_message\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcommit_message\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mblocking\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mblocking\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mauto_lfs_prune\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\n\u001b[1;32m 3494\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 3495\u001b[0m \u001b[38;5;66;03m# push separately the model card to be independant from the rest of the model\u001b[39;00m\n\u001b[1;32m 3496\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39margs\u001b[38;5;241m.\u001b[39mshould_save:\n",
|
1317 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/huggingface_hub/repository.py:1432\u001b[0m, in \u001b[0;36mRepository.push_to_hub\u001b[0;34m(self, commit_message, blocking, clean_ok, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1430\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mgit_add(auto_lfs_track\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n\u001b[1;32m 1431\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mgit_commit(commit_message)\n\u001b[0;32m-> 1432\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgit_push\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 1433\u001b[0m \u001b[43m \u001b[49m\u001b[43mupstream\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43mf\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43morigin \u001b[39;49m\u001b[38;5;132;43;01m{\u001b[39;49;00m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcurrent_branch\u001b[49m\u001b[38;5;132;43;01m}\u001b[39;49;00m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1434\u001b[0m \u001b[43m \u001b[49m\u001b[43mblocking\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mblocking\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1435\u001b[0m \u001b[43m \u001b[49m\u001b[43mauto_lfs_prune\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mauto_lfs_prune\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1436\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n",
|
1318 |
+
"File \u001b[0;32m~/whisper/lib/python3.8/site-packages/huggingface_hub/repository.py:1212\u001b[0m, in \u001b[0;36mRepository.git_push\u001b[0;34m(self, upstream, blocking, auto_lfs_prune)\u001b[0m\n\u001b[1;32m 1207\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError(\n\u001b[1;32m 1208\u001b[0m return_code, process\u001b[38;5;241m.\u001b[39margs, output\u001b[38;5;241m=\u001b[39mstdout, stderr\u001b[38;5;241m=\u001b[39mstderr\n\u001b[1;32m 1209\u001b[0m )\n\u001b[1;32m 1211\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m subprocess\u001b[38;5;241m.\u001b[39mCalledProcessError \u001b[38;5;28;01mas\u001b[39;00m exc:\n\u001b[0;32m-> 1212\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mEnvironmentError\u001b[39;00m(exc\u001b[38;5;241m.\u001b[39mstderr)\n\u001b[1;32m 1214\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m blocking:\n\u001b[1;32m 1216\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mstatus_method\u001b[39m():\n",
|
1319 |
+
"\u001b[0;31mOSError\u001b[0m: remote: ----------------------------------------------------------\u001b[0;31m \nremote: Sorry, your push was rejected during YAML metadata verification: \nremote: - Error: \"language[0]\" must only contain lowercase characters \nremote: - Error: \"language[0]\" with value \"zh-TW\" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like \"code\", \"multilingual\". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.\u001b[0;32m \nremote: ---------------------------------------------------------- \nremote: Please find the documentation at: \nremote: https://huggingface.co/docs/hub/model-cards#model-card-metadata\u001b[0;0m \nremote: ---------------------------------------------------------- \nTo https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented\n ! [remote rejected] main -> main (pre-receive hook declined)\nerror: failed to push some refs to 'https://huggingface.co/Scrya/whisper-medium-zh-TW-augmented'\n"
|
1320 |
+
]
|
1321 |
}
|
1322 |
],
|
1323 |
"source": [
|