Skip to content

Commit

Permalink
upgrade accelerate to 1.0.1 (#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Oct 14, 2024
1 parent ec4272c commit 335027f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ peft==0.13.2
transformers==4.45.2
tokenizers>=0.20.1
bitsandbytes==0.44.1
accelerate==0.34.2
accelerate==1.0.1
datasets==3.0.1
deepspeed==0.14.4
pydantic==2.6.3
Expand Down
3 changes: 0 additions & 3 deletions src/axolotl/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import torch
import transformers.modelcard
from accelerate import Accelerator
from accelerate.logging import get_logger
from accelerate.utils import save_fsdp_model
from datasets import Dataset
Expand Down Expand Up @@ -97,8 +96,6 @@ def train(
if cfg.adapter:
msg += " and peft_config..."
LOG.debug(msg)
# we wait unitl the last possible moment to setup Accelerator
Accelerator()
model, peft_config = load_model(
cfg, tokenizer, processor=processor, inference=cli_args.inference
)
Expand Down

0 comments on commit 335027f

Please sign in to comment.