Mindigenous commited on
Commit
3132f2e
Β·
1 Parent(s): 0f8853a

Sync latest docs/config and dataset adjustments

Browse files
AMD Cloud Accelerate config.txt CHANGED
@@ -1,27 +1,16 @@
1
- root@jupyter-launcher-260401134729-3102:/workspace# python3 -m venv mindi_env
2
- root@jupyter-launcher-260401134729-3102:/workspace# source mindi_env/bin/activate
3
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# pip install --upgrade pip
4
- Requirement already satisfied: pip in ./mindi_env/lib/python3.12/site-packages (25.0.1)
5
- Collecting pip
6
- Using cached pip-26.0.1-py3-none-any.whl.metadata (4.7 kB)
7
- Using cached pip-26.0.1-py3-none-any.whl (1.8 MB)
8
- Installing collected packages: pip
9
- Attempting uninstall: pip
10
- Found existing installation: pip 25.0.1
11
- Uninstalling pip-25.0.1:
12
- Successfully uninstalled pip-25.0.1
13
- Successfully installed pip-26.0.1
14
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
15
  Looking in indexes: https://download.pytorch.org/whl/rocm6.0
16
  Collecting torch
17
  Downloading https://download.pytorch.org/whl/rocm6.0/torch-2.4.1%2Brocm6.0-cp312-cp312-linux_x86_64.whl (2363.3 MB)
18
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 GB 86.5 MB/s 0:00:06
19
  Collecting torchvision
20
  Downloading https://download-r2.pytorch.org/whl/rocm6.0/torchvision-0.19.1%2Brocm6.0-cp312-cp312-linux_x86_64.whl (65.8 MB)
21
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 MB 248.3 MB/s 0:00:00
22
  Collecting torchaudio
23
  Downloading https://download-r2.pytorch.org/whl/rocm6.0/torchaudio-2.4.1%2Brocm6.0-cp312-cp312-linux_x86_64.whl (1.7 MB)
24
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 187.5 MB/s 0:00:00
25
  Collecting filelock (from torch)
26
  Downloading filelock-3.25.2-py3-none-any.whl.metadata (2.0 kB)
27
  Collecting typing-extensions>=4.8.0 (from torch)
@@ -38,7 +27,7 @@ Collecting setuptools (from torch)
38
  Downloading https://download.pytorch.org/whl/setuptools-70.2.0-py3-none-any.whl.metadata (5.8 kB)
39
  Collecting pytorch-triton-rocm==3.0.0 (from torch)
40
  Downloading https://download-r2.pytorch.org/whl/pytorch_triton_rocm-3.0.0-cp312-cp312-linux_x86_64.whl (341.7 MB)
41
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.7/341.7 MB 180.8 MB/s 0:00:01
42
  Collecting numpy (from torchvision)
43
  Downloading numpy-2.4.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (6.6 kB)
44
  Collecting pillow!=8.3.*,>=5.3.0 (from torchvision)
@@ -48,24 +37,24 @@ Collecting MarkupSafe>=2.0 (from jinja2->torch)
48
  Collecting mpmath<1.4,>=1.1.0 (from sympy->torch)
49
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
50
  Downloading pillow-12.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.0 MB)
51
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 55.7 MB/s 0:00:00
52
  Downloading https://download.pytorch.org/whl/typing_extensions-4.15.0-py3-none-any.whl (44 kB)
53
  Downloading filelock-3.25.2-py3-none-any.whl (26 kB)
54
  Downloading fsspec-2026.2.0-py3-none-any.whl (202 kB)
55
  Downloading https://download.pytorch.org/whl/jinja2-3.1.6-py3-none-any.whl (134 kB)
56
- Downloading https://download.pytorch.org/whl/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (22 kB)
57
  Using cached networkx-3.6.1-py3-none-any.whl (2.1 MB)
58
  Downloading numpy-2.4.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB)
59
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.6/16.6 MB 114.6 MB/s 0:00:00
60
  Downloading https://download.pytorch.org/whl/setuptools-70.2.0-py3-none-any.whl (930 kB)
61
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 930.8/930.8 kB 129.2 MB/s 0:00:00
62
  Using cached sympy-1.14.0-py3-none-any.whl (6.3 MB)
 
63
  Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
64
  Installing collected packages: mpmath, typing-extensions, sympy, setuptools, pillow, numpy, networkx, MarkupSafe, fsspec, filelock, pytorch-triton-rocm, jinja2, torch, torchvision, torchaudio
65
  Successfully installed MarkupSafe-3.0.3 filelock-3.25.2 fsspec-2026.2.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 numpy-2.4.3 pillow-12.1.1 pytorch-triton-rocm-3.0.0 setuptools-70.2.0 sympy-1.14.0 torch-2.4.1+rocm6.0 torchaudio-2.4.1+rocm6.0 torchvision-0.19.1+rocm6.0 typing-extensions-4.15.0
66
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# python -c "import torch; print(torch.cuda.is_available())"
67
  True
68
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# pip install transformers datasets accelerate peft bitsandbytes sentencepiece tqdm
69
  Collecting transformers
70
  Downloading transformers-5.4.0-py3-none-any.whl.metadata (32 kB)
71
  Collecting datasets
@@ -95,23 +84,7 @@ Collecting typer (from transformers)
95
  Downloading typer-0.24.1-py3-none-any.whl.metadata (16 kB)
96
  Collecting safetensors>=0.4.3 (from transformers)
97
  Downloading safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
98
- Requirement already satisfied: filelock>=3.10.0 in ./mindi_env/lib/python3.12/site-packages (from huggingface-hub<2.0,>=1.5.0->transformers) (3.25.2)
99
- Requirement already satisfied: fsspec>=2023.5.0 in ./mindi_env/lib/python3.12/site-packages (from huggingface-hub<2.0,>=1.5.0->transformers) (2026.2.0)
100
- Collecting hf-xet<2.0.0,>=1.4.2 (from huggingface-hub<2.0,>=1.5.0->transformers)
101
- Downloading hf_xet-1.4.3-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (4.9 kB)
102
- Collecting httpx<1,>=0.23.0 (from huggingface-hub<2.0,>=1.5.0->transformers)
103
- Downloading httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
104
- Requirement already satisfied: typing-extensions>=4.1.0 in ./mindi_env/lib/python3.12/site-packages (from huggingface-hub<2.0,>=1.5.0->transformers) (4.15.0)
105
- Collecting anyio (from httpx<1,>=0.23.0->huggingface-hub<2.0,>=1.5.0->transformers)
106
- Downloading anyio-4.13.0-py3-none-any.whl.metadata (4.5 kB)
107
- Collecting certifi (from httpx<1,>=0.23.0->huggingface-hub<2.0,>=1.5.0->transformers)
108
- Downloading certifi-2026.2.25-py3-none-any.whl.metadata (2.5 kB)
109
- Collecting httpcore==1.* (from httpx<1,>=0.23.0->huggingface-hub<2.0,>=1.5.0->transformers)
110
- Downloading httpcore-1.0.9-py3-none-any.whl.metadata (21 kB)
111
- Collecting idna (from httpx<1,>=0.23.0->huggingface-hub<2.0,>=1.5.0->transformers)
112
- Downloading idna-3.11-py3-none-any.whl.metadata (8.4 kB)
113
- Collecting h11>=0.16 (from httpcore==1.*->httpx<1,>=0.23.0->huggingface-hub<2.0,>=1.5.0->transformers)
114
- Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
115
  Collecting pyarrow>=21.0.0 (from datasets)
