mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
full codespell coverage
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -63,7 +63,7 @@ class Sampler(ABC):
|
||||
f: Callable[[SamplerModelArgs], torch.Tensor],
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
Generate a new sample given the the intial sample x and score function f.
|
||||
Generate a new sample given the the initial sample x and score function f.
|
||||
"""
|
||||
|
||||
def get_next_timestep(
|
||||
|
||||
@@ -193,10 +193,10 @@ def gather_seq_scatter_heads_qkv(
|
||||
restore_shape: bool = True,
|
||||
):
|
||||
"""
|
||||
A func to sync splited qkv tensor
|
||||
A func to sync split qkv tensor
|
||||
qkv_tensor: the tensor we want to do alltoall with. The last dim must
|
||||
be the projection_idx, which we will split into 3 part. After
|
||||
spliting, the gather idx will be projecttion_idx + 1
|
||||
splitting, the gather idx will be projecttion_idx + 1
|
||||
seq_dim: gather_dim for all2all comm
|
||||
restore_shape: if True, output will has the same shape length as input
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user