File size: 6,014 Bytes
762eba6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/2-0...
Using tokenizer model bclavie/olmo_bert_template...
Using 1 processes for tokenization, with 1000 items per process.

Processing samples:   0%|          | 0/30424 [00:00<?, ?it/s]
Processing samples:   3%|β–Ž         | 1000/30424 [02:07<1:02:44,  7.82it/s]
Processing samples:   7%|β–‹         | 2000/30424 [03:25<46:31, 10.18it/s]  
Processing samples:   7%|β–‹         | 2000/30424 [03:40<46:31, 10.18it/s]
Processing samples:  10%|β–‰         | 3000/30424 [04:34<38:54, 11.75it/s]
Processing samples:  10%|β–‰         | 3000/30424 [04:50<38:54, 11.75it/s]
Processing samples:  13%|β–ˆβ–Ž        | 4000/30424 [06:01<37:39, 11.69it/s]
Processing samples:  13%|β–ˆβ–Ž        | 4000/30424 [06:20<37:39, 11.69it/s]
Processing samples:  16%|β–ˆβ–‹        | 5000/30424 [07:09<33:38, 12.59it/s]
Processing samples:  16%|β–ˆβ–‹        | 5000/30424 [07:20<33:38, 12.59it/s]
Processing samples:  20%|β–ˆβ–‰        | 6000/30424 [08:11<29:58, 13.58it/s]
Processing samples:  20%|β–ˆβ–‰        | 6000/30424 [08:30<29:58, 13.58it/s]
Processing samples:  23%|β–ˆβ–ˆβ–Ž       | 7000/30424 [09:26<28:51, 13.53it/s]
Processing samples:  23%|β–ˆβ–ˆβ–Ž       | 7000/30424 [09:40<28:51, 13.53it/s]
Processing samples:  26%|β–ˆβ–ˆβ–‹       | 8000/30424 [11:01<30:07, 12.40it/s]
Processing samples:  26%|β–ˆβ–ˆβ–‹       | 8000/30424 [11:20<30:07, 12.40it/s]
Processing samples:  30%|β–ˆβ–ˆβ–‰       | 9000/30424 [12:18<28:23, 12.58it/s]
Processing samples:  30%|β–ˆβ–ˆβ–‰       | 9000/30424 [12:30<28:23, 12.58it/s]
Processing samples:  33%|β–ˆβ–ˆβ–ˆβ–Ž      | 10000/30424 [13:35<26:47, 12.70it/s]
Processing samples:  33%|β–ˆβ–ˆβ–ˆβ–Ž      | 10000/30424 [13:50<26:47, 12.70it/s]
Processing samples:  36%|β–ˆβ–ˆβ–ˆβ–Œ      | 11000/30424 [14:51<25:14, 12.83it/s]
Processing samples:  36%|β–ˆβ–ˆβ–ˆβ–Œ      | 11000/30424 [15:10<25:14, 12.83it/s]
Processing samples:  39%|β–ˆβ–ˆβ–ˆβ–‰      | 12000/30424 [16:10<24:01, 12.78it/s]
Processing samples:  39%|β–ˆβ–ˆβ–ˆβ–‰      | 12000/30424 [16:30<24:01, 12.78it/s]
Processing samples:  43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž     | 13000/30424 [17:31<22:55, 12.67it/s]
Processing samples:  43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž     | 13000/30424 [17:50<22:55, 12.67it/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 298, in finish
    self.flush_shard()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/site-packages/streaming/base/format/base/writer.py", line 428, in flush_shard
    raw_data = self.encode_joint_shard()
  File "/home/oweller/miniconda3/envs/bert24/lib/python3.10/site-packages/streaming/base/format/mds/writer.py", line 143, in encode_joint_shard
    sample_data = b''.join(self.new_samples)
KeyboardInterrupt

Processing samples:  43%|β–ˆβ–ˆβ–ˆβ–ˆβ–Ž     | 13000/30424 [18:06<24:16, 11.97it/s]