x-transformers 1.30.21__py3-none-any.whl → 1.30.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -710,7 +710,7 @@ class LayerScale(Module):
710
710
  out, *rest = out
711
711
  return out * self.gamma, *rest
712
712
 
713
- class ConditionedLayerScale(Module):
713
+ class AdaptiveLayerScale(Module):
714
714
  def __init__(self, fn: Module, dim, dim_condition = None, init_bias_value = -2.):
715
715
  super().__init__()
716
716
  self.fn = fn
@@ -1181,7 +1181,7 @@ class AttentionLayers(Module):
1181
1181
  use_simple_rmsnorm = False,
1182
1182
  use_adaptive_layernorm = False,
1183
1183
  use_adaptive_rmsnorm = False,
1184
- use_conditioned_layerscale = False, # paired with use_adaptive_layernorm for ada-ln-zero from DiT paper
1184
+ use_adaptive_layerscale = False, # paired with use_adaptive_layernorm for ada-ln-zero from DiT paper
1185
1185
  dim_condition = None,
1186
1186
  adaptive_condition_mlp = False,
1187
1187
  adaptive_condition_mlp_expansion = 4,
@@ -1332,15 +1332,15 @@ class AttentionLayers(Module):
1332
1332
 
1333
1333
  # determine post branch wrapper
1334
1334
 
1335
- assert at_most_one_of(use_layerscale, use_conditioned_layerscale)
1335
+ assert at_most_one_of(use_layerscale, use_adaptive_layerscale)
1336
1336
 
1337
1337
  post_branch_fn = None
1338
1338
  post_branch_fn_needs_condition = False
1339
1339
 
1340
1340
  if use_layerscale:
1341
1341
  post_branch_fn = partial(LayerScale, dim = dim, init_value = layerscale_init_value)
1342
- elif use_conditioned_layerscale:
1343
- post_branch_fn = partial(ConditionedLayerScale, dim = dim, dim_condition = dim_condition * dim_condition_mult)
1342
+ elif use_adaptive_layerscale:
1343
+ post_branch_fn = partial(AdaptiveLayerScale, dim = dim, dim_condition = dim_condition * dim_condition_mult)
1344
1344
  post_branch_fn_needs_condition = True
1345
1345
 
1346
1346
  self.post_branch_fn_needs_condition = post_branch_fn_needs_condition
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: x-transformers
3
- Version: 1.30.21
3
+ Version: 1.30.22
4
4
  Summary: X-Transformers - Pytorch
5
5
  Home-page: https://github.com/lucidrains/x-transformers
6
6
  Author: Phil Wang
@@ -4,11 +4,11 @@ x_transformers/autoregressive_wrapper.py,sha256=uX8Mb0zLsQrZECt_9UGt35g7tC05Rk3n
4
4
  x_transformers/continuous.py,sha256=WO52n9lFAXv5-SGadi2cApGF8dkouN8QSTEOuC7erj8,6180
5
5
  x_transformers/dpo.py,sha256=LjvWgCkqTl-UuehrzQ8nkX5guLr4whYwsmm7SKSwdls,3450
6
6
  x_transformers/nonautoregressive_wrapper.py,sha256=ys_p8obc7lTeeodCqvkRKxOXQ1C9T3j5Jwr-JbVgnXk,10432
7
- x_transformers/x_transformers.py,sha256=YFycvL28Y-Y-sr-_P2umC9qZ0nAfKFIBR_5mI1oKog0,73974
7
+ x_transformers/x_transformers.py,sha256=z1LzQMpJSNgalsnZJB-EsxqQk6aF0rQrv98VkiBTHnc,73959
8
8
  x_transformers/xl_autoregressive_wrapper.py,sha256=DCx4n0_c1tFai4nOqaWVnqx2p9eutsZsDMiMP1ckxNU,4117
9
9
  x_transformers/xval.py,sha256=QE1ltYZTR_eGgIHPP2BrMWVWVLqMW-OpDZh87BSmQEg,8563
10
- x_transformers-1.30.21.dist-info/LICENSE,sha256=As9u198X-U-vph5noInuUfqsAG2zX_oXPHDmdjwlPPY,1066
11
- x_transformers-1.30.21.dist-info/METADATA,sha256=7HN3_fnSG0wGIGijv85bqfd8w4_K1m10Pv_PmI8kNrk,662
12
- x_transformers-1.30.21.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
13
- x_transformers-1.30.21.dist-info/top_level.txt,sha256=hO6KGpFuGucRNEtRfme4A_rGcM53AKwGP7RVlRIxS5Q,15
14
- x_transformers-1.30.21.dist-info/RECORD,,
10
+ x_transformers-1.30.22.dist-info/LICENSE,sha256=As9u198X-U-vph5noInuUfqsAG2zX_oXPHDmdjwlPPY,1066
11
+ x_transformers-1.30.22.dist-info/METADATA,sha256=aU33r8OyivazXN7QW5np0LdRaZGJY3x7pBSx55iFGdA,662
12
+ x_transformers-1.30.22.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
13
+ x_transformers-1.30.22.dist-info/top_level.txt,sha256=hO6KGpFuGucRNEtRfme4A_rGcM53AKwGP7RVlRIxS5Q,15
14
+ x_transformers-1.30.22.dist-info/RECORD,,