116
  Downloading pyarrow-23.0.1-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (3.1 kB)
117
  Collecting dill<0.4.2,>=0.3.0 (from datasets)
@@ -120,20 +93,50 @@ Collecting pandas (from datasets)
120
  Downloading pandas-3.0.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (79 kB)
121
  Collecting requests>=2.32.2 (from datasets)
122
  Downloading requests-2.33.1-py3-none-any.whl.metadata (4.8 kB)
 
 
123
  Collecting xxhash (from datasets)
124
  Downloading xxhash-3.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (13 kB)
125
  Collecting multiprocess<0.70.20 (from datasets)
126
  Downloading multiprocess-0.70.19-py312-none-any.whl.metadata (7.5 kB)
127
- Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
128
- Downloading aiohttp-3.13.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (8.1 kB)
129
  Collecting psutil (from accelerate)
130
  Downloading psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl.metadata (22 kB)
131
  Requirement already satisfied: torch>=2.0.0 in ./mindi_env/lib/python3.12/site-packages (from accelerate) (2.4.1+rocm6.0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  Requirement already satisfied: sympy in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (1.14.0)
133
  Requirement already satisfied: networkx in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (3.6.1)
134
  Requirement already satisfied: jinja2 in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (3.1.6)
135
  Requirement already satisfied: setuptools in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (70.2.0)
136
  Requirement already satisfied: pytorch-triton-rocm==3.0.0 in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (3.0.0)
 
 
 
 
 
 
 
 
 
 
137
  Collecting aiohappyeyeballs>=2.5.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
138
  Downloading aiohappyeyeballs-2.6.1-py3-none-any.whl.metadata (5.9 kB)
139
  Collecting aiosignal>=1.4.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
@@ -148,119 +151,108 @@ Collecting propcache>=0.2.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026
148
  Downloading propcache-0.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (13 kB)
149
  Collecting yarl<2.0,>=1.17.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
150
  Downloading yarl-1.23.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (79 kB)
151
- Collecting charset_normalizer<4,>=2 (from requests>=2.32.2->datasets)
152
- Downloading charset_normalizer-3.4.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (40 kB)
153
- Collecting urllib3<3,>=1.26 (from requests>=2.32.2->datasets)
154
- Downloading urllib3-2.6.3-py3-none-any.whl.metadata (6.9 kB)
155
- Requirement already satisfied: MarkupSafe>=2.0 in ./mindi_env/lib/python3.12/site-packages (from jinja2->torch>=2.0.0->accelerate) (3.0.3)
156
- Collecting python-dateutil>=2.8.2 (from pandas->datasets)
157
- Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
158
  Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas->datasets)
159
  Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
160
- Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./mindi_env/lib/python3.12/site-packages (from sympy->torch>=2.0.0->accelerate) (1.3.0)
161
- Collecting click>=8.2.1 (from typer->transformers)
162
- Downloading click-8.3.1-py3-none-any.whl.metadata (2.6 kB)
163
- Collecting shellingham>=1.3.0 (from typer->transformers)
164
- Downloading shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
165
- Collecting rich>=12.3.0 (from typer->transformers)
166
- Downloading rich-14.3.3-py3-none-any.whl.metadata (18 kB)
167
- Collecting annotated-doc>=0.0.2 (from typer->transformers)
168
- Downloading annotated_doc-0.0.4-py3-none-any.whl.metadata (6.6 kB)
169
  Collecting markdown-it-py>=2.2.0 (from rich>=12.3.0->typer->transformers)
170
  Downloading markdown_it_py-4.0.0-py3-none-any.whl.metadata (7.3 kB)
171
  Collecting pygments<3.0.0,>=2.13.0 (from rich>=12.3.0->typer->transformers)
172
  Downloading pygments-2.20.0-py3-none-any.whl.metadata (2.5 kB)
 
 
173
  Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=12.3.0->typer->transformers)
174
  Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
175
  Downloading transformers-5.4.0-py3-none-any.whl (10.1 MB)
176
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 55.5 MB/s 0:00:00
177
- Downloading huggingface_hub-1.8.0-py3-none-any.whl (625 kB)
178
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 625.2/625.2 kB 56.0 MB/s 0:00:00
179
- Downloading hf_xet-1.4.3-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.2 MB)
180
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 130.1 MB/s 0:00:00
181
- Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
182
- Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)
183
- Downloading tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
184
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 116.5 MB/s 0:00:00
185
  Downloading datasets-4.8.4-py3-none-any.whl (526 kB)
186
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 527.0/527.0 kB 62.6 MB/s 0:00:00
187
- Downloading dill-0.4.1-py3-none-any.whl (120 kB)
188
- Downloading multiprocess-0.70.19-py312-none-any.whl (150 kB)
189
  Downloading accelerate-1.13.0-py3-none-any.whl (383 kB)
190
  Downloading peft-0.18.1-py3-none-any.whl (556 kB)
191
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 557.0/557.0 kB 30.8 MB/s 0:00:00
192
  Downloading bitsandbytes-0.49.2-py3-none-manylinux_2_24_x86_64.whl (60.7 MB)
193
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.7/60.7 MB 103.2 MB/s 0:00:00
194
  Downloading sentencepiece-0.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.4 MB)
195
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 127.4 MB/s 0:00:00
196
  Downloading tqdm-4.67.3-py3-none-any.whl (78 kB)
197
- Downloading aiohttp-3.13.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB)
198
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 208.3 MB/s 0:00:00
199
- Downloading multidict-6.7.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (256 kB)
200
- Downloading yarl-1.23.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (100 kB)
201
- Downloading aiohappyeyeballs-2.6.1-py3-none-any.whl (15 kB)
202
- Downloading aiosignal-1.4.0-py3-none-any.whl (7.5 kB)
203
- Downloading attrs-26.1.0-py3-none-any.whl (67 kB)
204
- Downloading frozenlist-1.8.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (242 kB)
205
- Downloading h11-0.16.0-py3-none-any.whl (37 kB)
206
- Downloading idna-3.11-py3-none-any.whl (71 kB)
207
  Downloading packaging-26.0-py3-none-any.whl (74 kB)
208
- Downloading propcache-0.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (221 kB)
209
  Downloading pyarrow-23.0.1-cp312-cp312-manylinux_2_28_x86_64.whl (47.6 MB)
210
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.6/47.6 MB 96.3 MB/s 0:00:00
211
  Downloading pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (807 kB)
212
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.9/807.9 kB 102.6 MB/s 0:00:00
213
  Downloading regex-2026.3.32-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (801 kB)
