Upload dongman/aaa.ipynb with huggingface_hub
Browse files- dongman/aaa.ipynb +129 -0
dongman/aaa.ipynb
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"id": "b5495761-57af-4a8e-b39b-eb7973dbd4cf",
|
| 7 |
+
"metadata": {
|
| 8 |
+
"scrolled": true
|
| 9 |
+
},
|
| 10 |
+
"outputs": [
|
| 11 |
+
{
|
| 12 |
+
"name": "stderr",
|
| 13 |
+
"output_type": "stream",
|
| 14 |
+
"text": [
|
| 15 |
+
"/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (2.2.2) or chardet (3.0.4) doesn't match a supported version!\n",
|
| 16 |
+
" warnings.warn(\"urllib3 ({}) or chardet ({}) doesn't match a supported \"\n",
|
| 17 |
+
"Failed to detect the name of this notebook, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable to enable code saving.\n",
|
| 18 |
+
"\u001b[34m\u001b[1mwandb\u001b[0m: Currently logged in as: \u001b[33mcn42083120024\u001b[0m (\u001b[33mrenwu\u001b[0m). Use \u001b[1m`wandb login --relogin`\u001b[0m to force relogin\n"
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"data": {
|
| 23 |
+
"text/html": [
|
| 24 |
+
"Tracking run with wandb version 0.17.4"
|
| 25 |
+
],
|
| 26 |
+
"text/plain": [
|
| 27 |
+
"<IPython.core.display.HTML object>"
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
"metadata": {},
|
| 31 |
+
"output_type": "display_data"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"data": {
|
| 35 |
+
"text/html": [
|
| 36 |
+
"Run data is saved locally in <code>/root/dongman/wandb/run-20240716_164646-xm6k0jf6</code>"
|
| 37 |
+
],
|
| 38 |
+
"text/plain": [
|
| 39 |
+
"<IPython.core.display.HTML object>"
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
"metadata": {},
|
| 43 |
+
"output_type": "display_data"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"data": {
|
| 47 |
+
"text/html": [
|
| 48 |
+
"Syncing run <strong><a href='https://wandb.ai/renwu/GPU-%E4%BD%BF%E7%94%A8%E7%8E%87-%E6%B8%A9%E5%BA%A6%E6%A3%80%E6%B5%8B/runs/xm6k0jf6' target=\"_blank\">eager-vortex-48</a></strong> to <a href='https://wandb.ai/renwu/GPU-%E4%BD%BF%E7%94%A8%E7%8E%87-%E6%B8%A9%E5%BA%A6%E6%A3%80%E6%B5%8B' target=\"_blank\">Weights & Biases</a> (<a href='https://wandb.me/run' target=\"_blank\">docs</a>)<br/>"
|
| 49 |
+
],
|
| 50 |
+
"text/plain": [
|
| 51 |
+
"<IPython.core.display.HTML object>"
|
| 52 |
+
]
|
| 53 |
+
},
|
| 54 |
+
"metadata": {},
|
| 55 |
+
"output_type": "display_data"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"data": {
|
| 59 |
+
"text/html": [
|
| 60 |
+
" View project at <a href='https://wandb.ai/renwu/GPU-%E4%BD%BF%E7%94%A8%E7%8E%87-%E6%B8%A9%E5%BA%A6%E6%A3%80%E6%B5%8B' target=\"_blank\">https://wandb.ai/renwu/GPU-%E4%BD%BF%E7%94%A8%E7%8E%87-%E6%B8%A9%E5%BA%A6%E6%A3%80%E6%B5%8B</a>"
|
| 61 |
+
],
|
| 62 |
+
"text/plain": [
|
| 63 |
+
"<IPython.core.display.HTML object>"
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"metadata": {},
|
| 67 |
+
"output_type": "display_data"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"data": {
|
| 71 |
+
"text/html": [
|
| 72 |
+
" View run at <a href='https://wandb.ai/renwu/GPU-%E4%BD%BF%E7%94%A8%E7%8E%87-%E6%B8%A9%E5%BA%A6%E6%A3%80%E6%B5%8B/runs/xm6k0jf6' target=\"_blank\">https://wandb.ai/renwu/GPU-%E4%BD%BF%E7%94%A8%E7%8E%87-%E6%B8%A9%E5%BA%A6%E6%A3%80%E6%B5%8B/runs/xm6k0jf6</a>"
|
| 73 |
+
],
|
| 74 |
+
"text/plain": [
|
| 75 |
+
"<IPython.core.display.HTML object>"
|
| 76 |
+
]
|
| 77 |
+
},
|
| 78 |
+
"metadata": {},
|
| 79 |
+
"output_type": "display_data"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"data": {
|
| 83 |
+
"text/plain": [
|
| 84 |
+
"['/root/dongman/wandb/run-20240716_164646-xm6k0jf6/files/dongman/打标的tag.zip']"
|
| 85 |
+
]
|
| 86 |
+
},
|
| 87 |
+
"execution_count": 1,
|
| 88 |
+
"metadata": {},
|
| 89 |
+
"output_type": "execute_result"
|
| 90 |
+
}
|
| 91 |
+
],
|
| 92 |
+
"source": [
|
| 93 |
+
"#!pip install wandb\n",
|
| 94 |
+
"import os\n",
|
| 95 |
+
"import wandb\n",
|
| 96 |
+
"# WandB登录\n",
|
| 97 |
+
"#os.system('wandb login 6cdd066d56acd416b1c1680133e37589511d81f7')\n",
|
| 98 |
+
"# 初始化WandB项目\n",
|
| 99 |
+
"wandb.init(project=\"GPU-使用率-温度检测\")\n",
|
| 100 |
+
"# Initialize a W&B run\n",
|
| 101 |
+
"\n",
|
| 102 |
+
"# Save the specified directory\n",
|
| 103 |
+
"wandb.save('/root/dongman/打标的tag.zip', base_path='/root')\n",
|
| 104 |
+
"\n"
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
],
|
| 108 |
+
"metadata": {
|
| 109 |
+
"kernelspec": {
|
| 110 |
+
"display_name": "Python 3 (ipykernel)",
|
| 111 |
+
"language": "python",
|
| 112 |
+
"name": "python3"
|
| 113 |
+
},
|
| 114 |
+
"language_info": {
|
| 115 |
+
"codemirror_mode": {
|
| 116 |
+
"name": "ipython",
|
| 117 |
+
"version": 3
|
| 118 |
+
},
|
| 119 |
+
"file_extension": ".py",
|
| 120 |
+
"mimetype": "text/x-python",
|
| 121 |
+
"name": "python",
|
| 122 |
+
"nbconvert_exporter": "python",
|
| 123 |
+
"pygments_lexer": "ipython3",
|
| 124 |
+
"version": "3.8.10"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"nbformat": 4,
|
| 128 |
+
"nbformat_minor": 5
|
| 129 |
+
}
|