mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-27 03:05:20 +08:00
Merge branch 'ml-explore:main' into adding-support-for-mamba2
This commit is contained in:
commit
0ef73f3a2d
@ -193,7 +193,9 @@ class BPEStreamingDetokenizer(StreamingDetokenizer):
|
||||
self.tokens = []
|
||||
|
||||
def _maybe_trim_space(self, current_text):
|
||||
if current_text[0] != " ":
|
||||
if len(current_text) == 0:
|
||||
return current_text
|
||||
elif current_text[0] != " ":
|
||||
return current_text
|
||||
elif not self.text:
|
||||
return current_text[1:]
|
||||
|
Loading…
Reference in New Issue
Block a user