mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +08:00
Fix bug
This commit is contained in:
parent
6ef5ca4ce5
commit
62391bec30
@ -51,7 +51,7 @@ class StreamingDetokenizer:
|
|||||||
text = self.text
|
text = self.text
|
||||||
segment = text[self.offset :]
|
segment = text[self.offset :]
|
||||||
self.offset = len(text)
|
self.offset = len(text)
|
||||||
return text
|
return segment
|
||||||
|
|
||||||
|
|
||||||
class NaiveStreamingDetokenizer(StreamingDetokenizer):
|
class NaiveStreamingDetokenizer(StreamingDetokenizer):
|
||||||
|
Loading…
Reference in New Issue
Block a user