Skip to content

Commit

Permalink
init bert examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitika committed Jul 22, 2021
1 parent f2fc1d8 commit 79aaf45
Show file tree
Hide file tree
Showing 2 changed files with 412 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/varuna.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and used for :class:`Varuna` initialisation. (see :doc:`launching`)
For profiling and automatic partitioning, Varuna needs sample inputs.
For this, a ``get_batch_fn`` needs to be passed during initialisation which returns a sample input batch
of a given size. This is used to profile the model's computation graph and should return
a dictionary of keywords to args, similar to the ``step`` function.
a dictionary of keywords to args, similar to the ``step`` function.

The model passed to :class:`Varuna` should be on CPU. Once the profiling and partitioning are done,
the model is moved to the assigned GPU. So the user need not do ``model.cuda()`` anywhere.
Expand Down
Loading

0 comments on commit 79aaf45

Please sign in to comment.