214
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 801.5/801.5 kB 105.5 MB/s 0:00:00
215
  Downloading requests-2.33.1-py3-none-any.whl (64 kB)
216
- Downloading charset_normalizer-3.4.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (207 kB)
217
- Downloading urllib3-2.6.3-py3-none-any.whl (131 kB)
218
- Downloading certifi-2026.2.25-py3-none-any.whl (153 kB)
219
  Downloading safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (507 kB)
220
- Downloading anyio-4.13.0-py3-none-any.whl (114 kB)
 
221
  Downloading pandas-3.0.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (10.9 MB)
222
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 122.5 MB/s 0:00:00
223
- Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
224
- Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
225
  Downloading psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl (155 kB)
226
  Downloading typer-0.24.1-py3-none-any.whl (56 kB)
 
 
 
227
  Downloading annotated_doc-0.0.4-py3-none-any.whl (5.3 kB)
 
 
228
  Downloading click-8.3.1-py3-none-any.whl (108 kB)
 
 
 
 
229
  Downloading rich-14.3.3-py3-none-any.whl (310 kB)
230
- Downloading pygments-2.20.0-py3-none-any.whl (1.2 MB)
231
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 165.6 MB/s 0:00:00
 
 
 
 
 
 
232
  Downloading markdown_it_py-4.0.0-py3-none-any.whl (87 kB)
 
 
 
 
 
 
233
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
234
- Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
235
- Downloading xxhash-3.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (193 kB)
236
  Installing collected packages: xxhash, urllib3, tqdm, six, shellingham, sentencepiece, safetensors, regex, pyyaml, pygments, pyarrow, psutil, propcache, packaging, multidict, mdurl, idna, hf-xet, h11, frozenlist, dill, click, charset_normalizer, certifi, attrs, annotated-doc, aiohappyeyeballs, yarl, requests, python-dateutil, multiprocess, markdown-it-py, httpcore, anyio, aiosignal, rich, pandas, httpx, bitsandbytes, aiohttp, typer, huggingface-hub, tokenizers, datasets, accelerate, transformers, peft
237
  Successfully installed accelerate-1.13.0 aiohappyeyeballs-2.6.1 aiohttp-3.13.5 aiosignal-1.4.0 annotated-doc-0.0.4 anyio-4.13.0 attrs-26.1.0 bitsandbytes-0.49.2 certifi-2026.2.25 charset_normalizer-3.4.6 click-8.3.1 datasets-4.8.4 dill-0.4.1 frozenlist-1.8.0 h11-0.16.0 hf-xet-1.4.3 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-1.8.0 idna-3.11 markdown-it-py-4.0.0 mdurl-0.1.2 multidict-6.7.1 multiprocess-0.70.19 packaging-26.0 pandas-3.0.2 peft-0.18.1 propcache-0.4.1 psutil-7.2.2 pyarrow-23.0.1 pygments-2.20.0 python-dateutil-2.9.0.post0 pyyaml-6.0.3 regex-2026.3.32 requests-2.33.1 rich-14.3.3 safetensors-0.7.0 sentencepiece-0.2.1 shellingham-1.5.4 six-1.17.0 tokenizers-0.22.2 tqdm-4.67.3 transformers-5.4.0 typer-0.24.1 urllib3-2.6.3 xxhash-3.6.0 yarl-1.23.0
238
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# apt update && apt install -y git-lfs
 
 
 
239
  Get:1 https://repo.radeon.com/amdgpu/7.0/ubuntu jammy InRelease [3183 B]
240
  Get:2 https://repo.radeon.com/rocm/apt/7.0 jammy InRelease [2603 B]
241
- Get:3 https://repo.radeon.com/amdgpu/7.0/ubuntu jammy/main amd64 Packages [1329 B]
242
- Get:4 https://repo.radeon.com/rocm/apt/7.0 jammy/main amd64 Packages [82.7 kB]
243
- Get:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
244
- Get:6 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
245
- Get:7 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease [18.1 kB]
246
- Get:8 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [62.6 kB]
247
- Get:9 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
248
- Get:10 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/main amd64 Packages [38.9 kB]
249
- Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1309 kB]
250
- Get:12 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
251
- Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
252
- Get:14 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [6803 kB]
253
- Get:15 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
254
- Get:16 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
255
- Get:17 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3842 kB]
256
- Get:18 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
257
- Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [4217 kB]
258
- Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [7125 kB]
259
- Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [70.9 kB]
260
- Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1621 kB]
261
- Get:23 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [35.6 kB]
262
- Get:24 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [84.0 kB]
263
- Fetched 45.7 MB in 3s (16.7 MB/s)
264
  Reading package lists... Done
265
  Building dependency tree... Done
266
  Reading state information... Done
@@ -276,24 +268,24 @@ The following NEW packages will be installed:
276
  Need to get 3544 kB of archives.
277
  After this operation, 10.5 MB of additional disk space will be used.
278
  Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 git-lfs amd64 3.0.2-1ubuntu0.3 [3544 kB]
279
- Fetched 3544 kB in 1s (2611 kB/s)
280
  debconf: delaying package configuration, since apt-utils is not installed
281
  Selecting previously unselected package git-lfs.
282
  (Reading database ... 58520 files and directories currently installed.)
283
  Preparing to unpack .../git-lfs_3.0.2-1ubuntu0.3_amd64.deb ...
284
  Unpacking git-lfs (3.0.2-1ubuntu0.3) ...
285
  Setting up git-lfs (3.0.2-1ubuntu0.3) ...
286
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# git clone https://huggingface.co/Mindigenous/mindi-backup
287
  Cloning into 'mindi-backup'...
288
- remote: Enumerating objects: 286, done.
289
- remote: Counting objects: 100% (283/283), done.
290
- remote: Compressing objects: 100% (266/266), done.
291
- remote: Total 286 (delta 15), reused 217 (delta 6), pack-reused 3 (from 1)
292
- Receiving objects: 100% (286/286), 151.83 KiB | 9.49 MiB/s, done.
293
- Resolving deltas: 100% (15/15), done.
294
- Filtering content: 100% (85/85), 9.38 GiB | 533.08 MiB/s, done.
295
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace# cd mindi-backup/
296
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace/mindi-backup# accelerate config
297
  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------In which compute environment are you running?
298
  This machine
299
  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Which type of machine are you using?
@@ -306,28 +298,106 @@ Would you like to enable numa efficiency? (Currently only supported on NVIDIA ha
306
  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Do you wish to use mixed precision?
307
  bf16
308
  accelerate configuration saved at /root/.cache/huggingface/accelerate/default_config.yaml
309
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace/mindi-backup# python -c "import torch; print(torch.cuda.is_available(), torch.cuda.device_count())"
310
- True 1
311
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace/mindi-backup# accelerate launch train.py \
312
- --data_path data/final/train.jsonl \
313
- --output_dir checkpoints \
314
- --batch_size 4 \
315
- --gradient_accumulation 16 \
316
- --learning_rate 2e-5 \
317
- --num_train_steps 60000 \
318
- --save_steps 2000 \
319
- --logging_steps 50
320
- usage: train.py [-h] [--no-resume]
321
- train.py: error: unrecognized arguments: --data_path data/final/train.jsonl --output_dir checkpoints --batch_size 4 --gradient_accumulation 16 --learning_rate 2e-5 --num_train_steps 60000 --save_steps 2000 --logging_steps 50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  Traceback (most recent call last):
323
- File "/workspace/mindi_env/bin/accelerate", line 6, in <module>
324
  sys.exit(main())
325
  ^^^^^^
326
  File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/commands/accelerate_cli.py", line 50, in main
327
  args.func(args)
328
  File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/commands/launch.py", line 1405, in launch_command
329
  simple_launcher(args)
330
- File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/commands/launch.py", line 993, in simple_launcher
331
- raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
332
- subprocess.CalledProcessError: Command '['/workspace/mindi_env/bin/python3', 'train.py', '--data_path', 'data/final/train.jsonl', '--output_dir', 'checkpoints', '--batch_size', '4', '--gradient_accumulation', '16', '--learning_rate', '2e-5', '--num_train_steps', '60000', '--save_steps', '2000', '--logging_steps', '50']' returned non-zero exit status 2.
333
- ((mindi_env) ) root@jupyter-launcher-260401134729-3102:/workspace/mindi-backup#
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ root@jupyter-launcher-260401210247-9205:/workspace# python3 -m venv mindi_env
2
+ root@jupyter-launcher-260401210247-9205:/workspace# source mindi_env/bin/activate
3
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace# pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
 
 
 
 
 
 
 
 
 
 
 
4
  Looking in indexes: https://download.pytorch.org/whl/rocm6.0
5
  Collecting torch
6
  Downloading https://download.pytorch.org/whl/rocm6.0/torch-2.4.1%2Brocm6.0-cp312-cp312-linux_x86_64.whl (2363.3 MB)
7
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 GB 25.2 MB/s eta 0:00:00
8
  Collecting torchvision
9
  Downloading https://download-r2.pytorch.org/whl/rocm6.0/torchvision-0.19.1%2Brocm6.0-cp312-cp312-linux_x86_64.whl (65.8 MB)
10
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 MB 230.9 MB/s eta 0:00:00
11
  Collecting torchaudio
12
  Downloading https://download-r2.pytorch.org/whl/rocm6.0/torchaudio-2.4.1%2Brocm6.0-cp312-cp312-linux_x86_64.whl (1.7 MB)
13
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 150.2 MB/s eta 0:00:00
14
  Collecting filelock (from torch)
15
  Downloading filelock-3.25.2-py3-none-any.whl.metadata (2.0 kB)
16
  Collecting typing-extensions>=4.8.0 (from torch)
 
27
  Downloading https://download.pytorch.org/whl/setuptools-70.2.0-py3-none-any.whl.metadata (5.8 kB)
28
  Collecting pytorch-triton-rocm==3.0.0 (from torch)
29
  Downloading https://download-r2.pytorch.org/whl/pytorch_triton_rocm-3.0.0-cp312-cp312-linux_x86_64.whl (341.7 MB)
30
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.7/341.7 MB 109.9 MB/s eta 0:00:00
31
  Collecting numpy (from torchvision)
32
  Downloading numpy-2.4.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (6.6 kB)
33
  Collecting pillow!=8.3.*,>=5.3.0 (from torchvision)
 
37
  Collecting mpmath<1.4,>=1.1.0 (from sympy->torch)
38
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
39
  Downloading pillow-12.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.0 MB)
40
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 57.3 MB/s eta 0:00:00
41
  Downloading https://download.pytorch.org/whl/typing_extensions-4.15.0-py3-none-any.whl (44 kB)
42
  Downloading filelock-3.25.2-py3-none-any.whl (26 kB)
43
  Downloading fsspec-2026.2.0-py3-none-any.whl (202 kB)
44
  Downloading https://download.pytorch.org/whl/jinja2-3.1.6-py3-none-any.whl (134 kB)
 
45
  Using cached networkx-3.6.1-py3-none-any.whl (2.1 MB)
46
  Downloading numpy-2.4.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB)
47
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.6/16.6 MB 86.7 MB/s eta 0:00:00
48
  Downloading https://download.pytorch.org/whl/setuptools-70.2.0-py3-none-any.whl (930 kB)
49
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 930.8/930.8 kB 140.4 MB/s eta 0:00:00
50
  Using cached sympy-1.14.0-py3-none-any.whl (6.3 MB)
51
+ Downloading https://download.pytorch.org/whl/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (22 kB)
52
  Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
53
  Installing collected packages: mpmath, typing-extensions, sympy, setuptools, pillow, numpy, networkx, MarkupSafe, fsspec, filelock, pytorch-triton-rocm, jinja2, torch, torchvision, torchaudio
54
  Successfully installed MarkupSafe-3.0.3 filelock-3.25.2 fsspec-2026.2.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 numpy-2.4.3 pillow-12.1.1 pytorch-triton-rocm-3.0.0 setuptools-70.2.0 sympy-1.14.0 torch-2.4.1+rocm6.0 torchaudio-2.4.1+rocm6.0 torchvision-0.19.1+rocm6.0 typing-extensions-4.15.0
55
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace# python -c "import torch; print(torch.cuda.is_available())"
56
  True
57
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace# pip install transformers datasets accelerate peft bitsandbytes sentencepiece tqdm
58
  Collecting transformers
59
  Downloading transformers-5.4.0-py3-none-any.whl.metadata (32 kB)
60
  Collecting datasets
 
84
  Downloading typer-0.24.1-py3-none-any.whl.metadata (16 kB)
85
  Collecting safetensors>=0.4.3 (from transformers)
86
  Downloading safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
