Skip to content

Commit 75ad1fd

Browse files
committed
remove beartype for now
1 parent 4bfe038 commit 75ad1fd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

rotary_embedding_torch/rotary_embedding_torch.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
from einops import rearrange, repeat
1010

11-
from beartype import beartype
12-
from beartype.typing import Literal
11+
from typing import Literal
1312

1413
# helper functions
1514

@@ -65,7 +64,6 @@ def apply_learned_rotations(rotations, t, start_index = 0, freq_ranges = None):
6564
# classes
6665

6766
class RotaryEmbedding(Module):
68-
@beartype
6967
def __init__(
7068
self,
7169
dim,
@@ -209,7 +207,6 @@ def rotate_queries_and_keys(self, q, k, seq_dim = None):
209207

210208
return rotated_q, rotated_k
211209

212-
@beartype
213210
def get_scale(
214211
self,
215212
t: Tensor,

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'rotary-embedding-torch',
55
packages = find_packages(),
6-
version = '0.6.3',
6+
version = '0.6.4',
77
license='MIT',
88
description = 'Rotary Embedding - Pytorch',
99
long_description_content_type = 'text/markdown',
@@ -16,7 +16,6 @@
1616
'positional embedding'
1717
],
1818
install_requires=[
19-
'beartype',
2019
'einops>=0.7',
2120
'torch>=2.0'
2221
],

0 commit comments

Comments
 (0)