Skip to content

Commit a3be298

Browse files
committed
turn on a new effective technique from x-transformers
1 parent b42499f commit a3be298

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

meshgpt_pytorch/meshgpt_pytorch.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,15 @@ def __init__(
457457
quantize_dropout = True,
458458
quantize_dropout_cutoff_index = 1,
459459
quantize_dropout_multiple_of = 1,
460-
experimental_softplus_entropy_loss=True,
461460
),
462461
rvq_kwargs: dict = dict(
463462
kmeans_init = True,
464463
threshold_ema_dead_code = 2,
465464
),
466465
rlfq_kwargs: dict = dict(
467466
frac_per_sample_entropy = 1.,
468-
soft_clamp_input_value = 10.
467+
soft_clamp_input_value = 10.,
468+
experimental_softplus_entropy_loss = True,
469469
),
470470
rvq_stochastic_sample_codes = True,
471471
sageconv_kwargs: dict = dict(
@@ -1103,7 +1103,9 @@ def __init__(
11031103
attn_heads = 16,
11041104
attn_kwargs: dict = dict(
11051105
ff_glu = True,
1106-
attn_num_mem_kv = 4
1106+
attn_num_mem_kv = 4,
1107+
add_value_residual = True,
1108+
learned_value_residual_mix = True
11071109
),
11081110
cross_attn_num_mem_kv = 4, # needed for preventing nan when dropping out text condition
11091111
dropout = 0.,

meshgpt_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.0'
1+
__version__ = '1.7.1'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'torch_geometric',
4141
'tqdm',
4242
'vector-quantize-pytorch>=1.18.1',
43-
'x-transformers>=1.30.19,<1.31',
43+
'x-transformers>=1.42.23',
4444
],
4545
setup_requires=[
4646
'pytest-runner',

0 commit comments

Comments
 (0)