Skip to content

Commit

Permalink
allow passing model keyword arguments through the parallelize interfa…
Browse files Browse the repository at this point in the history
…ce (#97)
  • Loading branch information
Dando18 authored Oct 25, 2024
1 parent 660a224 commit 6252013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axonn/models/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@


@contextmanager
def parallelize(model_id):
config = AutoConfig.from_pretrained(model_id)
def parallelize(model_id, model_kwargs={}):
config = AutoConfig.from_pretrained(model_id, **model_kwargs)
architecture = config.architectures[0]
# config.architectures is a list, not sure what to do
# if it has multiple elements
Expand Down

0 comments on commit 6252013

Please # to comment.