AttributeError: модуль «dill» не имеет атрибута «PY3».Python

Программы на Python
Anonymous
AttributeError: модуль «dill» не имеет атрибута «PY3».

Сообщение Anonymous »


This is the error I encountered when trying to apply to the dataset, is there any way to fix it?

/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py:2645: FutureWarning: The `pad_to_max_length` argument is deprecated and will be removed in a future version, use `padding=True` or `padding='longest'` to pad to the longest sequence in the batch, or use `padding='max_length'` to pad to a max length. In this case, you can give a specific length with `max_length` (e.g. `max_length=45`) or leave max_length to None to pad to the maximal input size of the model (e.g. 512 for Bert). warnings.warn( --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in () ----> 1 train_ds= train_dataset.map(encode) 2 # valid_ds= valid_dataset.map(encode) 21 frames /usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py in _save_code(pickler, obj) 393 co_firstlineno = 1 if obj.co_filename.startswith("

Источник: https://stackoverflow.com/questions/780 ... ribute-py3

Вернуться в «Python»