87
+ Requirement already satisfied: filelock in ./mindi_env/lib/python3.12/site-packages (from datasets) (3.25.2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  Collecting pyarrow>=21.0.0 (from datasets)
89
  Downloading pyarrow-23.0.1-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (3.1 kB)
90
  Collecting dill<0.4.2,>=0.3.0 (from datasets)
 
93
  Downloading pandas-3.0.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (79 kB)
94
  Collecting requests>=2.32.2 (from datasets)
95
  Downloading requests-2.33.1-py3-none-any.whl.metadata (4.8 kB)
96
+ Collecting httpx<1.0.0 (from datasets)
97
+ Downloading httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
98
  Collecting xxhash (from datasets)
99
  Downloading xxhash-3.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (13 kB)
100
  Collecting multiprocess<0.70.20 (from datasets)
101
  Downloading multiprocess-0.70.19-py312-none-any.whl.metadata (7.5 kB)
102
+ Requirement already satisfied: fsspec<=2026.2.0,>=2023.1.0 in ./mindi_env/lib/python3.12/site-packages (from fsspec[http]<=2026.2.0,>=2023.1.0->datasets) (2026.2.0)
 
103
  Collecting psutil (from accelerate)
104
  Downloading psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl.metadata (22 kB)
105
  Requirement already satisfied: torch>=2.0.0 in ./mindi_env/lib/python3.12/site-packages (from accelerate) (2.4.1+rocm6.0)
106
+ Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
107
+ Downloading aiohttp-3.13.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (8.1 kB)
108
+ Collecting anyio (from httpx<1.0.0->datasets)
109
+ Downloading anyio-4.13.0-py3-none-any.whl.metadata (4.5 kB)
110
+ Collecting certifi (from httpx<1.0.0->datasets)
111
+ Downloading certifi-2026.2.25-py3-none-any.whl.metadata (2.5 kB)
112
+ Collecting httpcore==1.* (from httpx<1.0.0->datasets)
113
+ Downloading httpcore-1.0.9-py3-none-any.whl.metadata (21 kB)
114
+ Collecting idna (from httpx<1.0.0->datasets)
115
+ Downloading idna-3.11-py3-none-any.whl.metadata (8.4 kB)
116
+ Collecting h11>=0.16 (from httpcore==1.*->httpx<1.0.0->datasets)
117
+ Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
118
+ Collecting hf-xet<2.0.0,>=1.4.2 (from huggingface-hub<2.0,>=1.5.0->transformers)
119
+ Downloading hf_xet-1.4.3-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (4.9 kB)
120
+ Requirement already satisfied: typing-extensions>=4.1.0 in ./mindi_env/lib/python3.12/site-packages (from huggingface-hub<2.0,>=1.5.0->transformers) (4.15.0)
121
+ Collecting charset_normalizer<4,>=2 (from requests>=2.32.2->datasets)
122
+ Downloading charset_normalizer-3.4.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (40 kB)
123
+ Collecting urllib3<3,>=1.26 (from requests>=2.32.2->datasets)
124
+ Downloading urllib3-2.6.3-py3-none-any.whl.metadata (6.9 kB)
125
  Requirement already satisfied: sympy in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (1.14.0)
126
  Requirement already satisfied: networkx in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (3.6.1)
127
  Requirement already satisfied: jinja2 in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (3.1.6)
128
  Requirement already satisfied: setuptools in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (70.2.0)
129
  Requirement already satisfied: pytorch-triton-rocm==3.0.0 in ./mindi_env/lib/python3.12/site-packages (from torch>=2.0.0->accelerate) (3.0.0)
130
+ Collecting python-dateutil>=2.8.2 (from pandas->datasets)
131
+ Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
132
+ Collecting click>=8.2.1 (from typer->transformers)
133
+ Downloading click-8.3.1-py3-none-any.whl.metadata (2.6 kB)
134
+ Collecting shellingham>=1.3.0 (from typer->transformers)
135
+ Downloading shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
136
+ Collecting rich>=12.3.0 (from typer->transformers)
137
+ Downloading rich-14.3.3-py3-none-any.whl.metadata (18 kB)
138
+ Collecting annotated-doc>=0.0.2 (from typer->transformers)
139
+ Downloading annotated_doc-0.0.4-py3-none-any.whl.metadata (6.6 kB)
140
  Collecting aiohappyeyeballs>=2.5.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
141
  Downloading aiohappyeyeballs-2.6.1-py3-none-any.whl.metadata (5.9 kB)
142
  Collecting aiosignal>=1.4.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
 
151
  Downloading propcache-0.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (13 kB)
152
  Collecting yarl<2.0,>=1.17.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<=2026.2.0,>=2023.1.0->datasets)
153
  Downloading yarl-1.23.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (79 kB)
 
 
 
 
 
 
 
154
  Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas->datasets)
155
  Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
 
 
 
 
 
 
 
 
 
156
  Collecting markdown-it-py>=2.2.0 (from rich>=12.3.0->typer->transformers)
157
  Downloading markdown_it_py-4.0.0-py3-none-any.whl.metadata (7.3 kB)
158
  Collecting pygments<3.0.0,>=2.13.0 (from rich>=12.3.0->typer->transformers)
159
  Downloading pygments-2.20.0-py3-none-any.whl.metadata (2.5 kB)
160
+ Requirement already satisfied: MarkupSafe>=2.0 in ./mindi_env/lib/python3.12/site-packages (from jinja2->torch>=2.0.0->accelerate) (3.0.3)
161
+ Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./mindi_env/lib/python3.12/site-packages (from sympy->torch>=2.0.0->accelerate) (1.3.0)
162
  Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=12.3.0->typer->transformers)
163
  Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
164
  Downloading transformers-5.4.0-py3-none-any.whl (10.1 MB)
165
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 51.7 MB/s eta 0:00:00
 
 
 
 
 
 
 
 
166
  Downloading datasets-4.8.4-py3-none-any.whl (526 kB)
167
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 527.0/527.0 kB 75.6 MB/s eta 0:00:00
 
 
168
  Downloading accelerate-1.13.0-py3-none-any.whl (383 kB)
169
  Downloading peft-0.18.1-py3-none-any.whl (556 kB)
170
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 557.0/557.0 kB 80.1 MB/s eta 0:00:00
171
  Downloading bitsandbytes-0.49.2-py3-none-manylinux_2_24_x86_64.whl (60.7 MB)
172
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.7/60.7 MB 56.5 MB/s eta 0:00:00
173
  Downloading sentencepiece-0.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.4 MB)
174
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 2.7 MB/s eta 0:00:00
175
  Downloading tqdm-4.67.3-py3-none-any.whl (78 kB)
176
+ Downloading dill-0.4.1-py3-none-any.whl (120 kB)
177
+ Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
178
+ Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)
179
+ Downloading huggingface_hub-1.8.0-py3-none-any.whl (625 kB)
180
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 625.2/625.2 kB 10.3 MB/s eta 0:00:00
181
+ Downloading multiprocess-0.70.19-py312-none-any.whl (150 kB)
 
 
 
 
182
  Downloading packaging-26.0-py3-none-any.whl (74 kB)
 
183
  Downloading pyarrow-23.0.1-cp312-cp312-manylinux_2_28_x86_64.whl (47.6 MB)
184
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.6/47.6 MB 114.6 MB/s eta 0:00:00
185
  Downloading pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (807 kB)
186
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.9/807.9 kB 105.9 MB/s eta 0:00:00
187
  Downloading regex-2026.3.32-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (801 kB)
188
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 801.5/801.5 kB 112.8 MB/s eta 0:00:00
189
  Downloading requests-2.33.1-py3-none-any.whl (64 kB)
 
 
 
190
  Downloading safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (507 kB)
191
+ Downloading tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
192
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 103.2 MB/s eta 0:00:00
193
  Downloading pandas-3.0.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (10.9 MB)
194
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 119.2 MB/s eta 0:00:00
 
 
195
  Downloading psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl (155 kB)
196
  Downloading typer-0.24.1-py3-none-any.whl (56 kB)
197
+ Downloading xxhash-3.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (193 kB)
198
+ Downloading aiohttp-3.13.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB)
199
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 215.1 MB/s eta 0:00:00
200
  Downloading annotated_doc-0.0.4-py3-none-any.whl (5.3 kB)
201
+ Downloading certifi-2026.2.25-py3-none-any.whl (153 kB)
202
+ Downloading charset_normalizer-3.4.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (207 kB)
203
  Downloading click-8.3.1-py3-none-any.whl (108 kB)
