deepspeedai / deepspeedai/DeepSpeedExamples
enable critic_gradient_checkpointing, get error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.8k
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 1
Description
self.critic.gradient_checkpointing_enable()
File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/engine.py", line 454, in __getattr__
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'DeepSpeedEngine' object has no attribute 'gradient_checkpointing_enable'
how to solve this problem?
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
Start from the shown call to self.critic.gradient_checkpointing_enable() and inspect how self.critic is created and wrapped by DeepSpeedEngine. Check the relevant DeepSpeed API and configuration path; done means enabling critic gradient checkpointing without the reported AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100