AttributeError: 'NoneType' object has no attribute 'deepspeed_config'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Traceback (most recent call last):
File "finetune_moss.py", line 303, in
train(args)
File "finetune_moss.py", line 175, in train
accelerator.state.deepspeed_plugin.deepspeed_config['train_micro_batch_size_per_gpu'] = args.train_bsz_per_gpu
AttributeError: 'NoneType' object has no attribute 'deepspeed_config'
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.
Research direction
Read finetune_moss.py around lines 175 and 303, then inspect how accelerator.state.deepspeed_plugin is initialized before the failing access. Reproduce the reported training path and confirm that it no longer raises the NoneType deepspeed_config error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100