deepspeedai / deepspeedai/DeepSpeedExamples

enable critic_gradient_checkpointing, get error

Open
#578 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

deespeed chat question
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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.