Skip to content

Commit 039616c

Browse files
fix: ugly output for training
1 parent 469ee0d commit 039616c

File tree

1 file changed

+2
-90
lines changed

1 file changed

+2
-90
lines changed

notebooks/example.ipynb

Lines changed: 2 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,98 +1515,10 @@
15151515
},
15161516
{
15171517
"cell_type": "code",
1518-
"execution_count": 58,
1518+
"execution_count": null,
15191519
"id": "52",
15201520
"metadata": {},
1521-
"outputs": [
1522-
{
1523-
"name": "stderr",
1524-
"output_type": "stream",
1525-
"text": [
1526-
"GPU available: True (cuda), used: True\n",
1527-
"TPU available: False, using: 0 TPU cores\n",
1528-
"HPU available: False, using: 0 HPUs\n",
1529-
"/home/onyxia/work/torchTextClassifiers/.venv/lib/python3.13/site-packages/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py:76: Starting from v1.9.0, `tensorboardX` has been removed as a dependency of the `pytorch_lightning` package, due to potential conflicts with other packages in the ML ecosystem. For this reason, `logger=True` will use `CSVLogger` as the default logger, unless the `tensorboard` or `tensorboardX` packages are found. Please `pip install lightning[extra]` or one of them to enable TensorBoard support by default\n",
1530-
"LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]\n",
1531-
"\n",
1532-
" | Name | Type | Params | Mode \n",
1533-
"----------------------------------------------------------------\n",
1534-
"0 | model | TextClassificationModel | 684 K | train\n",
1535-
"1 | loss | CrossEntropyLoss | 0 | train\n",
1536-
"2 | accuracy_fn | MulticlassAccuracy | 0 | train\n",
1537-
"----------------------------------------------------------------\n",
1538-
"684 K Trainable params\n",
1539-
"0 Non-trainable params\n",
1540-
"684 K Total params\n",
1541-
"2.737 Total estimated model params size (MB)\n",
1542-
"24 Modules in train mode\n",
1543-
"0 Modules in eval mode\n"
1544-
]
1545-
},
1546-
{
1547-
"data": {
1548-
"application/vnd.jupyter.widget-view+json": {
1549-
"model_id": "74a9facf92bf4a88b92b01f2845d53af",
1550-
"version_major": 2,
1551-
"version_minor": 0
1552-
},
1553-
"text/plain": [
1554-
"Sanity Checking: | | 0/? [00:00<?, ?it/s]"
1555-
]
1556-
},
1557-
"metadata": {},
1558-
"output_type": "display_data"
1559-
},
1560-
{
1561-
"data": {
1562-
"application/vnd.jupyter.widget-view+json": {
1563-
"model_id": "cfb49cd8b27248f39e10bc866594a1ef",
1564-
"version_major": 2,
1565-
"version_minor": 0
1566-
},
1567-
"text/plain": [
1568-
"Training: | | 0/? [00:00<?, ?it/s]"
1569-
]
1570-
},
1571-
"metadata": {},
1572-
"output_type": "display_data"
1573-
},
1574-
{
1575-
"data": {
1576-
"application/vnd.jupyter.widget-view+json": {
1577-
"model_id": "d35d08bead3744049d5082f0d4f60a91",
1578-
"version_major": 2,
1579-
"version_minor": 0
1580-
},
1581-
"text/plain": [
1582-
"Validation: | | 0/? [00:00<?, ?it/s]"
1583-
]
1584-
},
1585-
"metadata": {},
1586-
"output_type": "display_data"
1587-
},
1588-
{
1589-
"data": {
1590-
"application/vnd.jupyter.widget-view+json": {
1591-
"model_id": "95160d21162d41cc9ceae8988d5e788d",
1592-
"version_major": 2,
1593-
"version_minor": 0
1594-
},
1595-
"text/plain": [
1596-
"Validation: | | 0/? [00:00<?, ?it/s]"
1597-
]
1598-
},
1599-
"metadata": {},
1600-
"output_type": "display_data"
1601-
},
1602-
{
1603-
"name": "stderr",
1604-
"output_type": "stream",
1605-
"text": [
1606-
"`Trainer.fit` stopped: `max_epochs=2` reached.\n"
1607-
]
1608-
}
1609-
],
1521+
"outputs": [],
16101522
"source": [
16111523
"ttc.train(\n",
16121524
" X_train=X_train,\n",

0 commit comments

Comments
 (0)