`AttributeError: readonly attribute` while trying to run training/HelloDeepSpeed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start with training/HelloDeepSpeed/train_bert.py and training/HelloDeepSpeed/requirements.txt, then reproduce the import failure in a fresh Python 3.10 environment. Trace the datasets import and its dependency versions to identify the compatibility issue; done means the HelloDeepSpeed training example imports successfully and can proceed past startup.
Written by the indexing model from the issue text.
Description
I am trying to run training/HelloDeepSpeed example on a fresh python virtualenv but getting below error.
I have installed dependencies using https://github.com/microsoft/DeepSpeedExamples/blob/master/training/HelloDeepSpeed/requirements.txt
Traceback (most recent call last):
File "/media/home/hemant/src/DeepSpeedExamples/training/HelloDeepSpeed/train_bert.py", line 10, in <module>
import datasets
File "/media/home/hemant/src/DeepSpeedExamples/venv/lib/python3.10/site-packages/datasets/__init__.py", line 34, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/media/home/hemant/src/DeepSpeedExamples/venv/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 46, in <module>
from .arrow_reader import ArrowReader
File "/media/home/hemant/src/DeepSpeedExamples/venv/lib/python3.10/site-packages/datasets/arrow_reader.py", line 33, in <module>
from .table import InMemoryTable, MemoryMappedTable, Table, concat_tables
File "/media/home/hemant/src/DeepSpeedExamples/venv/lib/python3.10/site-packages/datasets/table.py", line 331, in <module>
class InMemoryTable(TableBlock):
File "/media/home/hemant/src/DeepSpeedExamples/venv/lib/python3.10/site-packages/datasets/table.py", line 358, in InMemoryTable
def from_pandas(cls, *args, **kwargs):
File "/media/home/hemant/src/DeepSpeedExamples/venv/lib/python3.10/site-packages/datasets/table.py", line 21, in wrapper
out = wraps(arrow_table_method)(method)
File "/usr/lib/python3.10/functools.py", line 61, in update_wrapper
wrapper.__wrapped__ = wrapped
AttributeError: readonly attribute
Env details:
OS: Ubuntu 22.04
Python Version: 3.10.12
- Dominant language
- Python
- Stars
- 6.8k
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deepspeedai/DeepSpeedExamples
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
deepspeedai/DeepSpeedExamples#996 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
deepspeedai/DeepSpeedExamples#995 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
deepspeedai/DeepSpeedExamples#989 ·
-
moe example 404 Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
deepspeedai/DeepSpeedExamples#984 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
deepspeedai/DeepSpeedExamples#979 · 6 comments ·
All issues in deepspeedai/DeepSpeedExamples
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nwg-piotr/nwg-displays#145 ·