Comments (10)
Got it fixed. Thanks!
from notebooks.
Got it fixed. Thanks!
I don't like re-opening this, but could you share some insight into what was the problem and how you fixed it? I'm having the same issue.
from notebooks.
Got it fixed. Thanks!
I don't like re-opening this, but could you share some insight into what was the problem and how you fixed it? I'm having the same issue.
Make sure you are using the latest version of datasets. Run pip install --upgrade datasets
to upgrade your datasets library.
from notebooks.
Hi, can we reopen this issue? I'm having the same problem on datasets 1.2.1 (which is the current version in conda).
>>> from datasets import load_metric
>>> metric = load_metric("glue", "mnli")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/ext3/miniconda3/lib/python3.8/site-packages/datasets-1.2.1-py3.8.egg/datasets/load.py", line 502, in load_metric
File "/ext3/miniconda3/lib/python3.8/site-packages/datasets-1.2.1-py3.8.egg/datasets/load.py", line 66, in import_main_class
File "/ext3/miniconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/ns4008/.cache/huggingface/modules/datasets_modules/metrics/glue/e4606ab9804a36bcd5a9cebb2cb65bb14b6ac78ee9e6d5981fa679a495dd55de/glue.py", line 105, in <module>
@datasets.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
AttributeError: module 'datasets.utils.file_utils' has no attribute 'add_start_docstrings'
from notebooks.
Sorry for the late reply. The error message is more or less confusing. My case/experience was that the error was nothing related to this function. Check and make sure your packages/environment/dependencies are updated and compatible, including pip and python wheels etc. Please let me know if you experience any other questions. Thx.
from notebooks.
@Autumn1994 What version are you using of datasets and python?
from notebooks.
Python 3.6.9 and 1.2.1 for datasets.
from notebooks.
I am using 1.2.1 as well. Could you give some more details of how you fixed your problem? It seems that we had the same error thrown by the same function.
from notebooks.
@nsaphra I couldn't remember every steps I took as I didn't have a clear path that time and it's a bit self-exploratory. Sorry about that. My guess is that the error was caused by the recent updates of python wheels (Dec 2020). Check that first and then reinstall the packages (not a must) and see if that works.
from notebooks.
@nsaphra I just faced the same issue. I was using 1.2.1 from conda and received the same AttributeError complaining about 'add_start_docstrings'. Uninstalling the conda installed datasets and then installing the latest datasets (version 1.5.0) using pip install solved the issue for me. I don't like mixing up conda and pip installs in the same environments but this will have to do for now, until 1.5.0 is made available through conda.
from notebooks.
Related Issues (20)
- training, deploying sentence transformer model ( setfit method) in sagemaker pipeline HOT 2
- SAM iou_score is greater than 1?
- Incomplete Output from IDEFICS Inference Code HOT 1
- AttributeError: 'NoneType' object has no attribute 'get' while training HOT 2
- Pandas is required for the TAPAS tokenizer
- Separate model and inference script tar.gz not working.
- instruction finetuning IDEFICS
- Fine_tune_BLIP2_on_an_image_captioning_dataset_PEFT.ipynb loss is all NaN HOT 25
- Training SegFormer model not working (goes through notebook, but model loss becomes nan) on dataset I created (stuck for a week or so) HOT 5
- Informer/Transformer: multivariate forecasting with a panel of time-series
- Broken link in sagemaker notebook HOT 2
- SDXL_Dreambooth_LoRA_advanced_example.ipynb Training Issue
- FSDP training not loading saving the best checkpoint
- PatchTSTMixer fix HOT 4
- (TF)DistilBertForTokenClassification requires the 🤗 Datasets library
- Broken link in Load LoRAs for inference HOT 1
- RuntimeError expected scalar type Long but found Int in audio_classification.ipynb
- Incorrect variable name `tokenized_dataset` in Chapter 7 section 6 of course HOT 1
- 4 files in transformers_doc/en/ directory are newer than the ones in transformers_doc and should be identical. HOT 1
- Broken link for diffusers/loading_adapters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notebooks.