Skip to content

Commit

Permalink
docs: document new loader_fun option
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Aug 3, 2023
1 parent ef42ae6 commit fbbf02b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bumblebee/conversion/pytorch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ defmodule Bumblebee.Conversion.PyTorch do
between the Axon model and the PyTorch state. For more details see
`Bumblebee.HuggingFace.Transformers.Model.params_mapping/1`
* `:loader_fun` - a 1-arity function that takes a path argument
and loads the params file.
Defaults to `Bumblebee.Conversion.PyTorch.Loader.load!/1`.
"""
@spec load_params!(Axon.t(), map(), Path.t() | list(Path.t()), keyword()) :: map()
def load_params!(model, input_template, path, opts \\ []) do
Expand Down

0 comments on commit fbbf02b

Please sign in to comment.