204
+ Downloading hf_xet-1.4.3-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.2 MB)
205
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 109.6 MB/s eta 0:00:00
206
+ Downloading idna-3.11-py3-none-any.whl (71 kB)
207
+ Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
208
  Downloading rich-14.3.3-py3-none-any.whl (310 kB)
209
+ Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
210
+ Downloading urllib3-2.6.3-py3-none-any.whl (131 kB)
211
+ Downloading anyio-4.13.0-py3-none-any.whl (114 kB)
212
+ Downloading aiohappyeyeballs-2.6.1-py3-none-any.whl (15 kB)
213
+ Downloading aiosignal-1.4.0-py3-none-any.whl (7.5 kB)
214
+ Downloading attrs-26.1.0-py3-none-any.whl (67 kB)
215
+ Downloading frozenlist-1.8.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (242 kB)
216
+ Downloading h11-0.16.0-py3-none-any.whl (37 kB)
217
  Downloading markdown_it_py-4.0.0-py3-none-any.whl (87 kB)
218
+ Downloading multidict-6.7.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (256 kB)
219
+ Downloading propcache-0.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (221 kB)
220
+ Downloading pygments-2.20.0-py3-none-any.whl (1.2 MB)
221
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 156.9 MB/s eta 0:00:00
222
+ Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
223
+ Downloading yarl-1.23.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (100 kB)
224
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
 
 
225
  Installing collected packages: xxhash, urllib3, tqdm, six, shellingham, sentencepiece, safetensors, regex, pyyaml, pygments, pyarrow, psutil, propcache, packaging, multidict, mdurl, idna, hf-xet, h11, frozenlist, dill, click, charset_normalizer, certifi, attrs, annotated-doc, aiohappyeyeballs, yarl, requests, python-dateutil, multiprocess, markdown-it-py, httpcore, anyio, aiosignal, rich, pandas, httpx, bitsandbytes, aiohttp, typer, huggingface-hub, tokenizers, datasets, accelerate, transformers, peft
226
  Successfully installed accelerate-1.13.0 aiohappyeyeballs-2.6.1 aiohttp-3.13.5 aiosignal-1.4.0 annotated-doc-0.0.4 anyio-4.13.0 attrs-26.1.0 bitsandbytes-0.49.2 certifi-2026.2.25 charset_normalizer-3.4.6 click-8.3.1 datasets-4.8.4 dill-0.4.1 frozenlist-1.8.0 h11-0.16.0 hf-xet-1.4.3 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-1.8.0 idna-3.11 markdown-it-py-4.0.0 mdurl-0.1.2 multidict-6.7.1 multiprocess-0.70.19 packaging-26.0 pandas-3.0.2 peft-0.18.1 propcache-0.4.1 psutil-7.2.2 pyarrow-23.0.1 pygments-2.20.0 python-dateutil-2.9.0.post0 pyyaml-6.0.3 regex-2026.3.32 requests-2.33.1 rich-14.3.3 safetensors-0.7.0 sentencepiece-0.2.1 shellingham-1.5.4 six-1.17.0 tokenizers-0.22.2 tqdm-4.67.3 transformers-5.4.0 typer-0.24.1 urllib3-2.6.3 xxhash-3.6.0 yarl-1.23.0
227
+
228
+ [notice] A new release of pip is available: 25.0.1 -> 26.0.1
229
+ [notice] To update, run: pip install --upgrade pip
230
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace# apt update && apt install -y git-lfs
231
  Get:1 https://repo.radeon.com/amdgpu/7.0/ubuntu jammy InRelease [3183 B]
232
  Get:2 https://repo.radeon.com/rocm/apt/7.0 jammy InRelease [2603 B]
233
+ Get:3 https://repo.radeon.com/amdgpu/7.0/ubuntu jammy/main amd64 Packages [1329 B]
234
+ Get:4 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
235
+ Get:5 https://repo.radeon.com/rocm/apt/7.0 jammy/main amd64 Packages [82.7 kB]
236
+ Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
237
+ Get:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
238
+ Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
239
+ Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
240
+ Get:10 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
241
+ Get:11 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease [18.1 kB]
242
+ Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
243
+ Get:13 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
244
+ Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [4219 kB]
245
+ Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1622 kB]
246
+ Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [7125 kB]
247
+ Get:17 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [6803 kB]
248
+ Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [70.9 kB]
249
+ Get:19 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [35.6 kB]
250
+ Get:20 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [84.0 kB]
251
+ Get:21 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/main amd64 Packages [38.9 kB]
252
+ Get:22 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [62.6 kB]
253
+ Get:23 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3844 kB]
254
+ Get:24 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1310 kB]
255
+ Fetched 45.7 MB in 2s (23.2 MB/s)
256
  Reading package lists... Done
257
  Building dependency tree... Done
258
  Reading state information... Done
 
268
  Need to get 3544 kB of archives.
269
  After this operation, 10.5 MB of additional disk space will be used.
270
  Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 git-lfs amd64 3.0.2-1ubuntu0.3 [3544 kB]
271
+ Fetched 3544 kB in 1s (2561 kB/s)
272
  debconf: delaying package configuration, since apt-utils is not installed
273
  Selecting previously unselected package git-lfs.
274
  (Reading database ... 58520 files and directories currently installed.)
275
  Preparing to unpack .../git-lfs_3.0.2-1ubuntu0.3_amd64.deb ...
276
  Unpacking git-lfs (3.0.2-1ubuntu0.3) ...
277
  Setting up git-lfs (3.0.2-1ubuntu0.3) ...
278
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace# git clone https://huggingface.co/Mindigenous/mindi-backup
279
  Cloning into 'mindi-backup'...
280
+ remote: Enumerating objects: 304, done.
281
+ remote: Counting objects: 100% (301/301), done.
282
+ remote: Compressing objects: 100% (283/283), done.
283
+ remote: Total 304 (delta 21), reused 216 (delta 6), pack-reused 3 (from 1)
284
+ Receiving objects: 100% (304/304), 159.79 KiB | 26.63 MiB/s, done.
285
+ Resolving deltas: 100% (21/21), done.
286
+ Filtering content: 100% (86/86), 11.12 GiB | 181.12 MiB/s, done.
287
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace# cd mindi-backup/
288
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace/mindi-backup# accelerate config
289
  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------In which compute environment are you running?
290
  This machine
291
  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Which type of machine are you using?
 
298
  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Do you wish to use mixed precision?
299
  bf16
300
  accelerate configuration saved at /root/.cache/huggingface/accelerate/default_config.yaml
