You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Distributed implementation of a single Embedding Layer. Currently
403
406
only supports splitting across the embedding_dim.
404
407
- **Arguments:**
405
408
406
-
- See ``DistributedEmbedding`` for a description of the
409
+
- See :class:`smp.nn.DistributedEmbedding` for descriptions of the
407
410
arguments.
408
411
409
412
.. _enabling-tp:
@@ -447,7 +450,7 @@ following API:
447
450
448
451
- A context manager that enables or disables tensor parallelism for
449
452
any supported module that is created inside. If there are nested
450
-
contexts, the innermost will override the rest. If there are
453
+
contexts, the innermost overrides the rest. If there are
451
454
multiple supported modules created within the context, where one
452
455
is the submodule of the other, only the outermost module will be
453
456
distributed. If a supported module shares weights with another
@@ -465,7 +468,25 @@ following API:
465
468
with smp.tensor_parallelism(enabled=False):
466
469
self.m1 = nn.Linear(20, 20) # will not be distributed
467
470
468
-
- Keyword arguments `kwargs` can be used to modify the configurations of the distributed modules created inside the context. If a keyword argument provided here matches any `__init__` method arguments of a `DistributedModule` that substitutes a module created inside the `smp.tensor_parallelism` context, this keyword will override the value defined in the `init_hook`.
471
+
- ``kwargs`` - Keyword arguments that can be used to modify the configurations of
472
+
the distributed modules created inside the context.
473
+
If a keyword argument provided through it matches any ``__init__`` method arguments
474
+
of a ``DistributedModule`` that substitutes a module created inside
475
+
the ``smp.tensor_parallelism`` context, this keyword will override
476
+
the value defined in the ``init_hook``.
477
+
478
+
- (*For v1.7.0 and later*) Through the following additional keyword arguments,
479
+
the library supports `NVIDIA Megatron’s fused kernels
0 commit comments