Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Accelerator.__init__() got an unexpected keyword argument 'kwargs_handler' #3283

Open
2 of 4 tasks
fanfanffff1 opened this issue Dec 9, 2024 · 1 comment
Open
2 of 4 tasks

Comments

@fanfanffff1
Copy link

fanfanffff1 commented Dec 9, 2024

System Info

accelerate                  1.1.1

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
  • My own task or dataset (give details below)

Reproduction

from accelerate.utils import InitProcessGroupKwargs
from accelerate import Accelerator
from datetime import *

accelerator = Accelerator(
gradient_accumulation_steps=args.gradient_accumulation_steps,
mixed_precision=args.mixed_precision,
log_with=args.report_to,
project_config=accelerator_project_config,
kwargs_handler=[InitProcessGroupKwargs(timeout=timedelta(seconds=10 * 3600))],
)

Expected behavior

Hope accelerator Operating normally

@ggoggam
Copy link

ggoggam commented Dec 9, 2024

The key is kwargs_handlers, not kwargs_handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants