Skip to content

Commit

Permalink
Remove setup_fairseq2 from HF config recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalioglu committed Jan 8, 2025
1 parent f900674 commit 85b364d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fairseq2/recipes/llama/write_hf_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from fairseq2.models.llama import load_llama_config
from fairseq2.models.llama.integ import convert_to_huggingface_config
from fairseq2.recipes.cli import CliCommandHandler
from fairseq2.setup import setup_fairseq2

log = get_log_writer(__name__)

Expand All @@ -43,9 +42,7 @@ def init_parser(self, parser: ArgumentParser) -> None:
)

@override
def run(self, args: Namespace) -> int:
setup_fairseq2()

def run(self, parser: ArgumentParser, args: Namespace) -> int:
arch = (
default_asset_store.retrieve_card(args.model).field("model_arch").as_(str)
)
Expand Down

0 comments on commit 85b364d

Please sign in to comment.