Skip to content

Commit 63effa5

Browse files
committed
default both rotary and shift tokens to be on after seeing results
1 parent a721780 commit 63effa5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dalle_pytorch/dalle_pytorch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ def __init__(
324324
attn_types = None,
325325
loss_img_weight = 7,
326326
stable = False,
327-
shift_tokens = False,
328-
rotary_emb = False
327+
shift_tokens = True,
328+
rotary_emb = True
329329
):
330330
super().__init__()
331331
assert isinstance(vae, (DiscreteVAE, OpenAIDiscreteVAE, VQGanVAE)), 'vae must be an instance of DiscreteVAE'

dalle_pytorch/transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(
145145
image_fmap_size = None,
146146
sparse_attn = False,
147147
stable = False,
148-
shift_tokens = False,
148+
shift_tokens = True,
149149
rotary_emb = True
150150
):
151151
super().__init__()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = 'dalle-pytorch',
55
packages = find_packages(),
66
include_package_data = True,
7-
version = '1.0.3',
7+
version = '1.0.4',
88
license='MIT',
99
description = 'DALL-E - Pytorch',
1010
author = 'Phil Wang',

0 commit comments

Comments
 (0)