mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 04:14:38 +08:00
concatenation correction
This commit is contained in:

committed by
Awni Hannun

parent
67a9325603
commit
92ba4b2bf5
@@ -255,7 +255,7 @@ def generate_step(
|
||||
else:
|
||||
y, logprobs = sample(logits)
|
||||
|
||||
tokens_ids = mx.concat(tokens_ids, y, dim=0)
|
||||
tokens_ids = mx.concat([tokens_ids, y], axis=0)
|
||||
|
||||
if repetition_context_size:
|
||||
if len(repetition_context) > repetition_context_size:
|
||||
|
Reference in New Issue
Block a user