We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d4a292 commit ff6c35cCopy full SHA for ff6c35c
src/tiny_llm_ref/qwen2_week2.py
@@ -53,7 +53,7 @@ def __init__(
53
def __call__(
54
self,
55
x: mx.array,
56
- offsets: list[int],
+ offsets: int | list[int] | mx.array,
57
cache: TinyKvCache,
58
mask: mx.array | str | None = None,
59
) -> mx.array:
@@ -172,7 +172,7 @@ def __init__(
172
173
174
175
- offset: int,
+ offset: int | list[int] | mx.array,
176
177
178
@@ -266,7 +266,7 @@ def __init__(
266
267
268
inputs: mx.array,
269
270
cache: list[TinyKvCache],
271
272
h = self.embedding(inputs)
0 commit comments