Skip to content

Commit

Permalink
use latest gateloop
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 22, 2023
1 parent b379498 commit c4fb6f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions audiolm_pytorch/soundstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ def __init__(
attn_xpos_scale_base = None,
attn_dynamic_pos_bias = False,
use_gate_loop_layers = False,
gate_loop_use_jax = False,
squeeze_excite = False,
complex_stft_discr_logits_abs = True,
pad_mode = 'reflect',
Expand Down Expand Up @@ -521,7 +520,7 @@ def __init__(
encoder_blocks.append(EncoderBlock(chan_in, chan_out, layer_stride, enc_cycle_dilations, squeeze_excite, pad_mode))

if use_gate_loop_layers:
encoder_blocks.append(Residual(ChannelTranspose(GateLoop(chan_out, use_jax_associative_scan = gate_loop_use_jax))))
encoder_blocks.append(Residual(ChannelTranspose(GateLoop(chan_out, use_heinsen = True))))

self.encoder = nn.Sequential(
CausalConv1d(input_channels, channels, 7, pad_mode = pad_mode),
Expand Down
2 changes: 1 addition & 1 deletion audiolm_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.2'
__version__ = '2.0.3'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
'encodec',
'fairseq',
'wandb',
'gateloop-transformer>=0.0.24',
'gateloop-transformer>=0.5.2',
'joblib',
'local-attention>=1.9.0',
'pytorch-warmup',
'scikit-learn',
'sentencepiece',
'torch>=1.12',
'torch>=2.1',
'torchaudio',
'transformers',
'tqdm',
Expand Down

0 comments on commit c4fb6f6

Please sign in to comment.