301
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace/mindi-backup# accelerate launch train.py --no-resume
302
+ 2026-04-01 21:12:28 | WARNING | Primary model path /workspace/mindi-backup/model is missing HF files. Falling back to /workspace/mindi-backup/hf_release/MINDI-1.0-420M
303
+ 2026-04-01 21:12:28 | INFO | Loading model from hf_release/MINDI-1.0-420M
304
+ Loading weights: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 186/186 [00:00<00:00, 1542.64it/s]
305
+ MindiForCausalLM LOAD REPORT from: hf_release/MINDI-1.0-420M
306
+ Key | Status | Details
307
+ ---------------+---------+--------
308
+ lm_head.weight | MISSING |
309
+
310
+ Notes:
311
+ - MISSING: those params were newly initialized because missing from the checkpoint. Consider training on your downstream task.
312
+ bitsandbytes library load error: Configured ROCm binary not found at /workspace/mindi_env/lib/python3.12/site-packages/bitsandbytes/libbitsandbytes_rocm60.so
313
+ Traceback (most recent call last):
314
+ File "/workspace/mindi_env/lib/python3.12/site-packages/bitsandbytes/cextension.py", line 320, in <module>
315
+ lib = get_native_library()
316
+ ^^^^^^^^^^^^^^^^^^^^
317
+ File "/workspace/mindi_env/lib/python3.12/site-packages/bitsandbytes/cextension.py", line 288, in get_native_library
318
+ raise RuntimeError(f"Configured {BNB_BACKEND} binary not found at {cuda_binary_path}")
319
+ RuntimeError: Configured ROCm binary not found at /workspace/mindi_env/lib/python3.12/site-packages/bitsandbytes/libbitsandbytes_rocm60.so
320
+ trainable params: 7,630,848 || all params: 489,165,696 || trainable%: 1.5600
321
+ 2026-04-01 21:12:39 | INFO | Starting training...
322
+ 2026-04-01 21:12:39 | WARNING | No valid checkpoint β†’ starting fresh training
323
+ 0%| | 29/156250 [01:27<130:16:46, 3.00s/it]^CTraceback (most recent call last):
324
+ File "/workspace/mindi-backup/train.py", line 243, in <module>
325
+ train(resume=not args.no_resume)
326
+ File "/workspace/mindi-backup/train.py", line 227, in train
327
+ safe_train(trainer, str(PATHS.checkpoint_dir), logger)
328
+ File "/workspace/mindi-backup/train.py", line 173, in safe_train
329
+ trainer.train()
330
+ File "/workspace/mindi_env/lib/python3.12/site-packages/transformers/trainer.py", line 1424, in train
331
+ return inner_training_loop(
332
+ ^^^^^^^^^^^^^^^^^^^^
333
+ File "/workspace/mindi_env/lib/python3.12/site-packages/transformers/trainer.py", line 1506, in _inner_training_loop
334
+ self._run_epoch(
335
+ File "/workspace/mindi_env/lib/python3.12/site-packages/transformers/trainer.py", line 1734, in _run_epoch
336
+ tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
337
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
338
+ File "/workspace/mindi_env/lib/python3.12/site-packages/transformers/trainer.py", line 1934, in training_step
339
+ self.accelerator.backward(loss, **kwargs)
340
+ File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/accelerator.py", line 2834, in backward
341
+ self.scaler.scale(loss).backward(**kwargs)
342
+ File "/workspace/mindi_env/lib/python3.12/site-packages/torch/_tensor.py", line 521, in backward
343
+ torch.autograd.backward(
344
+ File "/workspace/mindi_env/lib/python3.12/site-packages/torch/autograd/__init__.py", line 289, in backward
345
+ _engine_run_backward(
346
+ File "/workspace/mindi_env/lib/python3.12/site-packages/torch/autograd/graph.py", line 769, in _engine_run_backward
347
+ return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
348
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
349
+ KeyboardInterrupt
350
+ 0%| | 29/156250 [01:28<132:03:53, 3.04s/it]
351
  Traceback (most recent call last):
352
+ File "/workspace/mindi_env/bin/accelerate", line 8, in <module>
353
  sys.exit(main())
354
  ^^^^^^
355
  File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/commands/accelerate_cli.py", line 50, in main
356
  args.func(args)
357
  File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/commands/launch.py", line 1405, in launch_command
358
  simple_launcher(args)
359
+ File "/workspace/mindi_env/lib/python3.12/site-packages/accelerate/commands/launch.py", line 990, in simple_launcher
360
+ process.wait()
361
+ File "/usr/lib/python3.12/subprocess.py", line 1264, in wait
362
+ return self._wait(timeout=timeout)
363
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
364
+ File "/usr/lib/python3.12/subprocess.py", line 2053, in _wait
365
+ (pid, sts) = self._try_wait(0)
366
+ ^^^^^^^^^^^^^^^^^
367
+ File "/usr/lib/python3.12/subprocess.py", line 2011, in _try_wait
368
+ (pid, sts) = os.waitpid(self.pid, wait_flags)
369
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
370
+ KeyboardInterrupt
371
+
372
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace/mindi-backup# pip uninstall bitsandbytes -y
373
+ Found existing installation: bitsandbytes 0.49.2
374
+ Uninstalling bitsandbytes-0.49.2:
375
+ Successfully uninstalled bitsandbytes-0.49.2
376
+ ((mindi_env) ) root@jupyter-launcher-260401210247-9205:/workspace/mindi-backup# accelerate launch train.py --no-resume
377
+ 2026-04-01 21:16:01 | WARNING | Primary model path /workspace/mindi-backup/model is missing HF files. Falling back to /workspace/mindi-backup/hf_release/MINDI-1.0-420M
378
+ 2026-04-01 21:16:01 | INFO | Loading model from hf_release/MINDI-1.0-420M
379
+ Loading weights: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 186/186 [00:00<00:00, 1271.99it/s]
380
+ MindiForCausalLM LOAD REPORT from: hf_release/MINDI-1.0-420M
381
+ Key | Status | Details
382
+ ---------------+---------+--------
383
+ lm_head.weight | MISSING |
384
+
385
+ Notes:
386
+ - MISSING: those params were newly initialized because missing from the checkpoint. Consider training on your downstream task.
387
+ trainable params: 7,630,848 || all params: 489,165,696 || trainable%: 1.5600
388
+ 2026-04-01 21:16:11 | INFO | Starting training...
389
+ 2026-04-01 21:16:11 | WARNING | No valid checkpoint β†’ starting fresh training
390
+ {'loss': '167.2', 'grad_norm': '2.187', 'learning_rate': '1.999e-05', 'epoch': '0.0016'}
391
+ {'loss': '126.3', 'grad_norm': '0.9016', 'learning_rate': '1.999e-05', 'epoch': '0.0032'}
392
+ {'loss': '105.4', 'grad_norm': '0.3636', 'learning_rate': '1.998e-05', 'epoch': '0.0048'}
393
+ {'loss': '101.1', 'grad_norm': '0.2803', 'learning_rate': '1.997e-05', 'epoch': '0.0064'}
394
+ 0%|β–Ž | 223/156250 [11:11<130:24:40, 3.01s/it]
395
+
396
+
397
+ python3 -m venv mindi_env
398
+ source mindi_env/bin/activate
399
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
400
+ python -c "import torch; print(torch.cuda.is_available())"
401
+ pip install transformers datasets accelerate peft sentencepiece tqdm
402
+ apt update && apt install -y git-lfs
403
+ git clone https://huggingface.co/Mindigenous/mindi-backup
Auto Backup HF script.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cd /workspace/mindi-backup
2
+
3
+ while true; do
4
+ for f in backups/*.tar.gz; do
5
+ if [ ! -f "$f.uploaded" ]; then
6
+ echo "Uploading $f"
7
+ hf upload mindi-backups "$f"
8
+ touch "$f.uploaded"
9
+ fi
10
+ done
11
+ sleep 300
12
+ done
Full pipeline setup for AMC jupyter notebook.txt ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ok tell me from start after I reopened my jupyter notebook what to its important to setup an seprate env for it or not
2
+
3
+ Good β€” let’s reset cleanly and do this proper production-style setup so you don’t face issues again.
4
+
5
+ I’ll give you exact steps from scratch after restart πŸ‘‡
6
+
7
+ πŸš€ 0. DO YOU NEED NEW ENV?
8
+ βœ” YES β€” ALWAYS create fresh venv after restart
9
+ Why:
10
+ βœ” Jupyter sessions are not persistent
11
+ βœ” Packages may break / mismatch
12
+ βœ” Cleaner + safer setup
13
+ πŸš€ 1. GO TO WORKSPACE
14
+ cd /workspace
15
+ πŸš€ 2. CREATE NEW ENV
16
+ python3 -m venv mindi_env
17
+ source mindi_env/bin/activate
18
+ πŸš€ 3. INSTALL PYTORCH (AMD ROCm)
19
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
20
+ πŸš€ 4. VERIFY GPU
21
+ python -c "import torch; print(torch.cuda.is_available())"
22
+
23
+ πŸ‘‰ Must print:
24
+
25
+ True
26
+ πŸš€ 5. INSTALL REQUIRED LIBS
27
+ pip install transformers datasets accelerate peft sentencepiece tqdm
28
+
29
+ ⚠️ DO NOT install:
30
+
31
+ ❌ bitsandbytes
32
+ πŸš€ 6. INSTALL GIT LFS (IMPORTANT)
33
+ apt update && apt install -y git-lfs
34
+ πŸš€ 7. CLONE YOUR REPO
35
+ git clone https://huggingface.co/Mindigenous/mindi-backup
36
+ cd mindi-backup
37
+ πŸš€ 8. LOGIN HF (FOR BACKUPS)
38
+ hf auth login
39
+ πŸš€ 9. DOWNLOAD LATEST BACKUP
40
+
41
+ πŸ‘‰ Replace with your latest step:
42
+
43
+ hf download mindi-backups backup_step750.tar.gz
44
+ πŸš€ 10. EXTRACT BACKUP
45
+ tar -xzf backup_step750.tar.gz
46
+ πŸš€ 11. VERIFY CHECKPOINT
47
+ ls output/checkpoints
48
+
49
+ πŸ‘‰ Should show:
50
+
51
+ checkpoint-750
52
+ πŸš€ 12. CONFIGURE ACCELERATE
53
+ accelerate config
54
+
55
+ Use:
56
+
57
+ βœ” No distributed
58
+ βœ” GPU
59
+ βœ” bf16
60
+ βœ” No DeepSpeed
61
+ πŸš€ 13. START TRAINING (IMPORTANT)
62
+ accelerate launch train.py
63
+
64
+ ❌ DO NOT use:
65
+
66
+ --no-resume
67
+ 🧠 RESULT
68
+ βœ” Training resumes from last checkpoint
69
+ βœ” No data loss
70
+ βœ” Continues from step ~750
71
+
72
+ # download properly
73
+ hf download Mindigenous/mindi-backups backup_step500.tar.gz --local-dir .
74
+
75
+ # extract
76
+ tar -xzf backup_step500.tar.gz
77
+
78
+ # verify
79
+ ls output/checkpoints
80
+
81
+ # resume
82
+ accelerate launch train.py
data/final/old train jsonl/train.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0f78cdcc0171535ad8ac533beccaec3aab78ef94870055bdf7dd5c798d629aef
3
- size 1867627125
 
 
 
 
dataset.py CHANGED
@@ -7,11 +7,10 @@ from config import PATHS, TRAINING_CONFIG
7
  from utils import read_jsonl
8
 
9
 
10
- def format_prompt(instruction: str, input_text: str, output_text: str) -> str:
11
  return (
12
- f"### Instruction:\n{instruction}\n"
13
- f"### Input:\n{input_text}\n"
14
- f"### Response:\n{output_text}"
15
  )
16
 
17
 
@@ -29,13 +28,17 @@ class LocalJsonlInstructionDataset(Dataset):
29
 
30
  def __getitem__(self, idx: int) -> Dict[str, torch.Tensor]:
31
  sample = self.samples[idx]
32
- text = format_prompt(
33
- instruction=sample["instruction"],
34
- input_text="",
35
- output_text=sample["response"],
36
- )
 
 
 
 
37
  encoded = self.tokenizer(
38
- text,
39
  truncation=True,
40
  max_length=self.max_length,
41
  padding="max_length",
@@ -46,11 +49,23 @@ class LocalJsonlInstructionDataset(Dataset):
46
  attention_mask = encoded["attention_mask"].squeeze(0)
47
 
48
  labels = input_ids.clone()
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  labels[attention_mask == 0] = -100
50
 
51
  return {
52
  "input_ids": input_ids,
53
  "attention_mask": attention_mask,
54
  "labels": labels,
55
- }
56
-
 
7
  from utils import read_jsonl
8
 
9
 
10
+ def format_prompt(instruction: str, response: str) -> str:
11
  return (
12
+ f"### Instruction:\n{instruction}\n\n"
13
+ f"### Response:\n{response}"
 
14
  )
15
 
16
 
 
28
 
29
  def __getitem__(self, idx: int) -> Dict[str, torch.Tensor]:
30
  sample = self.samples[idx]
31
+
32
+ instruction = sample["instruction"]
33
+ response = sample["response"]
34
+
35
+ # πŸ”₯ Build prompt (without response first)
36
+ prompt = f"### Instruction:\n{instruction}\n\n### Response:\n"
37
+ full_text = prompt + response
38
+
39
+ # Tokenize full text
40
  encoded = self.tokenizer(
41
+ full_text,
42
  truncation=True,
43
  max_length=self.max_length,
44
  padding="max_length",
 
49
  attention_mask = encoded["attention_mask"].squeeze(0)
50
 
51
  labels = input_ids.clone()
52
+
53
+ # πŸ”₯ Mask instruction part (ONLY train on response)
54
+ prompt_ids = self.tokenizer(
55
+ prompt,
56
+ truncation=True,
57
+ max_length=self.max_length,
58
+ return_tensors="pt",
59
+ )["input_ids"].squeeze(0)
60
+
61
+ prompt_len = min(len(prompt_ids), self.max_length)
62
+ labels[:prompt_len] = -100
63
+
64
+ # Mask padding
65
  labels[attention_mask == 0] = -100
66
 
67
  return {
68
  "input_ids": input_ids,
69
  "attention_mask": attention_mask,
70
  "labels": labels,
71
+ }