Traceback (most recent call last):


 "pretrain_gpt2.py", line 625, in <module>

main()


 "pretrain_gpt2.py", line 569, in main

args.eod_token = get_train_val_test_data(args)


 "pretrain_gpt2.py", line 515, in get_train_val_test_data

args)


 "/home/ubuntu/Megatron-LM/configure_data.py", line 34, in apply

return make_loaders(args)


 "/home/ubuntu/Megatron-LM/configure_data.py", line 170, in make_loaders

train, tokenizer = data_utils.make_dataset(**data_set_args)


 "/home/ubuntu/Megatron-LM/data_utils/__init__.py", line 114, in make_dataset

ds = [GPT2Dataset(d, max_seq_len=seq_length) if d is not None else None for d in ds]


 "/home/ubuntu/Megatron-LM/data_utils/__init__.py", line 114, in <listcomp>

ds = [GPT2Dataset(d, max_seq_len=seq_length) if d is not None else None for d in ds]


 "/home/ubuntu/Megatron-LM/data_utils/datasets.py", line 477, in __init__

self.init_weighting()


 "/home/ubuntu/Megatron-LM/data_utils/datasets.py", line 487, in init_weighting

self.weighting = list(accumulate(lens))
TypeError: iteration over a 0-d array

Traceback (most recent call last):


 "/usr/local/lib/python3.7/dist-packages/aiohttp/web_protocol.py", line 418, in start

resp = await task


 "/usr/local/lib/python3.7/dist-packages/aiohttp/web_app.py", line 458, in _handle

resp = await handler(request)


 "/srv/app/electrum/electrum/daemon.py", line 352, in handle

response = await jsonrpcserver.async_dispatch(request, methods=self.methods)


 "/usr/local/lib/python3.7/dist-packages/jsonrpcserver/async_dispatcher.py", line 103, in dispatch

log_response(str(response), trim_log_values=trim_log_values)


 "/usr/local/lib/python3.7/dist-packages/jsonrpcserver/response.py", line 133, in __str__

return json.dumps(sort_dict_response(self.deserialized()))


 "/usr/lib/python3.7/json/__init__.py", line 231, in dumps

return _default_encoder.encode(obj)


 "/usr/lib/python3.7/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/lib/python3.7/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/usr/lib/python3.7/json/encoder.py", line 179, in default

raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type datetime is not JSON serializable
