File size: 6,510 Bytes
66e27c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
Because `predownload` was not specified, it will default to 8*batch_size if batch_size is not None, otherwise 64. Prior to Streaming v0.7.0, `predownload` defaulted to max(batch_size, 256 * batch_size // num_canonical_nodes).
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Using local dataset /home/oweller/bert24-data/data/ProLong_text/arxiv/0-5...
Using tokenizer model bclavie/olmo_bert_template...
Using 1 processes for tokenization, with 1000 items per process.

Processing samples:   0%|          | 0/30326 [00:00<?, ?it/s]
Processing samples:   3%|β–Ž         | 1000/30326 [01:26<42:30, 11.50it/s]
Processing samples:   3%|β–Ž         | 1000/30326 [01:40<42:30, 11.50it/s]
Processing samples:   7%|β–‹         | 2000/30326 [02:41<37:36, 12.55it/s]
Processing samples:   7%|β–‹         | 2000/30326 [03:00<37:36, 12.55it/s]
Processing samples:  10%|β–‰         | 3000/30326 [04:00<36:09, 12.60it/s]
Processing samples:  10%|β–‰         | 3000/30326 [04:20<36:09, 12.60it/s]
Processing samples:  13%|β–ˆβ–Ž        | 4000/30326 [05:20<34:58, 12.55it/s]
Processing samples:  13%|β–ˆβ–Ž        | 4000/30326 [05:40<34:58, 12.55it/s]
Processing samples:  16%|β–ˆβ–‹        | 5000/30326 [06:33<32:34, 12.96it/s]
Processing samples:  16%|β–ˆβ–‹        | 5000/30326 [06:50<32:34, 12.96it/s]
Processing samples:  20%|β–ˆβ–‰        | 6000/30326 [07:53<31:38, 12.81it/s]
Processing samples:  20%|β–ˆβ–‰        | 6000/30326 [08:10<31:38, 12.81it/s]
Processing samples:  23%|β–ˆβ–ˆβ–Ž       | 7000/30326 [09:06<29:43, 13.08it/s]
Processing samples:  23%|β–ˆβ–ˆβ–Ž       | 7000/30326 [09:20<29:43, 13.08it/s]
Processing samples:  26%|β–ˆβ–ˆβ–‹       | 8000/30326 [10:21<28:17, 13.15it/s]
Processing samples:  26%|β–ˆβ–ˆβ–‹       | 8000/30326 [10:40<28:17, 13.15it/s]
Processing samples:  30%|β–ˆβ–ˆβ–‰       | 9000/30326 [11:39<27:11, 13.07it/s]
Processing samples:  30%|β–ˆβ–ˆβ–‰       | 9000/30326 [11:50<27:11, 13.07it/s]
Processing samples:  33%|β–ˆβ–ˆβ–ˆβ–Ž      | 10000/30326 [12:59<26:20, 12.86it/s]
Processing samples:  33%|β–ˆβ–ˆβ–ˆβ–Ž      | 10000/30326 [13:10<26:20, 12.86it/s]
Processing samples:  36%|β–ˆβ–ˆβ–ˆβ–‹      | 11000/30326 [14:05<23:54, 13.47it/s]
Processing samples:  36%|β–ˆβ–ˆβ–ˆβ–‹      | 11000/30326 [14:20<23:54, 13.47it/s]
Processing samples:  40%|β–ˆβ–ˆβ–ˆβ–‰      | 12000/30326 [15:24<23:06, 13.22it/s]
Processing samples:  40%|β–ˆβ–ˆβ–ˆβ–‰      | 12000/30326 [15:40<23:06, 13.22it/s]
Processing samples:  43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž     | 13000/30326 [16:47<22:30, 12.83it/s]
Processing samples:  43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž     | 13000/30326 [17:00<22:30, 12.83it/s]Traceback (most recent call last):
  File "/home/oweller/bert24-data/src/bert24_data/tokenization/tokenize_mds.py", line 81, in sample_dataset_from_config
    results = pool.map(process_func, chunks)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/pool.py", line 768, in get
    self.wait(timeout)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/pool.py", line 765, in wait
    self._event.wait(timeout)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/threading.py", line 607, in wait
    signaled = self._cond.wait(timeout)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/threading.py", line 320, in wait
    waiter.acquire()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/oweller/bert24-data/src/bert24_data/tokenization/tokenize_mds.py", line 64, in sample_dataset_from_config
    with mp.Pool(num_processes) as pool:
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
    self.terminate()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
    self._terminate()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/util.py", line 224, in __call__
    res = self._callback(*self._args, **self._kwargs)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/pool.py", line 732, in _terminate_pool
    p.join()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/process.py", line 149, in join
    res = self._popen.wait(timeout)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/popen_fork.py", line 43, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/popen_fork.py", line 27, in poll
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/oweller/bert24-data/src/bert24_data/tokenization/tokenize_mds.py", line 108, in <module>
    sample_dataset_from_config(args)
  File "/home/oweller/bert24-data/src/bert24_data/tokenization/tokenize_mds.py", line 63, in sample_dataset_from_config
    with MDSWriter(out=output_dir, columns=MDS_COLS_PRE_TOKENIZED, compression='zstd') as mds_writer:
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/site-packages/streaming/base/format/base/writer.py", line 354, in __exit__
    self.finish()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/site-packages/streaming/base/format/base/writer.py", line 300, in finish
    self._write_index()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/site-packages/streaming/base/format/base/writer.py", line 289, in _write_index
    sleep(1)
KeyboardInterrupt
Exception ignored in atexit callback: <function _exit_function at 0x7f7e9d9e76d0>
Traceback (most recent call last):
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/util.py", line 357, in _exit_function
    p.join()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/process.py", line 149, in join
    res = self._popen.wait(timeout)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/popen_fork.py", line 43, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/multiprocessing/popen_fork.py", line 27, in poll
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt: