OpenMOSS / OpenMOSS/MOSS

AttributeError: 'NoneType' object has no attribute 'deepspeed_config'

Open
#80 7 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.