File size: 5,510 Bytes
47abd8f
 
 
 
 
1b24389
47abd8f
 
1b24389
 
 
 
47abd8f
 
1b24389
 
47abd8f
1b24389
47abd8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a64fee1
 
 
 
1b24389
a64fee1
 
1b24389
 
 
 
a64fee1
 
1b24389
 
a64fee1
1b24389
a64fee1
 
 
 
 
 
 
 
 
 
 
 
1b24389
 
 
 
a64fee1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1b24389
a64fee1
 
1b24389
 
 
 
a64fee1
 
1b24389
 
a64fee1
1b24389
a64fee1
 
 
 
 
 
 
 
 
1b24389
a64fee1
 
 
 
 
 
 
1b24389
 
a64fee1
 
 
 
 
 
 
 
47abd8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1b24389
 
47abd8f
 
1b24389
 
47abd8f
1b24389
47abd8f
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "6b5d075f",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2023-08-24T05:06:41.153333Z",
     "iopub.status.busy": "2023-08-24T05:06:41.153155Z",
     "iopub.status.idle": "2023-08-24T05:06:41.399190Z",
     "shell.execute_reply": "2023-08-24T05:06:41.398388Z"
    },
    "papermill": {
     "duration": 0.250175,
     "end_time": "2023-08-24T05:06:41.401051",
     "exception": false,
     "start_time": "2023-08-24T05:06:41.150876",
     "status": "completed"
    },
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Hello world\r\n"
     ]
    }
   ],
   "source": [
    "!echo \"Hello world\" # this file is for debugging the runner"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "b907c861",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2023-08-24T05:06:41.404173Z",
     "iopub.status.busy": "2023-08-24T05:06:41.403971Z",
     "iopub.status.idle": "2023-08-24T05:06:41.409844Z",
     "shell.execute_reply": "2023-08-24T05:06:41.409250Z"
    },
    "papermill": {
     "duration": 0.008578,
     "end_time": "2023-08-24T05:06:41.410855",
     "exception": false,
     "start_time": "2023-08-24T05:06:41.402277",
     "status": "completed"
    },
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "DEEPSPEED_STRAT: deepspeed_stage_2_offload\n",
      "ENABLE_WANDB: True\n",
      "GPU_DEVICES: auto\n",
      "NOTEBOOK_DIR: /actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer/notebook/experiment/rwkv-x-exp/v5-headsize2x\n",
      "INFERENCE_DIR: /actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer/RWKV-v5headsize2x\n",
      "TRAINER_DIR: /actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer/RWKV-v5headsize2x\n",
      "PROJECT_DIR: /actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer\n"
     ]
    }
   ],
   "source": [
    "DEEPSPEED_STRAT=\"deepspeed_stage_2_offload\"\n",
    "GPU_DEVICES=\"auto\"\n",
    "ENABLE_WANDB=True\n",
    "\n",
    "RWKV_WAVENET_LAYERS=1\n",
    "\n",
    "EMBED_SCALE=0.1\n",
    "EMBED_SCALE_LABEL=str(EMBED_SCALE).replace(\".\", \"_\")\n",
    "\n",
    "LAYER_COUNT=6\n",
    "EMBED_DIM=4096\n",
    "\n",
    "WANDB_PREFIX=f\"v5-hs2x-L{LAYER_COUNT}-D{EMBED_DIM}-E{EMBED_SCALE}\"\n",
    "FILENAME_PREFIX=f\"v5-hs2x-L{LAYER_COUNT}-D{EMBED_DIM}-E{EMBED_SCALE_LABEL}\"\n",
    "\n",
    "print(\"DEEPSPEED_STRAT:\", DEEPSPEED_STRAT)\n",
    "print(\"ENABLE_WANDB:\", ENABLE_WANDB)\n",
    "print(\"GPU_DEVICES:\", GPU_DEVICES)\n",
    "\n",
    "if ENABLE_WANDB:\n",
    "    WANDB_MODE=\"online\"\n",
    "else:\n",
    "    WANDB_MODE=\"disabled\"\n",
    "\n",
    "# Computing the notebook, and various paths\n",
    "import os\n",
    "NOTEBOOK_DIR=os.path.dirname(os.path.abspath(\"__file__\"))\n",
    "PROJECT_DIR=os.path.abspath(os.path.join(NOTEBOOK_DIR, \"../../../../\"))\n",
    "TRAINER_DIR=os.path.abspath(os.path.join(PROJECT_DIR, \"./RWKV-v5headsize2x/\"))\n",
    "INFERENCE_DIR=os.path.abspath(os.path.join(PROJECT_DIR, \"./RWKV-v5headsize2x/\"))\n",
    "\n",
    "print(\"NOTEBOOK_DIR:\", NOTEBOOK_DIR)\n",
    "print(\"INFERENCE_DIR:\", INFERENCE_DIR)\n",
    "print(\"TRAINER_DIR:\", TRAINER_DIR)\n",
    "print(\"PROJECT_DIR:\", PROJECT_DIR)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "f5be72ed",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2023-08-24T05:06:41.413704Z",
     "iopub.status.busy": "2023-08-24T05:06:41.413538Z",
     "iopub.status.idle": "2023-08-24T05:06:41.886716Z",
     "shell.execute_reply": "2023-08-24T05:06:41.885986Z"
    },
    "papermill": {
     "duration": 0.476337,
     "end_time": "2023-08-24T05:06:41.888237",
     "exception": false,
     "start_time": "2023-08-24T05:06:41.411900",
     "status": "completed"
    },
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer/RWKV-v5headsize2x\r\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "total 4.0K\r\n",
      "drwxr-xr-x  2 root root   10 Aug 24 05:06 .\r\n",
      "drwxr-xr-x 19 root root 4.0K Aug 24 05:06 ..\r\n"
     ]
    }
   ],
   "source": [
    "# Get the current model listing\n",
    "!cd \"{TRAINER_DIR}\" && pwd\n",
    "!cd \"{TRAINER_DIR}\" && ls -alh \"../model/\""
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  },
  "papermill": {
   "default_parameters": {},
   "duration": 1.90468,
   "end_time": "2023-08-24T05:06:42.106057",
   "environment_variables": {},
   "exception": null,
   "input_path": "/actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer/notebook/experiment/rwkv-x-exp/v5-headsize2x/hello-world.ipynb",
   "output_path": "/actions-runner-lane2/_work/RWKV-infctx-trainer/RWKV-infctx-trainer/output/experiment/rwkv-x-exp/v5-headsize2x/hello-world.ipynb",
   "parameters": {},
   "start_time": "2023-08-24T05:06:40.201377",
   "version": "2.4.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}