Skip to content

Commit

Permalink
turn on a new effective technique from x-transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 4, 2024
1 parent b42499f commit a3be298
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions meshgpt_pytorch/meshgpt_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,15 @@ def __init__(
quantize_dropout = True,
quantize_dropout_cutoff_index = 1,
quantize_dropout_multiple_of = 1,
experimental_softplus_entropy_loss=True,
),
rvq_kwargs: dict = dict(
kmeans_init = True,
threshold_ema_dead_code = 2,
),
rlfq_kwargs: dict = dict(
frac_per_sample_entropy = 1.,
soft_clamp_input_value = 10.
soft_clamp_input_value = 10.,
experimental_softplus_entropy_loss = True,
),
rvq_stochastic_sample_codes = True,
sageconv_kwargs: dict = dict(
Expand Down Expand Up @@ -1103,7 +1103,9 @@ def __init__(
attn_heads = 16,
attn_kwargs: dict = dict(
ff_glu = True,
attn_num_mem_kv = 4
attn_num_mem_kv = 4,
add_value_residual = True,
learned_value_residual_mix = True
),
cross_attn_num_mem_kv = 4, # needed for preventing nan when dropping out text condition
dropout = 0.,
Expand Down
2 changes: 1 addition & 1 deletion meshgpt_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.7.0'
__version__ = '1.7.1'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'torch_geometric',
'tqdm',
'vector-quantize-pytorch>=1.18.1',
'x-transformers>=1.30.19,<1.31',
'x-transformers>=1.42.23',
],
setup_requires=[
'pytest-runner',
Expand Down

0 comments on commit a3be298

Please sign in to comment.