Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'dill._dill' has no attribute 'stack' #239

Open
yangjenhao opened this issue Aug 15, 2022 · 0 comments
Open

AttributeError: module 'dill._dill' has no attribute 'stack' #239

yangjenhao opened this issue Aug 15, 2022 · 0 comments

Comments

@yangjenhao
Copy link

yangjenhao commented Aug 15, 2022

NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2
using your notebooks google colab
https://colab.research.google.com/drive/12LjJazBl7Gam0XBPy_y0CTOJZeZ34c2v?usp=sharing
when do this

train_dataset = train_dataset.map(
    process_data_to_model_inputs,
    batched=True,
    batch_size=batch_size,
    remove_columns=["article", "abstract", "section_names"],
)

AttributeError Traceback (most recent call last)
in
3 batched=True,
4 batch_size=batch_size,
----> 5 remove_columns=["article", "abstract", "section_names"],
6 )

12 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py in save_function(pickler, obj)
529 globalvars = dill.detect.globalvars
530 globs = globalvars(obj, recurse=True, builtin=True)
--> 531 if id(obj) in dill._dill.stack:
532 globs = obj.globals if dill._dill.PY3 else obj.func_globals
533 else:

AttributeError: module 'dill._dill' has no attribute 'stack'


And I already try this
pip install dill==0.3.4
but not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant