Skip to content

Commit

Permalink
inference - don't default w accelerate, fix base model (#2216) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Dec 23, 2024
1 parent 3742deb commit d852d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/axolotl/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def evaluate(config: str, accelerate: bool, **kwargs):
@click.argument("config", type=click.Path(exists=True, path_type=str))
@click.option(
"--accelerate/--no-accelerate",
default=True,
default=False,
help="Use accelerate launch for multi-GPU inference",
)
@click.option(
Expand Down Expand Up @@ -124,7 +124,7 @@ def inference(
if lora_model_dir:
kwargs["lora_model_dir"] = lora_model_dir
if base_model:
kwargs["output_dir"] = base_model
kwargs["base_model"] = base_model

if accelerate:
base_cmd = ["accelerate", "launch", "-m", "axolotl.cli.inference"]
Expand Down

0 comments on commit d852d7a

Please sign in to comment.