Advertisement
kopyl

Untitled

Jan 27th, 2024
1,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.59 KB | None | 0 0
  1. root@55cb7f729062:/workspace# ls
  2. HF_HOME  Untitled.ipynb  __pycache__  dataset-cache  test.py  train_notebook_sdxl_mapping_saving.ipynb
  3. root@55cb7f729062:/workspace# python
  4. Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
  5. Type "help", "copyright", "credits" or "license" for more information.
  6. >>> from test import map_train
  7. <class 'datasets.arrow_dataset.Dataset'>
  8. You are using a model of type clip_text_model to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
  9. You are using a model of type clip_text_model to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
  10. >>> map_train()
  11. Map (num_proc=2):   0%|                                                              | 0/833 [00:00<?, ? examples/s]<class 'datasets.arrow_dataset.Dataset'>
  12. You are using a model of type clip_text_model to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
  13. You are using a model of type clip_text_model to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
  14. Process SpawnPoolWorker-1:
  15. Traceback (most recent call last):
  16.   File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 314, in _bootstrap
  17.     self.run()
  18.   File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 108, in run
  19.     self._target(*self._args, **self._kwargs)
  20.   File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 114, in worker
  21.     task = get()
  22.   File "/usr/local/lib/python3.10/dist-packages/multiprocess/queues.py", line 370, in get
  23.     return _ForkingPickler.loads(res)
  24.   File "/usr/local/lib/python3.10/dist-packages/dill/_dill.py", line 301, in loads
  25.     return load(file, ignore, **kwds)
  26.   File "/usr/local/lib/python3.10/dist-packages/dill/_dill.py", line 287, in load
  27.     return Unpickler(file, ignore=ignore, **kwds).load()
  28.   File "/usr/local/lib/python3.10/dist-packages/dill/_dill.py", line 442, in load
  29.     obj = StockUnpickler.load(self)
  30.   File "/usr/local/lib/python3.10/dist-packages/dill/_dill.py", line 432, in find_class
  31.     return StockUnpickler.find_class(self, module, name)
  32.   File "/workspace/test.py", line 220, in <module>
  33.     set_start_method("spawn")
  34.   File "/usr/local/lib/python3.10/dist-packages/multiprocess/context.py", line 247, in set_start_method
  35.     raise RuntimeError('context has already been set')
  36. RuntimeError: context has already been set
  37. Map (num_proc=2):   0%|                                                              | 0/833 [00:19<?, ? examples/s]
  38. Traceback (most recent call last):
  39.   File "<stdin>", line 1, in <module>
  40.   File "/workspace/test.py", line 224, in map_train
  41.     return train_dataset.map(compute_embeddings_fn, batched=True, batch_size=4, with_rank=True, num_proc=2)
  42.   File "/usr/local/lib/python3.10/dist-packages/datasets/arrow_dataset.py", line 592, in wrapper
  43.     out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
  44.   File "/usr/local/lib/python3.10/dist-packages/datasets/arrow_dataset.py", line 557, in wrapper
  45.     out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
  46.   File "/usr/local/lib/python3.10/dist-packages/datasets/arrow_dataset.py", line 3185, in map
  47.     for rank, done, content in iflatmap_unordered(
  48.   File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 647, in iflatmap_unordered
  49.     raise RuntimeError(
  50. RuntimeError: One of the subprocesses has abruptly died during map operation.To debug the error, disable multiprocessing.
  51. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement